Skip navigation
Tom19a
Currently Being Moderated

document sizes and jpeg compression / quality

Sep 20, 2012 11:44 PM

Tags: #jpeg #document #sizes #compression

In relation to Photoshop, in the status bar at the bottom it displays what it calls “document sizes”.  Would someone be able to clarify can this be used to determin the quality of a jpeg file ?

 

For example if I open up a jpeg with no compression (file size on disk is 4.57mb) it displays Doc:34.5M/34.5M however if I open the same file with compression set at 5 (file size on disk is 748kb) and ‘document size’ doesn’t change.  How does the document size relate to jpeg compression etc...?

 

Thank you

 
Replies
  • Currently Being Moderated
    Sep 20, 2012 11:51 PM   in reply to Tom19a

    How does the document size relate to jpeg compression etc...?

    jpg is a destructive compression so the relation of uncompressed and compressed size is difficult to assess save to simply apply it and let it do its stuff.

     

    If you want to determine the settings jpgs have been saved with maybe the Script Paul Riggott provided at

    http://forums.adobe.com/message/2986855

    might help.

     

    And as so often the Documentation or Help might have provided clues … quote:

    Document Sizes Displays information on the amount of data in the image. The number on the left represents the printing size

    of the image—approximately the size of the saved, flattened file in Adobe Photoshop format. The number on the right

    indicates the file’s approximate size including layers and channels.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 21, 2012 12:05 AM   in reply to Tom19a

    you are saying that there is no real relation between the document size and quality of the image?

    I am not saying that.

    Naturally there is a relation but the resulting size is also dependent on the image content, so different images of the same pixel dimensions can produce very different compressed sizes with the same jpg-settings.

     

    the document sizes are not the 'uncompressed jpeg' size?

    Once again:

    The number on the left represents the printing size of the image—approximately the size of the saved, flattened file in Adobe Photoshop format.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 21, 2012 12:36 AM   in reply to Tom19a

    From your previous post however you are suggesting then that there is a relation between the Doc size and the quality, why then does the Doc size not change for each file then?

    The (left) Document Size in the Statur Bar refers to uncompressed data which is determined by pixel dimensions, color mode, bit depth, not the compression used to mangle the image.

    Once again:

    The number on the left represents the printing size of the image—approximately the size of the saved, flattened file in Adobe Photoshop format.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 21, 2012 12:48 AM   in reply to Tom19a

    The effect of compression can vary significantly for images of different content (this also includes non-destructive compression).

    So the »formula« you seem to be looking for might not make a lot of sense.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 21, 2012 1:09 AM   in reply to Tom19a

    Open a file, say a tiff or psd, zoom in close to the image, about 400% on a recognizable detail. Use the Save As... command, select JPEG, and click Save.

     

    When  you get to the dialog box, run the Quality slider to 0 and observe what happens to the pixels. It's like they are clumped together in large blocks. 

     

    That's how it saves on disk space when it is written back to the file.

     

    477k/477k is the uncompressed size/size in ram and 31.5k is the saved to file compressed size caused by clumping all those pixels together. Of course you trash the file that way,but that's where compression saves space. Not by reducing the pixel count,but by consolidating them.

     

    jpeg compression.png

     

    My point is is that you adjust that slider by eye and from there decide what optimal quality number is worth the space saved.

    With broadband connections and terabyte drives, I would not see any point to less than 12 quality compression these days.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 21, 2012 12:59 AM   in reply to Tom19a

    To get a handle on compression effects I would recommend a simple test:

    Create an image that is white with one or a couple of black square/s and save a tif with LZW compression.

    Then duplicate the image, and apply the Filter Add Noise and save that as a tif with LZW compression, too.

    One of the files on disc will likely be much smaller than the other, because its content compresses »better«.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points