-
-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plantuml.com's images (/png/ or /img/) won't insert in Google Docs anymore #254
Comments
Hi, no change on our side: those images are still PNG images. |
@arnaudroques can you explain why that happens (why it's not a .png format)? I also tried in Firefox. I don't have another (local) server to try with, to see if it does the same. |
I dumped the blob info received inside the add-on (running on Google's server), and I see the following:
The first 4 bytes ( Either Google allowed this before (as a PNG) and is not allowing it now, or something has changed in the encoding of the images. My "Save as..." in Chrome of the image at https://www.plantuml.com/plantuml/png/SoWkIImgAStDuNBAJrBGjLDmpCbCJbMmKiX8pSd9vt98pKi1IW80 also yields a WEBP format on my computer, yields a file with the same RIFF and WEBP header (it's not a PNG). Notepad++ shows the bytes: Using PlantUML on my local machine, I generate and save the same source to a PNG, and I get a true PNG (again viewed with Notepad++): |
Some more facts that I hope can help to get to the bottom of things:
|
Thanks for your investigation! |
I'm the dev for plantuml-gizmo and users opened an issue yesterday about images not being inserted: fuhrmanator/plantuml-gizmo#2
I tested this further and found that inserting any images into Google Docs (even by hand) that come from a PlantUML.com URL, e.g., https://www.plantuml.com/plantuml/png/SoWkIImgAStDuNBAJrBGjLDmpCbCJbMmKiX8pSd9vt98pKi1IW80 result in invalid images.
Debugging further, in Chrome if I open https://www.plantuml.com/plantuml/png/SoWkIImgAStDuNBAJrBGjLDmpCbCJbMmKiX8pSd9vt98pKi1IW80 and try to save it to disk, it suggests it's a
.webp
format and won't let me save it as a PNG. Perhaps this has always been like that, but it's strange.Has something changed in the format of the images on PlantUML.com?
The text was updated successfully, but these errors were encountered: