favicon.inbrowser.app icon indicating copy to clipboard operation
favicon.inbrowser.app copied to clipboard

Generated images are blank when uploading '.svg' on Firefox

Open gitChaoslord opened this issue 1 year ago • 1 comments

Description

I uploaded an .svg image in order to generate the manifest and the rest of the images. Each section correctly displayed an image but when downloaded individually (and in bulk), it resulted into all images except the favicon.svg being blank.

Expected Behavior

I expected to upload the .svg image and download the new images generated without a problem.

Current Behavior

Uploading an .svg image results in blank images being generated. Uploading an .png or .jpeg images works correctly.

Other information

Browser: Firefox Developer Edition 124.0b9 ( Latest ) Run in private window: Yes Extensions disabled: Yes Did you use a different svg image?: Yes, same problem

gitChaoslord avatar Mar 10 '24 14:03 gitChaoslord

After bashing my head on the wall and a bit of searching, I found out the following issue on Bugzilla SVG image with no intrisic size returns a naturalWidth of 0

And indeed, none of the .svgs I tried had width or height assigned, so the promise that would return image size would always resolve with height equal to 0 and width equal to 0.

Adding values on the .svg's height and width attributes makes the image generation work correctly.

Feel free to close my issue

edit: Also noticed the Demo icon suffering from this issue too

gitChaoslord avatar Mar 10 '24 16:03 gitChaoslord