Open Bug 1964807 Opened 8 days ago Updated 3 days ago

Google images are darkened/corrupted out when downloaded (webp saved with jpg extension causing issues)

Categories

(Core :: Graphics: ImageLib, defect)

Firefox 138
defect

Tracking

()

UNCONFIRMED

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

And to be editable

Summary: Google images are darkened out when downloaded → Google images are darkened/corrupted out when downloaded

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.

Component: Untriaged → File Handling

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?

Component: File Handling → Graphics: Color Management
Flags: needinfo?(nanioegaku)
Product: Firefox → Core

For example, this image from Google Images, from a spanish magazine:

https://cdn.hobbyconsolas.com/sites/navi.axelspringer.es/public/media/image/2024/11/little-big-adventure-4262431.jpg?tf=3840x

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

Flags: needinfo?(nanioegaku)
Flags: needinfo?(tnikkel)

What happens if you use Chrome to save the image file? Same result or different result from the file that Firefox saves?

Flags: needinfo?(nanioegaku)

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?...

Flags: needinfo?(nanioegaku)
Attachment #9486655 - Attachment is obsolete: true
Flags: needinfo?(tnikkel)

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.

Flags: needinfo?(nanioegaku)

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

Flags: needinfo?(nanioegaku)

What happens if you download the attached file using Firefox?

My apologies for the wait

It works the same way as described in comment #10. All correctly, be it the viewer, the apps...

Can you upload the problematic file here as an attachment? Not a screenshot of it, the actual file.

Flags: needinfo?(nanioegaku)

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

Flags: needinfo?(nanioegaku)

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?

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

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.

Component: Graphics: Color Management → Graphics: ImageLib
See Also: → 1644950
Summary: Google images are darkened/corrupted out when downloaded → Google images are darkened/corrupted out when downloaded (webp saved with jpg extension causing issues)

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...

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: