Closed
Bug 209683
Opened 22 years ago
Closed 21 years ago
Shorten image accept header
Categories
(Core :: Graphics: ImageLib, defect)
Core
Graphics: ImageLib
Tracking
()
RESOLVED
DUPLICATE
of bug 231357
People
(Reporter: pavlov, Assigned: pavlov)
Details
Attachments
(1 file)
828 bytes,
patch
|
darin.moz
:
superreview-
|
Details | Diff | Splinter Review |
There is no reason to list out all of the image formats we support in the Accept
header putting them at the same quality.
Assignee | ||
Comment 1•22 years ago
|
||
Assignee | ||
Updated•22 years ago
|
Attachment #125838 -
Flags: superreview?(darin)
Attachment #125838 -
Flags: review?(tor)
Comment 2•22 years ago
|
||
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.
Updated•22 years ago
|
Hardware: PC → All
Assignee | ||
Comment 4•22 years ago
|
||
bz: jpeg's certainly don't have the same picture quality as a PNG, so I wouldn't
think we want them more
Comment 5•22 years ago
|
||
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.
Updated•22 years ago
|
Attachment #125838 -
Flags: superreview?(darin) → superreview-
Assignee | ||
Comment 6•22 years ago
|
||
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.
Comment 7•22 years ago
|
||
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.
Description
•