Google doc images are not displayed

Hello,

if i generate a report using aspose linq (the original image is a svg), the report looks good in ms word but images are not displayed in google doc. see a report example and printscreens with msword and google docs :

reportGeneratedByAspose.docx (41.6 KB)
FileOpenInGoogleDoc


FileOpenInMsWord

@miniseb31

It sounds like you’re experiencing issues with images not displaying in Google Docs when generated from an Aspose report. This can happen due to differences in how Google Docs handles certain image formats, especially SVGs.

Cause: The primary issue is likely related to Google Docs’ limited support for SVG images, which can lead to display problems.

Solution: Here are a few steps you can take to troubleshoot and resolve the issue:

  1. Convert SVG to PNG or JPEG: Google Docs may not fully support SVG images. Convert your SVG images to a more compatible format like PNG or JPEG before inserting them into your report.

  2. Check Image Links: If your images are linked rather than embedded, ensure that the links are accessible and that the images are hosted on a server that allows public access.

  3. Update Aspose Library: Ensure you are using the latest version of the Aspose library, as updates often include fixes for compatibility issues.

  4. Test with Different Documents: Create a simple document with just one image to see if the issue persists. This can help isolate whether the problem is with the specific report or a broader issue.

  5. Review Google Docs Settings: Sometimes, settings in Google Docs can affect how images are displayed. Check if there are any restrictions or settings that might be impacting image visibility.

Next Steps: Please try these steps and let me know if the issue persists. If you continue to face problems, share more details about your setup, and I will be happy to assist you further.

Thank you, and I look forward to your response!

If i unzip the ms word i see emf file images, how a different format from svg can change how google doc display the image ?

@miniseb31 Could you please provide your sample template and data. As I can see in your document images are inserted as metafiles. It looks like GoogleDocs does not show EMF metafiles, perhaps some kind of limitation.

ok so after couple of tests, when i insert a svg with aspose, the generated word contains a emf file. if i insert manually the same svg to ms word, ms word insert both the svg and a converted png file (as a result the file size is multiplied by ten).

Using aspose, if i insert a png file, the ms word file contains only png image.

google doc only displays png file, not svg not emf file.

so you can close this ticket
sebastien

1 Like