We are having issues with specific types of images not being presented in converted files. The issue seems to be related to embedded images, but only in certain contexts, perhaps where certain fonts are available.
The issue occurs in our deployed environments (on Kubernetes, both deployed and in Devspace) but I have not been able to reproduce it when running my Spring Boot application locally, including when containerised.
The specific warning we get looks like: Shape #4 at Slide #1 at position 66x113.8741 cannot be drawn. Even though I have not been able to reproduce, I wonder if the issue can be found given the specific image types this happens with combined with an understanding of the Aspose codebase and when this error might happen?
I have included my reproduction attempt here: GitHub - zbowyer20/aspose-slides-repro at missing-images including the file where not all images convert: aspose-slides-repro/testFiles/presentation-with-images.pptx at missing-images · zbowyer20/aspose-slides-repro · GitHub
The PNG in this deck DOES convert when we have been able to reproduce the error - but the EMF and the embedded PNG do not.
The deployed application, where we see this error uses Ubuntu and JDK 21. I have recreated this environment in my reproduction but not able to reproduce, so seems to require other circumstances.
@zbowyer20bi
It sounds like you’re encountering an issue with specific image types not being rendered correctly in your converted files, particularly with embedded images and EMF formats. Since you mentioned that the problem occurs in your deployed environments but not locally, it could be related to differences in the environment or dependencies.
Here’s a step-by-step approach to diagnose and resolve the issue:
-
Check Image Formats: Ensure that the images you are using (especially EMF and embedded PNGs) are supported and correctly formatted. Certain image formats may not be fully compatible with the conversion process.
-
Environment Consistency: Since the issue is not reproducible locally, verify that the deployed environment (Kubernetes, Ubuntu, JDK 21) matches your local setup as closely as possible. Check for any missing libraries or dependencies that might be present in your local environment but not in the deployed one.
-
Font Availability: The issue might be related to specific fonts that are available in your local environment but not in the deployed environment. Ensure that all necessary fonts are installed in the deployed environment.
-
Logging and Debugging: Enable detailed logging in your application to capture more information about the conversion process. This can help identify what might be going wrong when processing the images.
-
Test with Different Images: Try using different images or formats to see if the issue persists. This can help isolate whether the problem is with specific images or a broader issue with the conversion process.
-
Update Aspose Library: Ensure that you are using the latest version of the Aspose.Slides library, as updates often include bug fixes and improvements.
If you continue to face issues, reach out to Aspose support with detailed logs and the specific images that are causing problems. They may be able to provide more targeted assistance.
Please implement these steps and let me know the outcome or if you have any further questions!
@zbowyer20bi,
Thank you for contacting free support. I need some time to investigate the issue. I will get back to you as soon as possible.
1 Like
@zbowyer20bi,
Thank you for your patience. Unfortunately, I was unable to reproduce the issue you described. We would greatly appreciate it if you could isolate the problem and share step-by-step instructions on how to do this.