Results 1 to 8 of 8

Thread: LZW or other Compression

  1. #1

    Join Date
    Jan 2006
    Location
    Memphis, TN
    Posts
    398

    LZW or other Compression

    I've always saved my images at full resolution. I'm about to fill up yet another hard drive so I looking into saving images with compression. I've been told that LZW is lossless. Anyone using it and what are your opinions?
    Ron McElroy
    Memphis

  2. #2

    Join Date
    Feb 2010
    Location
    Plano, TX
    Posts
    40

    Re: LZW or other Compression

    LZW (Lempel-Ziv-Welch) is indeed a lossless compression scheme. It is quite old, having been used since the early 80's. I would assume you are working with TIFF files if LZW is being presented as an option. I think the only standard compression formats for TIFF are JPEG and LZW.

    Depending on your purpose, you could get smaller file sizes out of a more modern lossless format like PNG or JPEG2000 (though JPEG2000 hasn't really taken off for some reason.) LZW compressed TIFF files will give you no problems though.

  3. #3

    Join Date
    Sep 2003
    Location
    Massachusetts USA
    Posts
    8,476

    Re: LZW or other Compression

    If you use Photoshop, you can use PSD, which is a lossless compression algorithm.

  4. #4
    Brett Simison bsimison's Avatar
    Join Date
    Dec 2006
    Location
    Middlebury, Vermont, United States
    Posts
    247

    Re: LZW or other Compression

    I haven't saved TIFFs with LZW in several years, so I just did a quick save test with a 16-bit, 37MB file I currently had open in Photoshop. These are the actual file sizes on disk:

    TIFF, no compression: 37,473,624 bytes
    TIFF, LZW compression: 48,838,428 bytes
    TIFF, ZIP compression: 36,681,304 bytes
    PSD, standard: 37,476,176 bytes

    You might want to perform your own tests and see what happens. You don't get a lot of savings with TIFF compression (you may actual gain bytes with LZW, at least in my test!).

    -Brett

  5. #5

    Join Date
    May 2009
    Location
    Vermont
    Posts
    253

    Re: LZW or other Compression

    LZW works with 8 bit files well. LZW doesn't play with 16 bit files well at all, learned this very quickly when i started using digital, and scanning LF at 16 bits.

    Tom

  6. #6

    Join Date
    Feb 2010
    Location
    Plano, TX
    Posts
    40

    Re: LZW or other Compression

    LZW is the same compression scheme used in GIF files. It certainly works best on 8 bit files, but more importantly, it is optimized for images with solid color fields. The same holds true for the PNG format. If you have line-art with few colors you will get a very small file size (and this sort of image looks godawful in JPEG format.) Unfortunately, photographs tend to have continuous tonal shifts, which don't play well with this sort of compression.

    ZIP is a good general purpose compression format, but it is really best optimized for flatform text files, so photos will only get moderate compression.

    JPEG is designed for photographs, so has good quality and compression, but it is lossy. JPEG2000 has a very nice photographic compression scheme that supports a lossless format. JPEG2000 is supported by Photoshop and all of the major graphic arts software, but little else. On the other hand, JPEG2000 isn't a format designed for working files. I don't believe that it has support for layers a-la TIFF and PSD. As an archival format it may be acceptable, as long as you're careful to use the lossless settings. (I know PS supports it, but I've only actually played with JP2 in Corel's software).

  7. #7

    Join Date
    Sep 2003
    Location
    Massachusetts USA
    Posts
    8,476

    Re: LZW or other Compression

    8-bit RGB

    TIFF with no compression: 3.78 MB
    Same image saved as PSD: 1.7 MB

    PSD uses lossless compression. It is not the same as TIFF.

  8. #8

    Join Date
    Jan 2006
    Location
    Memphis, TN
    Posts
    398

    Re: LZW or other Compression

    Thanks for replies everyone. Looks like I need to do some testing when I get home. I hadn't thought of saving as PSD files.
    Ron McElroy
    Memphis

Similar Threads

  1. Is quality lost printing from a .jpeg file?
    By sanking in forum Digital Processing
    Replies: 72
    Last Post: 4-Aug-2008, 23:41
  2. Jpeg Compression????
    By Kirk Gittings in forum Digital Processing
    Replies: 27
    Last Post: 3-Jun-2008, 02:48
  3. V750-M Scanner
    By AVCHD in forum Digital Hardware
    Replies: 10
    Last Post: 19-Sep-2007, 08:36
  4. Help with compression research (Need sample images)
    By schngrg in forum Digital Processing
    Replies: 0
    Last Post: 25-Jan-2007, 22:09
  5. Ebony bellows compression
    By Bruce Pottorff in forum Cameras & Camera Accessories
    Replies: 4
    Last Post: 4-Sep-2006, 02:59

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •