Closed Bug 209683 Opened 22 years ago Closed 21 years ago

Shorten image accept header

Categories

(Core :: Graphics: ImageLib, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 231357

People

(Reporter: pavlov, Assigned: pavlov)

Details

Attachments

(1 file)

There is no reason to list out all of the image formats we support in the Accept header putting them at the same quality.
Attached patch patchSplinter Review
Attachment #125838 - Flags: superreview?(darin)
Attachment #125838 - Flags: review?(tor)
hmm? We like jpeg as much as png, no? I agree that removing gif is good....
This leaves the door open for a server to deliver a TIFF image rather than a JPEG. I think you really should specify the formats you like.
bz: jpeg's certainly don't have the same picture quality as a PNG, so I wouldn't think we want them more
hmm... maybe advertizing only PNG and JPEG is the way to go. they each solve a different problem: PNG for lossless compression and JPEG for lossy compression. advertizing GIF in addition to PNG certainly seems unnecessary, but i can understand advertizing PNG and JPEG. pav: i know we said "JPEG is a format that all browsers understand, so why advertize it?" but now i'm a little worried that a site might serve a big PNG in place of a small JPEG in cases where the user wouldn't be able to tell the difference between the two.
Attachment #125838 - Flags: superreview?(darin) → superreview-
Can you point me at a site that actually does this? Doesn't */* include JPEG? Why do we need to specfically mention it? I would argue that we do in fact want PNGs over everything else, as they are higher quality images.
The modified header implies the following things which (in my view) are not true: - We prefer PNG over JPEG (I'd say we in fact prefer them both equally; they are used for different types of image) - We prefer GIF and e.g. TIFF equally (I'd say we prefer GIF, because we can render it inline) - We prefer JPEG and e.g. TIFF equally (as above) This change saves 28 bytes (0.007 seconds on a 56k modem) per image request. We can argue about the magnitude of the information loss; but given the small size of the gain, is it really worth even discussing? Gerv
Attachment #125838 - Flags: review?(tor)
The change proposed here was landed as bug 231357. Bug 241648 filed as a followup to remove image/png from the header. *** This bug has been marked as a duplicate of 231357 ***
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: