Google images are darkened/corrupted out when downloaded (webp saved with jpg extension causing issues)
Categories
(Core :: Graphics: ImageLib, defect)
Tracking
()
People
(Reporter: nanioegaku, Unassigned)
References
Details
Attachments
(2 files, 1 obsolete file)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:138.0) Gecko/20100101 Firefox/138.0
Steps to reproduce:
Go to Google, search for a term, then go to the Images tab, click an image, right click on it and open in a new tab, then download the image to the PC's Desktop
Actual results:
When the image got downloaded and i open it with Windows 10's image previewer (Classic), it shows more darkened out than normal, no matter if the downloaded format is JPG, PNG, even Webp
If i open the file in a photo editing program (SAI2, Photoshop) it throws an error as in "The file cannot be read" or similar
Expected results:
The image should appear in the same colour and stuff that what's shown in Google Images
Reporter | ||
Comment 1•8 days ago
|
||
And to be editable
Comment 2•8 days ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox::File Handling' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 3•6 days ago
|
||
For the colors it's possible Firefox is using an icc color profile, you can search on the Web for Firefox Color Management tutorials and articles.
Moving to Color Management component where more expert developers can help you.
Being unable to open the image in other apps is pretty strange considered they open in Windows Preview, do you have any example URLs you can share so we can check the image type?
Reporter | ||
Comment 4•6 days ago
|
||
For example, this image from Google Images, from a spanish magazine:
If i download it on PC and open it with the classic W10 image viewer it shows dark like this
https://bug1964807.bmoattachments.org/attachment.cgi?id=9485836
And if i open the very same downloaded file with the W10's Photos app it looks normal
If i open it in Paint (Normal, not 3D) it loads correctly and looks normal (But who wants to use Paint?...)
If i drag the downloaded image to Firefox it looks normal
Hopefully this helps ya understand what i mean
Updated•6 days ago
|
Comment 5•5 days ago
|
||
What happens if you use Chrome to save the image file? Same result or different result from the file that Firefox saves?
Reporter | ||
Comment 6•5 days ago
|
||
If i visit the file from the 1st URL it looks correct on Chrome
If i right click on the 1st link and "Save as" the file format on Chrome's "Save as" window shows as Webp (on FF it shows as JPG) as the format that's going to be saved
So is it possible that FF cannot differenciate something from it's code or something?...
Comment 7•5 days ago
|
||
Updated•5 days ago
|
Comment 8•5 days ago
|
||
Comment 9•5 days ago
|
||
Can you download the attachment "wget-little-big-adventure-4262431.jpg" here with Chrome and report if the same thing happens when viewing it with other applications? This file has never been touched by Firefox as I downloaded it using a command line program called wget directly from the site.
Reporter | ||
Comment 10•5 days ago
|
||
I've downloaded the attached file from Comment #8 from Firefox
Pasted it onto Chrome and entered. When i did the "Save As" it appeard as JPEG
I've saved it into my desktop and used the usual apps, Paint Tool SAI 2 , Photoshop CC 2017, CLIP STUDIO PAINT.
All these apps opened the file perfectly without issues nor any weird error messages, not even darkened and without artifacts
Comment 11•5 days ago
|
||
What happens if you download the attached file using Firefox?
Reporter | ||
Comment 12•5 days ago
|
||
My apologies for the wait
It works the same way as described in comment #10. All correctly, be it the viewer, the apps...
Comment 13•5 days ago
|
||
Can you upload the problematic file here as an attachment? Not a screenshot of it, the actual file.
Reporter | ||
Comment 14•5 days ago
|
||
My apologies for the wait, i had to work
I cannot seem to find the button to attach a file, but i can send it to ya via Google Drive
https://drive.google.com/file/d/1fqBBfRVmDhqOA06fr3F6a35B2k2FtnE8/view?usp=sharing
Comment 15•4 days ago
|
||
No need to apologize, no one is expecting instant responses.
That file looks like a webp file but with a jpg extension. That might explain what you are seeing. If you manually change the extension of the file from jpg to webp does that fix the problems you are seeing?
Reporter | ||
Comment 16•4 days ago
|
||
If i change from JPG to WebP and open it with the classic image viewer the darkness is still there and obviously i CAN'T open the Webp format with any of the apps i've mentioned because that format is not supported by them
Comment 17•3 days ago
|
||
Okay, so it sounds like the issue is that a webp file is being downloaded and saved with a jpg extension. If Windows 10's image previewer (Classic) is showing the image as too dark that might just be an issue with that app if Chrome and Firefox display the downloaded file correctly.
Reporter | ||
Comment 18•3 days ago
|
||
Well, yeah, but if someone downloads an image to do an edit then they cannot edit the image then, since the file's corrupted from the browser's side itself...
Description
•