Lossless JPEG

S
Posted By
Sh
Apr 28, 2005
Views
746
Replies
27
Status
Closed
I read in the help (CS2) that Bridge can rotate the jpeg images without losing data. Can anyone confirm that this now is possible? Is it not possible from withing PS editor (would be strange)?

MacBook Pro 16” Mockups 🔥

– in 4 materials (clay versions included)

– 12 scenes

– 48 MacBook Pro 16″ mockups

– 6000 x 4500 px

AC
Art Campbell
Apr 28, 2005
I believe in CS that if you specify a jpeg quality of 10 or 12 (maximum), that it doesn’t compress the file. So I’d guess the same would be true of CS2.

Art
C
chrisjbirchall
Apr 28, 2005
I believe in CS that if you specify a jpeg quality of 10 or 12 (maximum), that it doesn’t compress the file

Sorry Art, this is just not true. When you save a file as a jpeg, quality is lost. Period. Even if you don’t edit or alter the file in any way. Pixels are lost in the compression process even at maximum quality.

To prove it to yourselves try this little experiment as outlined in my recent post.:

chrisjbirchall, "Jpg size bigger in CS???" #6, 21 Apr 2005 4:50 pm </cgi-bin/webx?14/5>

Chris
C
chrisjbirchall
Apr 28, 2005
I read in the help (CS2) that Bridge can rotate the jpeg images without losing data

I can’t be sure, but I imagine they are referring to the fact only the thumbnail is rotated. The actual file is untouched until you open it.

Having said that. I imagine it might be possible to rotate an image simply by rearranging the existing compressed pixels – in the same order, but from top to bottom (as it were) instead of side to side (over simplified analogy).

It is the opening of a jpeg (inventing the missing pixels) and saving it again (throwing away pixels for the purposes of compression) that causes image deterioration.

I’m sure someone more knowledgeable than I will chip in shortly with a more definitive reply.

The real answer is to ditch Jpeg in favour of a lossless format except for the purposes of internet and on-screen display.

Chris.
S
Sh
Apr 28, 2005
Thx Chris and Art. Your (Chris) explanation is what I have learned too about jpeg and the difficulties with it. I think you may be right about the possibility of a rotation just being applicated to the thumbnail or the rearranging of pixels in the way you explain, or similar way.
I will be ditching jpeg at the end of this year or beginning of next (hopefully) as I will be acquiring a Canon 30D (expecting such to be released by then) and then be sticking to RAW.
But atm I still have 1500 old jpeg images in my album/DB and many need rotating.
C
chrisjbirchall
Apr 28, 2005
But atm I still have 1500 old jpeg images in my album/DB and many need rotating

Open them, rotate them, then save as PSD or TIFFs. This way no further image degradation will occur.

You could set up an action to do this for you automatically.

Best of luck with it.

Chris
S
Sh
Apr 29, 2005
Yes, saving them as TIFF is the best solution to jpeg images. I do use EXIFER atm though to edit metadata and rotate them. I will be batching my jobs too.

Thx again.
MD
Michael_D_Sullivan
Apr 29, 2005
Irfanview will rotate JPEGs losslessly, presumably by simply rearranging the data.
BH
Bobby_Henderson
Apr 29, 2005
"The real answer is to ditch Jpeg in favour of a lossless format except for the purposes of internet and on-screen display."

Wasn’t that the purpose of PNG? Not too many people use it though.
DM
dave_milbut
Apr 29, 2005
IE 7 will (supposedly! <g>) be offering full support for PNG. Finally! Maybe there’s still hope! 🙂
JO
Jim_Oblak
Apr 29, 2005
It is true that some graphic applications can rotate a JPG file in 90 degree increments without harming graphic data. XNView.com is another application that can do this. These operations do not really decompress and then re-compress the JPG file so no data is lost. This is not a modification of a thumbnail. The entire image is rotated.

Photoshop must open/decompress the JPG file before you can perform any transformation so there is always data loss when re-compressing the JPG file in Photoshop.

If you want to rotate a JPG file in 90 degree increments without data loss, use IrfanView or XNView or Adobe Bridge.
DM
dave_milbut
Apr 29, 2005
there was talk about lossless transformations (using free transform) at 90 degree rotations a while back. I wonder if that made it into cs2? anyone know?

brige does lossless jpg rotations you say? that’s cool.
MD
Michael_D_Sullivan
Apr 29, 2005
Bridge justs save the need for rotation in metadata or the cache, and rotates the thumbnail. That way, it’s automatically rotated when opened in PSCS2, but the image is unchanged. I checked by rotating in Bridge and then opening in Irfanview; it opened unrotated.
DM
Don_McCahill
Apr 29, 2005
I would love to see Chris Cox come into this thread. My understanding of jpg is that a loss occurs whenever a jpg is saved. Thus, opening a jpg and rotating the pixels may not degrade the image, but surely saving the file again as jpg will re-compress and a loss will occur.

This is the same as when one opens a jpg and saves it over and over again without changing it. We have been told that continued compression and degradation occurs with this.

Don McCahill
MD
Michael_D_Sullivan
Apr 29, 2005
Opening a Jpeg, decoding it into an RGB image, and then then resaving it as a Jpeg is definitely a lossy process, even at maximum quality. See this discussion <http://www.adobeforums.com/cgi-bin/webx?13@@.3bb9fc01/7 > for the results of my test. If, however, one simply manipulates the bytes to transform the coordinates of the stored data without decoding and recoding, it should be possible to save the file without additional loss.
E
eddie
Apr 29, 2005
Sorry to be a bit behind the rest of the human race but in the e mails regarding this subject i keep seeing the word "bridge" What is "bridge"

Always willing to learn
Eddie

wrote in message
I read in the help (CS2) that Bridge can rotate the jpeg images without losing data. Can anyone confirm that this now is possible? Is it not possible from withing PS editor (would be strange)?
PC
Pierre_Courtejoie
Apr 29, 2005
Doesn’t DNG embed a lossless JPEG?
(My point would be that then such beast might exist, somehow?)
DM
dave_milbut
Apr 29, 2005
My point would be that then such beast might exist,

I think chris said at one point waaaaay back that there is indeed such a mythical beast.

the context was when we were asking about the first save of camera data (the on camera save to the storage card) and why use a format that’s lossy from the get go. he stated there was a way to do a lossless save but didn’t elaborate…
N
neon
Apr 29, 2005
wrote:
My point would be that then such beast might exist,

I think chris said at one point waaaaay back that there is indeed such a mythical beast.
the context was when we were asking about the first save of camera data (the on camera save to the storage card) and why use a format that’s lossy from the get go. he stated there was a way to do a lossless save but didn’t elaborate…
camera manufacturers offer it to save space on your storage card. if you don’t want your camera to use jpeg change the file format setting in the camera to tiff or raw.
TT
Toby_Thain
May 1, 2005
It is true that some graphic applications can rotate a JPG file in 90 degree increments without harming graphic data

Here’s a non-inclusive list <http://jpegclub.org/losslessapps.html>. (I usually use Cameraid <http://www.cameraid.org/> (Mac) to do this.)

such beast might exist

A lossless variant <http://www.faqs.org/faqs/jpeg-faq/part1/section-13.html> (FAQ) – apparently superseded by JPEG-LS <http://www.jpeg.org/jpeg/jpegls.html> – has long been part of the JPEG spec.
C
Corey
May 1, 2005
Yes. Pixels are aligned on a vertical/horizontal plane. 90 degree turns (90, 180, 270, 360, etc.) should retain all the original data. However, rotating at other angles will force interpolation.

Peadge 🙂

wrote in message
It is true that some graphic applications can rotate a JPG file in
90
degree increments without harming graphic data

Here’s a non-inclusive list <http://jpegclub.org/losslessapps.html>. (I
usually use Cameraid <http://www.cameraid.org/> (Mac) to do this.)
such beast might exist

A lossless variant
<http://www.faqs.org/faqs/jpeg-faq/part1/section-13.html> (FAQ) – apparently superseded by JPEG-LS <http://www.jpeg.org/jpeg/jpegls.html> – has long been part of the JPEG spec.
D
deebs
May 1, 2005
LOL!

LOCO DUDE!

It is refreshing to see that researchers have a sense of humour in naming conventions
D
deebs
May 1, 2005
See HP site for more on LOCO DUDE <http://www.hpl.hp.com/research/info_theory/index.html>
C
Corey
May 1, 2005
One more thing regarding Lossless JPEGs, only "JPEG 2000" JPEGs are "lossless" through the use of "wavelet compression." Generally, JPEGs are lossy.

http://www.jpeg.org/faq.phtml

Peadge 🙂

wrote in message
It is true that some graphic applications can rotate a JPG file in
90
degree increments without harming graphic data

Here’s a non-inclusive list <http://jpegclub.org/losslessapps.html>. (I
usually use Cameraid <http://www.cameraid.org/> (Mac) to do this.)
such beast might exist

A lossless variant
<http://www.faqs.org/faqs/jpeg-faq/part1/section-13.html> (FAQ) – apparently superseded by JPEG-LS <http://www.jpeg.org/jpeg/jpegls.html> – has long been part of the JPEG spec.
MD
Michael_D_Sullivan
May 2, 2005
HP includes a free PS plugin, too.
DV
Dan_Van_Slyke
May 18, 2005
OK people,
There are at least several image programs outthere that do a LOSSLESS rotation of jpg images. They do not "convert" them or in any way "resave" them, thereby inducing the jpg compression loss. I don’t know the exact mechanism but it works. They keep all original data. ThumbsPlus in the Windows world and Graphic Converter on the mac side both have this VERY NICE feature. Maybe we can get a definitive answer from Adobe or something. It sure would be nice to have the workflow mostly if not wholly contained in PS.
DM
Don_McCahill
May 18, 2005
It would be fairly easy to make a lossless jpg rotation the merely outputs the pixels vertically instead of horizontally. However, I am quite sure that this would not be part of the jpg standard (something Chris Cox is pretty adament about, I think) and would not actually rotate the jpg for other applications (something PS is designed to do).

I doubt Adobe would implement a non-standard format to solve a problem that so few people need.

Don
TT
Toby_Thain
May 18, 2005
It would be fairly easy to make a lossless jpg rotation the merely outputs the pixels vertically instead of horizontally. However, I am quite sure that this would not be part of the jpg standard (something Chris Cox is pretty adament about, I think) and would not actually rotate the jpg for other applications (something PS is designed to do).

This FAQ relates to a solved problem; some utilities that perform lossless rotation are listed here <http://sylvana.net/jpegcrop/losslessapps.html>. It does not violate any standard – the output image is just a standard JPEG – and it *does* physically rotate the image, unlike image browers that just tag it "rotate later".

Must-have mockup pack for every graphic designer 🔥🔥🔥

Easy-to-use drag-n-drop Photoshop scene creator with more than 2800 items.

Related Discussion Topics

Nice and short text about related topics in discussion sections