Skip to main content
gregn29157636
Known Participant
December 14, 2019
질문

After you save an image as a regular JPEG file with a specific level of compression?

  • December 14, 2019
  • 5 답변들
  • 740 조회

After you save an image as a regular JPEG file with a specific level of compression (0 - 12) and as "Baseline (Standard)," how can you tell what level of compression you saved the image as? Or how can you tell what the level of compression (of the image) is? 

이 주제는 답변이 닫혔습니다.

5 답변

Stephen Marsh
Community Expert
Community Expert
December 15, 2019
Stephen Marsh
Community Expert
Community Expert
December 14, 2019

If you resave a Photoshop JPEG, it does indeed know the previous compression level. This info is saved as metadata in the file. ExifTool reports the following for a baseline level 10 compressed JPEG:

 

[Photoshop] PhotoshopQuality : 10
[Photoshop] PhotoshopFormat : Standard
[Photoshop] ProgressiveScans : 3 Scans

 

gregn29157636
gregn29157636작성자
Known Participant
December 15, 2019

Thanks. 

davescm
Community Expert
Community Expert
December 14, 2019

There is no single value stored in the jpeg file. Instead tables are used for the quantisation and encoding used. These are used during the decode. So Photoshop's nominal 1-12 settings result in different sets of values used in the quantisation and encoding and these are stored in the tables.

See here for detail:

https://en.wikipedia.org/wiki/JPEG

 

Dave

D Fosse
Community Expert
Community Expert
December 14, 2019

Yeah, I think I must have read that Wikipedia article twenty times, and two seconds later forgotten every word of it 😄

D Fosse
Community Expert
Community Expert
December 14, 2019

If I recall correctly, former Photoshop senior engineer Chris Cox once said here that a jpeg should automatically resave at the same compression level it was previously saved at. If that's correct, it must be somewhere in metadata.

 

Of course, you should never resave a jpeg.

 

 

Bojan Živković11378569
Community Expert
Community Expert
December 14, 2019

I think that information about level of compresion is not stored in JPEG file. 

gregn29157636
gregn29157636작성자
Known Participant
December 14, 2019

But is there any other way of knowing? 

Bojan Živković11378569
Community Expert
Community Expert
December 14, 2019

I do not know for any tool which can provide you info about quality settings or level of compression. I think it is almost impossible without original file to say what level of compression is applied no matter which tool or technique someone may apply.