Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

Firefox 81.0.2 (and before) saving JPGs as PNGs

  • 6 답장
  • 1 이 문제를 만남
  • 13 보기
  • 최종 답변자: Bobby

more options

For some time now, Firefox has been incorrectly identifying the type for a large percentage of JPG images, and saving them with the PNG suffix instead. Graphics programs cannot open such mislabelled files, requiring me to manually find and rename such files to give them the proper .JPG suffix to match their file type.

This is far beyond a minor issue, and needs to be addressed immediately. Please. Any suggestions on how to deal with this?

For some time now, Firefox has been incorrectly identifying the type for a large percentage of JPG images, and saving them with the PNG suffix instead. Graphics programs cannot open such mislabelled files, requiring me to manually find and rename such files to give them the proper .JPG suffix to match their file type. This is far beyond a minor issue, and needs to be addressed immediately. Please. Any suggestions on how to deal with this?

선택된 해결법

Thanks for all the help, but I found out what the problem was. I had overlooked that I had been using an image downloader script on the different sites, and when I looked at the text of the script, I saw that it was set to save all files as PNG by default. I've corrected that, and it works fine now.

Thanks for all the help, anyway. Much Appreciated.

문맥에 따라 이 답변을 읽어주세요 👍 0

모든 댓글 (6)

more options

Hi Bobby, that definitely should not happen. Sometimes an incorrect content-type <==> file extension association is saved in a settings file. Since it is tricky to edit, we generally suggest removing it and letting Firefox generate a new one based on your Windows registry data. Here's how:

Open your current Firefox settings (AKA Firefox profile) folder using either

  • "3-bar" menu button > "?" Help > Troubleshooting Information
  • (menu bar) Help > Troubleshooting Information
  • type or paste about:support in the address bar and press Enter

In the first table on the page, on the Profile Folder row, click the "Open Folder" button. This should launch a new window listing various files and folders in Windows Explorer.

Leaving that window open, switch back to Firefox and Exit, either:

  • "3-bar" menu button > Exit
  • (menu bar) File > Exit

Pause while Firefox finishes its cleanup, then rename handlers.json to something like handlersOLD.json.

Start Firefox back up and test again. Any improvement?

Note: This will reset PDF handling to default, so if you prefer to open those outside Firefox, see: View PDF files using Firefox’s built-in viewer.

more options

You can inspect the MIME database key with the registry editor (regedit.exe) and do a search for that MIME type (file extension) via Ctrl+F. Be cautious with editing the registry as there is NO UNDO possible: all changes are applied immediately. You can export key(s) in the registry editor before making changes. You can check specific file extension keys (e.g. .jpg) in the registry with the registry editor.

  • HKEY_CLASSES_ROOT\.jpg

You can check a possibly linked MIME type in the MIME Database registry key.

  • HKEY_CLASSES_ROOT\MIME\Database\Content Type\
more options

@jscher2000

I'll have to get back to you once I have more image files I want to download. Thanks

@cor-el

Thanks for the suggestion. I'll wait to see if jscher2000's suggestion works first, otherwise, I'll try what you suggest. Thanks.

more options

@jscher2000

I'm afraid that didn't solve the problem. I'm still getting some JPG files saving as PNG files. What confuses me the most is that it isn't all JPG files, nor is it from any common source, but it seems to be from over a half dozen different websites that I get that issue.

@cor-el

I checked the registry, and couldn't see anything specific that might seem to be amiss. ".jpeg" and ".jpg" entries both were set to save as JPG files, both in the "Classes" section, and in the "Mime\Database\ContentType" section, and likewise, the same with PNG files. Out of an abundance of caution, I checked all of the Image type content keys, and all of them appeared to be set to save files as the appropriate file type and suffix.

Thanks both of you for the suggestions, but they didn't address the issue. I wonder if you or anyone else has other suggestions?

more options

Can you give a link to a sample page where JPEG files save with a PNG extension? There is a link moderation feature that delays posts which contain a URL, so you probably won't see your reply immediately. That's normal.

Also, if you haven't already, does it help to set Windows to show all file extensions? This article has the steps if needed: https://www.bleepingcomputer.com/tutorials/how-to-show-file-extensions-in-windows/

more options

선택된 해결법

Thanks for all the help, but I found out what the problem was. I had overlooked that I had been using an image downloader script on the different sites, and when I looked at the text of the script, I saw that it was set to save all files as PNG by default. I've corrected that, and it works fine now.

Thanks for all the help, anyway. Much Appreciated.