Open
Bug 1157443
Opened 10 years ago
Updated 2 years ago
JPEG Image without file extension is saved with jpe extension
Categories
(Firefox :: File Handling, defect)
Tracking
()
UNCONFIRMED
People
(Reporter: thomas-lange2, Unassigned)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:37.0) Gecko/20100101 Firefox/37.0
Build ID: 20150420225811
Steps to reproduce:
1. Delete the file extension of a JPEG image
2. Use this file inside a IMG tag (<img src="foo" />)
3. Right-click on the image and choose "Save Image As..."
Actual results:
The file dialog automatically adds .jpe to the file name.
Expected results:
.jpg should be used instead of .jpe.
Comment 1•9 years ago
|
||
User Agent Mozilla/5.0 (X11; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0
Build ID 20151215030221
I tried to reproduce this issue but it works fine for me. The file dialog automatically adds ".jpeg" to the file name.
Please test again to see if it is reproducible for you, with latest Nightly version (you can download it from https://nightly.mozilla.org/) and also with a new profile. Steps to create a new profile can be found at https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles.
Thank you.
Flags: needinfo?(thomas-lange2)
Reporter | ||
Comment 2•9 years ago
|
||
Strange, I can still reproduce it with Firefox 46 and a clean profile.
Flags: needinfo?(thomas-lange2)
Comment 3•9 years ago
|
||
Please try again in safe mode. If it's still reproducible, please give some additional information on how to reproduce it. Also a short video would help.
Flags: needinfo?(thomas-lange2)
Reporter | ||
Comment 4•9 years ago
|
||
Flags: needinfo?(thomas-lange2)
Reporter | ||
Comment 5•9 years ago
|
||
Safe mode does not change anything. However I could not reproduce it on Windows.
Comment 6•9 years ago
|
||
Comment 7•9 years ago
|
||
User Agent Mozilla/5.0 (X11; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0
Build ID 20151217072309
Thank you for your effort.
I tried the same on Ubuntu 12.04 and Ubuntu 14.04 but still ".jpeg" is added to the file name. I also attached a screenshot where you can see the file dialog automatically adds ".jpeg" to the file name.
Did you used a different OS?
Flags: needinfo?(thomas-lange2)
WFM on Win10 Fx43 with .jpg & Lubuntu 14.04 LTS Fx42 with .jpeg.
Component: Untriaged → File Handling
Reporter | ||
Comment 9•9 years ago
|
||
I am using Arch Linux. Changing the locale has no effect. It looks like .jpeg gets truncated to .jpe for me. But why is it .jpg on Windows?
Flags: needinfo?(thomas-lange2)
Comment 10•7 years ago
|
||
Odd. This reproduces for me on a (rather stock) Gentoo Linux setup (".jpe" added to the name), but a stock Ubuntu 16.07 LiveCD VM adds ".jpeg" to the extension instead (ui.allow_platform_file_picker didn't change things in either case).
Comment 11•7 years ago
|
||
Ah, it's because this is in my Gentoo /etc/mime.types:
image/jpeg jpe jpeg jpg
Whereas in Ubuntu I have:
image/jpeg jpeg jpg jpe
Given that Chrome adds ".jpg" one way or the other, I think Firefox could stand to be more reasonable and at least choose one of the more common extensions, instead of just picking the first entry in that list.
Reporter | ||
Comment 12•7 years ago
|
||
Good catch, this is indeed the explanation. Arch Linux uses the mime.types file from Gentoo, see [1].
And there is even an open bug report [2] for this issue. But nothing changed since 2013...
[1] https://www.archlinux.org/packages/extra/any/mime-types/
[2] https://bugs.gentoo.org/show_bug.cgi?id=487622
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•