Closed Bug 218603 Opened 22 years ago Closed 18 years ago

HTML Complete saves jpg files with .jfif extension instead of .jpg

Categories

(Core Graveyard :: File Handling, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: lewis, Assigned: sspitzer)

References

()

Details

User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5b) Gecko/20030905 Camino/0.7+ Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5b) Gecko/20030905 Camino/0.7+ When saving a web page as HTML Complete, any jpeg files present in the page are named using the .jfif extension rather than .jpg. Reproducible: Always Steps to Reproduce: 1. Find a page containing jpg files. 2. Save the page as HTML Complete. 3. Look for jfif files in resulting image folder. Actual Results: Jpgs became renamed as .jfif Expected Results: Jpgs should have retained the correct .jpg extension. Fwiw, if you drag a jpg off a html page to the desktop, the filename extension is correct.
Also present in: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5b) Gecko/20030907 Camino/0.7+
Hmm, sort of related to bug 163254?
JPEG JFIF, which is what people generally mean when they refer to "JPEG", is a file format created by the Independent JPEG Group (IJG) for the transport of single JPEG-compressed images. (http://www.w3.org/Graphics/JPEG/) But the problem is that on Mac there is only one grapchis app that knows how to handle files with a .jfif extention (garphics converter) except for Camino and Mozilla. So it would be only wise to make sure that JFIF JPEG images are saved with a .jpg extension instead of .jfif since the file is a standard complinet JPEG image.
This is also the case with Mozilla nightlies. Go to any image only file like in macdesktops: http://www.macdesktops.com/images/1024x768/Tazl20Illu1024x768.jpg type cmd-S to save. A save dialog box opens with the following file name: Tazl20Illu1024x768.jpg.jfif
This also happens with Moz 1.4 - 1.5rc2, when right-clicking a JPEG image and saving to hard disc. Just to clarify, the .jfif extension is appended to the file name; it does not replace the .jpg extension. So for example picture1.jpg gets saves as picture1.jpg.jfif.
I think we can set this bug to confirmed or duplicate of Bug 163254. Bug 163254 should come up with a patch eventually.
My guess is that "jfif" is coming from Internet Config. It's probably the first entry found that matches the MIME type.
comments in 163254 suggest that mozilla fixed this in november, but this still shows up in camino and mozilla 1.6b -> seth
Assignee: pinkerton → sspitzer
Component: Downloading → File Handling
Product: Camino → Browser
Version: unspecified → Trunk
Status: UNCONFIRMED → NEW
Ever confirmed: true
quick recap: this bug (saving .jpg as .jfif) still present in: camino: 2004051715 (v0.8b) mozilla: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7) Gecko/20040514 Firefox: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.6) Gecko/20040206 Firefox/0.8 bug 163254 is APPENDING another extension: behaviour now when saving a php-file (xxx.php) as html complete: camino: saves xxx.php.html firefox: saves as xxx.php.html mozilla: saves as xxx.php (browsers version: see above) So it looks like bug 163254 is fixed (for appending .html) for mozilla only.
update: the new firefox saves jpeg's as jfif, but the xxx.php as xxx.php (instead of xxx.php.html) firefox: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7) Gecko/20040530 Firefox/0.8.0+
No longer seeing any of these any more. Anyone still seeing them?
WORKSFORME; don't know what specific code change fixed it, but haven't seen this in ages with any Gecko browser.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.