home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / amiga / graphics / 8975 < prev    next >
Encoding:
Internet Message Format  |  1993-01-24  |  4.0 KB

  1. Path: sparky!uunet!spool.mu.edu!olivea!charnel!rat!ucselx!crash!rtillery
  2. From: rtillery@crash.cts.com (Rick Tillery)
  3. Newsgroups: comp.sys.amiga.graphics
  4. Subject: Re: JPEG compressions
  5. Message-ID: <1993Jan23.164122.22989@crash>
  6. Date: 24 Jan 93 00:41:22 GMT
  7. References: <1993Jan23.093844.27675@etek.chalmers.se>
  8. Organization: CTS Network Services (crash, ctsnet), El Cajon, CA
  9. Lines: 81
  10.  
  11. Per Flodin (pflodin@etek.chalmers.se) wrote:
  12. : I move a lot of 24 plane pictures (raytraced) using floppydisks and am
  13. : therefore very interrested in keeping the files as short as possible.
  14. : I believe that the best compression today is offered by JPEG's but, as
  15. : you all know, the JPEG standard involves removing data on a user-based rate.
  16.  
  17. This is called LOSSY compression.
  18.  
  19. : I'd like to keep my pics as intact as possible so I wonder if a rate of
  20. : 100 (the maximum allowable rate) removes any data or if it just compresses?
  21.  
  22. No, even with a setting of 100, there will be image degradation.  The first
  23. step of JPEG is to do a conversion of color space from RGB (or whatever the
  24. image is in) to YCrCb space.  Then a Discrete Cosine Transform is done on
  25. the data (this is similar to a Fourier Transform).  If the compressor used
  26. floating-point operations for this step, there would not be any loss.
  27. However, for speed, all the compressors (and decompressors on the reverse
  28. end of this process) use integer math.  The inherent round-off loss will
  29. immediately result in some loss of data.  Admittedly this loss will not
  30. result in more than a 1 or 2 value difference (and you most certainly will
  31. NOT be able to see this).
  32.  
  33. Then, at a setting of 100, the intentional loss would not be added and the
  34. result would be very close to the original upon decompression.
  35.  
  36. : I think that a JPEG file using compression rate of 100 still would be
  37. : smaller than most other formats, or?
  38.  
  39. Some, yes.  All, no.
  40.  
  41. JPEG relies on the smooth qualities of an image, as well as the inherent
  42. noise present in any real-life image to allow its compression to be
  43. virtually invisible.  If however, the image is a stark image with little
  44. or no noise and a limited amount of detail (at a distance detail becomes
  45. not unlike noise), even at a setting of 100, you may not be pleased with
  46. the results.
  47.  
  48. : Any suggestions welcome!
  49. :
  50.  
  51. Here are mine:
  52.  
  53. 1) Play with JPEG by compressing and decompressing images at varying levels
  54.    of compression.  If possible, view the resulting images on a 24 bit
  55.    viewing device (if you don't have one now, you might very well have one
  56.    in the future, so it's a good idea to plan for that quality of output)
  57.    and see at what levels you are satisfied.
  58.  
  59. You'll notice that un-detailed ray-traces and hand-drawn images suffer the
  60. most from JPEG.
  61.  
  62. 2) For those images you find don't satisfy you except at a setting of 100,
  63.    give JPEG up in favor of the following:
  64.  
  65. Save the image in raw format (for instance using ADPro's Sculpt saver) in
  66. a red, green and blue file.  Create a text file giving (at the least) the
  67. dimensions of the image (that information is not present in the raw files)
  68. and compress them with your favorite archiving utility (LHArc is probably
  69. the best).
  70.  
  71. I obtained a 900x900 and a 1000x830 image done (in the good old days) with
  72. Sculpt-Animate.  The images would take up 2.4 and 2.5 megs respectively, but
  73. they were each less than 250K in their archives.  JPEG did nasty things to
  74. them except at a setting of 100, and then the size of the files were nearly
  75. 600K!
  76.  
  77. 3) Send me a copy of EVERY ONE of your 24 bit images so I can add to my
  78.    collection (and return some to you in trade) :-)
  79.  
  80. Rick Tillery
  81.  __________________________________________________________________
  82. |                                                                  |
  83. | Rick Tillery ( RTillery@crash.cts.com  RTillery@cup.portal.com ) |
  84. |                     The displaced Razorback!                     |
  85. |      Amiga - The underdog computer with a superhero's power.     |
  86. | N.I.N.J.A.J.I.S. - "I refuse to donate an aloft fornication."-RT |
  87. |__________________________________________________________________|
  88.  
  89.  
  90.