Slashdot Mirror


Breakthrough In JPEG Compression

Kris_J writes "The makers of the (classic) compression package Stuffit have written a program that can compress JPGs by roughly 30%. This isn't the raw image to JPG compression, this is lossless compression applied to the JPG file. Typical compression rates for JPGs are 2% to -1%. If you read the whitepaper (PDF), they are even proposing a new image format; StuffIt Image Format (SIF). Now I just need someone to write a SIF compressor for my old Kodak DC260."

91 of 648 comments (clear)

  1. Fractal image format by nmg196 · · Score: 5, Interesting

    I would have thought that rather than 'zipping' an existing image format to create a new one just to save 30%, they'd be better off improving the original image compression algorithm or coming up with a new one.

    Quite a while ago (years!) I had a program which could compress images into a fractal image format. It was amazing - the files were much smaller than JPEGs but looked a lot better. The only drawback was that it took ages to compress the images. But with the extra CPU horsepower we have today I'm surprised fractal image compression hasn't become more prevailant. It would still probably be useless for digital cameras though as it would probably be impossible to implement the compression in hardware/firmware such that it could compress a 6+ megapixel image within the requisit 1-2 seconds.

    Does anyone know what happened to fractal image format files (.fif) and why they never took off?

    1. Re:Fractal image format by Nik13 · · Score: 2, Insightful

      For those of us who use DSLRs, 1-2 seconds is way too long. True enough, buffers help, but I wouldn't buy such a slow camera.

      --
      ///<sig />
    2. Re:Fractal image format by qualico · · Score: 2, Interesting

      So that would be the ticket for .fif.
      Optimized hardware, specifically designed to run .fif algorithms?

      I'd love to see something like this in a camera.
      No doubt future Mars rovers would benefit from smaller download sizes?

    3. Re:Fractal image format by mcbevin · · Score: 5, Informative

      Maybe, but StuffIt is an archival program. If I have 10gb of existing jpgs and want to archive them, then this is whats wanted. Reencoding them as you suggest would be equivalent to converting say an mp3 to ogg format - a surefire way to lose quality with little gain.

      Re fractal compression, people have been hyping it up for years but as far as I know it never really delivered. I'm dubious about any claims to some mysterious program which compresses anything amazingly well without strong evidence.

      Wavelet compression however is used in jpeg2000 which is a bit better than jpeg but even that isn't supported by any digital cameras.

      If StuffIt really does compress jpegs 25-30% that is a massive leap forward over the previous state-of-the-art compressors which reached I think around 3-4% - http://www.maximumcompression.com/data/jpg.php . Heres hoping their claims pan out, and that they release at least some details regarding the methods they used.

    4. Re:Fractal image format by baker_tony · · Score: 2, Informative

      Interesting, never heard of Fractal image compression: http://netghost.narod.ru/gff/graphics/book/ch09_09 .htm Fractal Basics A fractal is a structure that is made up of similar forms and patterns that occur in many different sizes. The term fractal was first used by Benoit Mandelbrot to describe repeating patterns that he observed occurring in many different structures. These patterns appeared nearly identical in form at any size and occurred naturally in all things. Mandelbrot also discovered that these fractals could be described in mathematical terms and could be created using very small and finite algorithms and data. Let's look at a real-world example. If you look at the surface of an object such as the floor currently beneath your feet, you will notice that there are many repeating patterns in its texture. The floor's surface may be wood, concrete, tile, carpet, or even dirt, but it still contains repeating patterns ranging in size from very small to very large. If we make a copy of a small part of the floor's surface and compare it to every other part of the floor, we would find several areas that are nearly identical in appearance to our copy. If we change the copy slightly by scaling, rotating, or mirroring it, we can make it match even more parts of the floor. Once a match is found, we can then create a mathematical description of our copy, including any alterations we have made, and can store it, and the location of all of the parts of the floor it matches, as data. If we repeat this process for the entire floor, we will end up with a set of mathematical equations called fractal codes that describe the entire surface of the floor in terms of its fractal properties. These mathematical equations can then be used to recreate an image of the entire floor. etc...

    5. Re:Fractal image format by JanneM · · Score: 2, Interesting

      ``If I remember correctly, that is still under patent. Until they expire, the format will be a nonstarter.''

      You mean like GIF and MPEG and MP3 and probably this new scheme?


      I should have elaborated. I remember when this was first written about. It was pretty amazing, but the inventors were charging for the right to implement a decoder, and (at least in the beginning) would not even let others to encode at all; the business model was apparently that you'd send them the images and they'd encode it for you.

      Even without that last bit of stupidity, the fact that you needed to pay to implement a decoder meant that nobody did, since there was no images to decode anyway. And not many would want to encode in a format that nobody could read since they didn't have a decoder.

      --
      Trust the Computer. The Computer is your friend.
    6. Re:Fractal image format by nmg196 · · Score: 3, Informative

      Most existing DSLRs are at least this slow. They only seem faster because they have a frame buffer which can store 4-8 uncompressed images. The main cause of delay is writing out the images to the memory card rather than compressing the images. You can see this by looking at the flashy red light on the back of your EOS after you take 4 shots in sports mode... The camera is busy writing for several seconds after the last shot has been taken.

      If the image compression algorithm was more efficient then there would be less data to write to the card and perhaps overall, it would actually be faster - even though the image compression algorithm might be slower.

    7. Re:Fractal image format by fyngyrz · · Score: 2, Interesting
      FWIW, GIF is a far different situation; Unisys played bait-and-switch such that the developer community was widely using the format before they became aware it was encumbered.

      Fractal image compression was initially closely held, agressively marketed to developers (including us) for considerable bucks, and failed to make inroads in that venue. Now we'll have to wait for the patents to expire to consider it again -- it's been around for years and has gone literally nowhere, so I think the grandparent post had it pretty much spot-on.

      --
      I've fallen off your lawn, and I can't get up.
    8. Re:Fractal image format by Goodbyte · · Score: 4, Informative

      For those mathematically interested fractal compression tries to find a matrix transform (A) so the serie x_n = A * x_{n - 1} converges where x is an image matrix and x_{\infty}=image to compress is a fixed point.

    9. Re:Fractal image format by ID10T5 · · Score: 5, Funny
      I'm not sure how practical 100% reduction is, but if anyone is interested I have an extremely fast algorithm for doing it.

      The results can be seen by the /. logo I have reduced here:

    10. Re:Fractal image format by happyhippy · · Score: 5, Insightful
      I did my final year project in Fractal Image Compression about 5 years ago.

      I concluded that it isnt practical for general use, it took too much time to compress an image (alright it was five years ago and so today it probably wouldnt matter), but most importantly there is no easy general compression solution for all images (for instance one that compresses tree pics well wont do faces well and vice versa).

      For a general dip into fractal image compression try to get and read 'Fractal Image Compression By Yuval Fisher'. Damn good read.

    11. Re:Fractal image format by nmg196 · · Score: 2, Informative

      > I'm dubious about any claims to some mysterious program
      > which compresses anything amazingly well without strong evidence.

      It's hardly mysterious. You can download trial versions and try it yourself - it's a well known compression technique that there are whole books about

      There is near infinite evidence that it works so I don't know why you're doubting it. The issue isn't whether or not it works, it's why hasn't somebody made an opensource algorithm that we can all use.

      The problem is that the existing fractal formats are all patented by companies that probably charge a fortune to license it.

    12. Re:Fractal image format by imsabbel · · Score: 3, Interesting

      Believe him, i used the same programm. It was from iterated systems (they are long gone).
      Its not on their homepage anymore. I dont know if they really used IFS or they just did some wavelets and faked it, but the compression was honestly much better than jpeg. (but of course slower, too. IIRC, compressing a 1024x786 picture took about 40-50 seconds on my pentium.
      What was unique was the viewer. it was "resolutionless", so you could zoom in farther than the original without pixelation. Shapes started to look painterly then, as if traced by outlines, which would actually be in favour of it really being a fractal compressor.
      No idea why it was canned.

      --
      HI O WISE PRINCE. WHT TOOK U SO DAM LONG?
    13. Re:Fractal image format by eh2o · · Score: 2, Informative

      IIRC the fractal format basically is done by taking a wavelet transform and then searching for IFS patterns in the tree and storing those instead of the actual leaf coefficients. However, putting in all the IFS junk just makes the math a lot harder to work with, is really quite slow, and does poorly on anything other than nature images (i.e., anything that is not visibly fractal). Simply pruning and coding the wavelet tree (e.g. jpeg2000) is a much more practical approach.

    14. Re:Fractal image format by plumby · · Score: 4, Funny

      100% compression of a file is easy. It's the decompression of that file into the original that's the tricky bit.

    15. Re:Fractal image format by dalyraptor · · Score: 4, Insightful

      30%(even close to) is a very good reduction in filesize, when considering this is lossless, you cannot turn your nose up at this. People with alot of jpegs will want to use it. Creating a better jpeg compression algorithm with 50% (100% is impossible) filezize reduction, seems impossible. I would make the assumption that since jpeg is over 18years old, compression algroithms are at their limit for this image format.

    16. Re:Fractal image format by Ilgaz · · Score: 2, Informative

      It has already been done. I use it all the time on OS X instead of TIFF.

      http://www.jpeg.org/jpeg2000/

      I really don't understand why the camera etc companies doesn't adopt it.

    17. Re:Fractal image format by Don+Giovanni · · Score: 2, Funny
      I believe you are looking for this:


      Lzip





      What is lzip?
      Glad you asked. Lzip is an advanced file compression utility that
      generates smaller file sizes than either gzip or bzip2, and does so
      much faster. Lzip can achieve these goals because it it based on a
      so-called "lossy" compression scheme (most other utilties make use of
      slower, less efficient "lossless" compression). For more information,
      you can consult the Frequently Asked Questions list. Or, you can dive
      right in, grab the 1.0 tarball and start reducing your bloated files
      down to 10%, 15%, in some cases 0% of their original size!
      --
      P2P Anonymous Distributed Web Search: http://www.yacy.net/
    18. Re:Fractal image format by Anonymous Coward · · Score: 3, Interesting

      Does anyone know what happened to fractal image format files (.fif) and why they never took off?

      Hard to implement. Patent mess. CPU requirements. No better fidelity [they have just as many artifacts as JPEG, but the artifacts are 'nicer looking']. Massive increases in available bandwidth. Fractal wierdness with editing, you always have to convert back to raster anyway.

      The tech has found niche applications though, such as image scaling : Lizardtech's Genuine Fractals is pitched as an image rescaling tool, but it's basically the same tech as you're talking about. In this case, it's just a save/load plugin for photoshop. You save any file as a fractal and then when you reopen it it asks you how big you want it. 200%? 500%? Whatever, it scales it up and looks much the same, but with a strange kind of fractal painting-like effect.

      The strange thing is that if you zoom in on one of these scaled images you start to see shapes that weren't in the original -- that weren't in the original scene, though at normal zoom the image might look perfectly normal. It's kind of creepy.

    19. Re:Fractal image format by nmg196 · · Score: 2, Informative

      What an idiot. He's posted almost word for word exactly what I said! Did you only read the first sentence?!

      Me: The main cause of delay is writing out the images to the memory card rather than compressing the images.

      You: What takes time, is writing to the memory card, not compressing the JPEG's.

      etc etc....

    20. Re:Fractal image format by Anonymous Coward · · Score: 2, Funny

      They always do stuff like that. First, they kill Kennedy. Then, they land a man on the moon, but it wasn't someone we wanted to leave there - so money was spent bringing him back. Then, they do the watergate thing, then the 1980 olympics which led to a bad movie (and they knew it would, too). Lately, they've just been doing a lot of stuff that pisses me off.

      One day, I'll find them - then they'll get what's coming to them. God help me, I'll use both sides of my hand.

    21. Re:Fractal image format by dcw3 · · Score: 2, Interesting

      It would still probably be useless for digital cameras though as it would probably be impossible to implement the compression in hardware/firmware such that it could compress a 6+ megapixel image within the requisit 1-2 seconds.

      Why must we have it in 1-2 seconds? You could implement this a couple of ways without impacting the need for quick back to back shots. 1.) A compression button (menu option, or some such), allowing the owner to do a manual compress when running low on space. 2.) Do it automatically, but if the owner snaps another photo, then interrupt the compress until later...sort of a background compression.

      --
      Just another day in Paradise
    22. Re:Fractal image format by happyhippy · · Score: 2, Interesting
      Well the fractal decompression I was using was mere seconds. I think all forms of it are, seeing that the compressed file is just a list of transformations of whatever groups of pixels that were stored with it.
      Its the deciding on what groups of pixels to store thats the problem, and that took an hour per machine on a 300MHz pentium 2.

      A rough fractal compression algorithm is this:
      1. Divide the pic up into subsets of itself, or pixel blocks. Simply Half it, quarter it, eighth it etc, down to 2x2 pixels. This can be varied depending on how quick you want it against loss of potential compression, for instance you can stop at 'eighths' and do the rest of the algorithm on just these. It would be very fast but the compression wont be that great.
      2. Now for each pixel block, compare it with every other one to see if they roughly match given a set lossy tolerence (another variable you decide in advance).
      3. If blocks match, store the smaller block if one, and the directions on how to produce the other blocks.
      4. If blocks dont match store the pixels.

      Now this is a simplified algor, but you can see in 2 that theres a shitload of block comparisons needed for the best compression of an image. Even more for better search parameters, like rotating each block by 90/180/270 degrees to better pattern match or trying the inverse of blocks which again doubles the comparisons! My 256x256 greyscale test images took an hour, triple that for a RGB image!

    23. Re:Fractal image format by mukund · · Score: 4, Insightful

      nmg196:

      Fractal image compression is generally useless for high-quality output. It's useful for low-bitrate applications. You can read about this in the Mark Nelson book.

      The main reason fractal image compression was not picked up is the same reason algorithms such as IDEA are not very popular --- software patents. IIRC The company which holds the patents for fractal image compression made it clear that it was ready to defend its IP back in the 90s.

      You can read about software patents too in the Mark Nelson book (the ones which apply to data compression).

      Even the IJG JPEG software (not the standard) which we use today so commonly avoids arithmetic coding and uses baseline huffman compression for compressing the quantized output.

      --
      Banu
    24. Re:Fractal image format by idobi · · Score: 2, Informative

      I don't know about Nikon, but Canon (Pro & Prosumer models) uses two buffers. Uncompressed are written to one buffer while the camera process them into JPEG on to the second buffer; where it's held until the image is written to the CompactFlash card.

    25. Re:Fractal image format by Lord+Prox · · Score: 2, Informative

      Here ya go. If you trust the source...

    26. Re:Fractal image format by jridley · · Score: 2, Informative

      Re fractal compression, people have been hyping it up for years but as far as I know it never really delivered. I'm dubious about any claims to some mysterious program which compresses anything amazingly well without strong evidence.

      A program called Real Fractals has been in use by people who make very large blowups of images for years. It's pretty much standard practice to conver to Real Fractals before making a very big enlargement (like more than a few feet on a side).

    27. Re:Fractal image format by jridley · · Score: 3, Informative

      Whups, sorry, that's Genuine Fractals from LizardTech.

    28. Re:Fractal image format by The+Infamous+Grimace · · Score: 2, Funny

      Basically, a self-similar Poincare Hypersurface of a dynamical system that is sensitively dependent on initial conditions in at least one of it's phase space dimensions.

      Well, that clears things up nicely... :-)

      (tig)
      --
      Ignorance and prejudice and fear
      Walk hand in hand
    29. Re:Fractal image format by Corpus_Callosum · · Score: 3, Interesting

      I concluded that it isnt practical for general use, it took too much time to compress an image (alright it was five years ago and so today it probably wouldnt matter), but most importantly there is no easy general compression solution for all images (for instance one that compresses tree pics well wont do faces well and vice versa).

      I did some basic expirementation with Genetic Algorithms and fractal compression and I can tell you, GA does solve the problem. Not only solve it, but obliterates it. With GA, fractal compression can achieve compression ratios and quality that are unheard of with other techniques.

      Of course, this is to be expected, after all - it is what nature does with us. Our genecode is the compressed image, our bodies are the uncompressed results.

      Interesting thought food, huh...

      --
      The reason that it can be true that 1+1 > 2 is that very peculiar nonzero value of the + operator
    30. Re:Fractal image format by nmg196 · · Score: 2, Informative

      They are stored uncompressed in the frame buffer while it compresses them. The camera needs somewhere to store the RAW images while it's doing the compression. And yes, the frame buffers are fairly big. Usually 64mb + in a DSLR.

      If the camera had to store the images in a small frame buffer designed for compressed images, then you wouldn't be able to save RAW images (or maybe only one - but that would make for a useless camera as they are 16mb + big and would take aaages to write out). So to me it was fairly obvious that the framebuffer was for RAW images.

    31. Re:Fractal image format by 01dbs · · Score: 2, Insightful

      Wavelet compression however is used in jpeg2000 which is a bit better than jpeg but even that isn't supported by any digital cameras.

      I've been working with wavelets (eg.) in several contexts for many years now. Saying wavelet compression does 'a bit' better than jpeg is an enormous understatement. Especially in applications where you need serious compression ratios, wavelets are vastly better than the traditional jpeg compression algorithm.

      Want proof? See for yourself.

      But it sounds like this has more to do with improving transfer times for images that already exist in jpeg than developing a new standard for compression. But if some digital cameras started supporting jpeg2000, it'd be a boon: you could fit many more images in memory without a perceptiable decrease in quality OR could fit the same number at much higher quality.

    32. Re:Fractal image format by KilobyteKnight · · Score: 2, Informative
      If StuffIt really does compress jpegs 25-30% that is a massive leap forward over the previous state-of-the-art compressors

      I noticed the chart at the bottom of the whitepaper showed their "25-30%" figure was based on tests done on PNGs converted to JPGs at 50% quality. There is a lot of data degredation at 50% and I don't think many people regularly use anything below about 70%. I'd be much more interested in seeing what compression would be on a JPG straight out of a Digital Rebel or other camera set to highest JPG quality. They seem to have skirted that issue. They also don't explain why it doesn't work on PNGs. It makes me think the existance of the "noise" is what makes the compression possible.

      I could be wrong, that's just the impression I get.
      --
      When will Windows be ready for the desktop?
    33. Re:Fractal image format by harrkev · · Score: 4, Informative

      It certainly seems possible, except for patent issues.

      The heart of JPG is the DCT transform, performed on an 8x8 block basis. This is not being changed, since they claim that the original JPG can be reconstructed bit-for-bit exact. Hence their algorithm must be "lossless." Othewise, if you apply lossy compression to lossy compression, you get even more loss.

      Here is the JPEG algorithm in a nutshell...
      1) Convert RGB into Brightness, Color, and Saturation (three separate monochrome images).
      2) Down-sample the Color and Saturation images. (This reduces the image size by 1/2; VERY lossy but you don't notice it)
      3) Break each image into 8x8 blocks.
      4) Perform a 2D DCT (discrete cosine transform) on each 8x8 block separately.
      5) Quantize the DCT data using the special JPEG quantizaion matrix (this is where most of the loss happens)
      6) Convert each 8x8 block of DCT data into a 64-number stream using the zig-zag scan (this just shuffles the order of the data, nothing more).
      7) Apply a specialiazed huffman code to compress the data (lossless compression).
      8) Write the header information, and dump encoded data to the file

      I could be waaaay off-base on this, but I suspect that they have found a better replacement for the zig-zag scan and huffman coding steps. Optimizing another step would still be lossy, and could not re-create the original JPEG byte-for-byte.

      But I must admit that I am completely baffled how they could take a huffman code optimized for JPEG and find something 30% better. Such a thing seems to be impossible, given what I know of coding theory (which, I admit, is a but rusty).

      --
      "-1 Troll" is the apparently the same as "-1 I disagree with you."
    34. Re:Fractal image format by MasTRE · · Score: 2, Funny

      > I would make the assumption that since jpeg is over 18years old, compression algroithms are at their limit for this image format.

      Uh, dude - they just came out with this! So how can you say that? I would say this will actually ignite the minds of open-source compression experts (no, not literally) to rethink their approach to compressing JPEG, since they now know it's doable loselessly.

      --
      Must-not-watch TV!
    35. Re:Fractal image format by wjr · · Score: 3, Informative
      Actually, it's not hard to improve on Huffman coding. Arithmetic coding has been around for a long time, and can do much better on most kinds of data. In fact, I'd suspect that this is how they're doing this trick: undo the Huffman coding and redo it with arithmetic coding. In fact, it's possible (though unlikely) that all they're doing is recoding a Huffman-coded JPEG file to an arithmetic-coded JPEG file - that's right, the original JPEG standard has variants that use arithmetic coding. You'll never see these in the wild because they're not part of "baseline JPEG" which is what everyone uses. Arithmetic coding is part of the standard, but nobody uses it. Arithmetic coding takes more CPU than Huffman coding, and at the time JPEG came out even Huffman-coded JPEG files took a long time to encode/decode. Also, the patent situation for arithmetic coding is a lot muddier than for Huffman coding.

      This page has a lot of information on arithmetic coding. Very briefly, it's a way of using fractional bits to encode symbols - Huffman coding encodes each symbol to some integral number of bits (more bits for infrequent symbols, fewer bits for common symbols); arithmetic coding does the same, but each symbol can map to a non-integral number of bits; you save a fraction of a bit per symbol, which can really add up. It's not easy at first to see how this works, but the math works out.

      Arithmetic coding has another advantage over Huffman coding: with Huffman coding, you first collect symbol frequency information, then you build your coding table based on that frequency information. You then have to somehow encode the coding table in your bitstream (so the decoder knows how to decode the symbols). The coding table is based on an average over (often) the whole file, so it can't adapt to changes in the symbol frequencies: if one part of the file contains just numbers, and the other part contains just letters, their statistics get mixed together so you end up with a Huffman coding table that's not optimal for either part. Adaptive Huffman coding (changing the codewords as you encode the file, based on changing statistics) is possible but painful. On the other hand, adaptive arithmetic coding is very very easy.

    36. Re:Fractal image format by fyngyrz · · Score: 3, Insightful
      Well, as someone who has produced some reasonably innovative things in both hardware and software, I can tell you that I innovate for a number of reasons, none of which make me particularly interested in obtaining patents. First of all, I run a software company, and cool features drive sales. Sales feed me and my employees, pay the insurance coverage, etc.; that's the money connection. Patents not required. Trade secret is plenty of protection, it gives you a window to sell the "thing." Sometimes it gives you an amazingly long window -- some things we have offered for some time still haven't appeared anywhere else, which both surprises and pleases me. Secondly, innovating is fun. Creating something new and interesting is... interesting. Fun. Cool. Satisfying. Validating. All of that, and more. Third, innovating is like any other task, in that if you train yourself to think in a manner that produces new ideas, you're a lot more likely to have them, and then #1 comes into play again. Or to put it another way, the more you do it, the better you'll get at it.

      Patents do not tempt me. First, a good (solid) patent is expensive, both in terms of time and money. SOlid can be an illusion, too. Either here or on Kuro5hin, I saw a tag line in someone's message that mentioned a patent they hoped to make some money from. Or maybe I saw it on the web site. Anyway, what it appeared to be on a quick look was a method for selecting a bunch of different types of compression for an image format based upon an analysis of compressability for the local cell. If that's what it was, then we did it way back in 1985, called it PMBC and used it commercially for years. It was really fun, we presented graphs during the analysis of the image and you could see what modes were most common. Filters that eventually ended up in PNG were in there, too. See what I mean? So much for solid ideas. If no one says anything, or doesn't file for a patent at all, how do you know you're not just wasting your time and money? Of course, you don't.

      Second, a patent completely exposes what you're doing (in sharp contrast to trade secret.) If you're laboring under the idea that only big companies that are easily found and attacked in court are the source of "they copied my idea!" problems, you're sadly mistaken.

      Third, if someone infringes, it is very expensive to prosecute them, and if they don't have bucks themselves, there is nothing to be gained from it other than shutting them down, which isn't worth spit more often than not.

      Patents, some people claim, allow you to sell an idea. That's fine, as far as it goes. If that's what you want to do. However, I simply observe that if you do not have a patent, what's to stop you from selling your idea then? You can still show it to people, sell it if you can convince them they want it, etc. For that matter, you can make them buy a patent, if they're so minded. Now -- if your idea is so freaking simple that once you show the results of it to someone, then they know what to do, then I humbly submit it wasn't worth patenting anyway -- my opinion (which isn't in line with how patents work by any means) is that trivial things are, and should remain, trivial.

      But that's just me. :)

      --
      I've fallen off your lawn, and I can't get up.
  2. What's the point? by CliffSpradlin · · Score: 5, Interesting

    The linked page shows average decompression times of 6-8 seconds for 600-800 KB files, rising with the size of the file. Who would benefit from this? It's obviously too slow to speed up web pages, and would be far too CPU intensive for consumer cameras. Professional photographers would have no use for this since they would use RAW images.

    I mean, it's cool and all to be able to compress JPGs by that much more, but the size gains are negated by the time it takes to decompress them. This seems just like those super high compression algorithms that have rather amazing compression rates, but take -forever- to compress or decompress, making them unusable. The difference is those are obviously and labeled as simply for scientific research into compression, but Aladdin seems to be trying to market this product for public consumption. The listed uses ( http://www.stuffit.com/imagecompression/ ) seem trivial at best.

    Who's gonna be buying this?

    -Cliff Spradlin

    1. Re:What's the point? by DMUTPeregrine · · Score: 2, Insightful

      Archive a bunch of images sometime. Then it's useful. I needed to put several thousand images (scanlations of manga) onto a cd. It went over the 700mb limit. Using this, I could have saved $0.10 on cds and 2 minutes of time. Not a big deal, but if you do such things a lot, it could add up. So the program is probably worth about $5. Maybe $10, but that could be a bit much.

      --
      Not a sentence!
    2. Re:What's the point? by Zhe+Mappel · · Score: 4, Funny
      The listed uses ( http://www.stuffit.com/imagecompression/ ) seem trivial at best.

      You're right. I read the list, reproduced below. Who'd want to:

      * Send more photos via email
      * Fit more on CDs, DVDs, and other backup media
      * Save time when sending pictures over the internet or across the network
      * Reduce bandwidth costs

      After all, electronic storage media is infinite, and bandwidth is free!
    3. Re:What's the point? by Hast · · Score: 2, Insightful

      Just a minor point here:

      Fit more on CDs, DVDs, and other backup media

      Anyone stupid enough to encode their data using a proprietary system deserve to lose all their data, IMNSHO.

  3. Roughly 25%, but who's counting? by Dancin_Santa · · Score: 4

    I just installed an 800Gb hard disk in my system. I have a gigabyte worth of webmail space (more than that, if you consider that I can send myself gmail invitations). Storage is, as they say in the vernacular, very inexpensive.

    Even in cameras where storage is tight, the bounds of memory is expanding all the time. Whereas a couple years ago the average storage card size was a measly 64Mb, today we are talking about gigabytes of storage memory inside our *cameras*!

    So let's say we can squeeze another 30% of pictures onto a card. Does that really help us? Not really, if you consider that the compression itself rides atop JPEG compression and that computing time needs to be accounted for.

    Currently, the fastest continuous shooting digital camera (the Nikon D2X) can only take 4 shots in a row before its memory buffers get full and the whole camera becomes useless. Compare that with the 9 shots per second F5 and you can see that the speed of shooting isn't going to cut it for digital cameras.

    We need a compression method that is lossless, not one that creates compact files. Space is cheap, CPU cycles aren't.

    1. Re:Roughly 25%, but who's counting? by NMerriam · · Score: 4, Informative

      Currently, the fastest continuous shooting digital camera (the Nikon D2X) can only take 4 shots in a row before its memory buffers get full and the whole camera becomes useless

      I beg your pardon? Just about every digital SLR on the market is able to handle more than 4 images in buffer at a time. My year and a half old 10D can buffer 9 RAW images, and the D70 processes JPEGs before they hit the buffer, so it can buffer JPEGs in the dozens.

      I doubt this is intended for any use other than archiving of images, where it will kick ass. It's clearly processor-intensive from the timing results, but for long-term storage that makes little difference.

      I've got a few TB of images in storage and I'd love to be able to save 20-30% of that space, regardless of how cheap it is. That means a little longer between burning DVDs, and having more stuff on mounted drives for reference.

      --
      Recursive: Adj. See Recursive.
    2. Re:Roughly 25%, but who's counting? by Motherfucking+Shit · · Score: 4, Funny
      Dancin_Santa says:
      I just installed an 800Gb hard disk in my system.
      I always wondered how much space it took to keep track of who's been naughty and who's been nice...
      --
      "BSD: Free as in speech. Linux: Free as in beer. Windows 10: Free as in herpes." --Man On Pink Corner in #52607549.
    3. Re:Roughly 25%, but who's counting? by ashot · · Score: 2, Informative

      http://www.dpreview.com/reviews/canoneos1dmkii/

      thats the fastest continuous shooting camera, you'll notice it has room for 40 JPEG frames in its buffer, and it shoots at 8.3 f/s

      --
      -ashot
  4. Questions by RAMMS+EIN · · Score: 4, Interesting

    The linked page did not answer some of my questions:

    1. Does this only work for JPEG, or also for other (compressed or plain) files?

    2a. If it only works for JPEG, why?

    2b. If it works for others, how well?

    Anybody who can answer these?

    --
    Please correct me if I got my facts wrong.
    1. Re:Questions by ottffssent · · Score: 4, Interesting

      The whitepaper suggests they're tearing out the run-length encoding that's the final step in jpeg and replacing it with something more space-efficient.

      In a nutshell, JPEG works like:

      Original image data -> frequency domain -> high frequencies truncated (via division matrix) -> RLE

      RLE is fast, but not terribly compact. Replacing it with something better improves compression. However, RLE generates not-very-compressable output, which is why traditional compression software does poorly. I imagine if you took a jpeg, undid the RLE, and zip compressed the result, you'd get something close to what the stuffit folk are claiming. If someone wants to try that, I'd be interested in the results.

    2. Re:Questions by azuretongue · · Score: 5, Informative

      JPEG does not use Run-length encoding as its last compression step. Quote from the faq:"The JPEG spec defines two different "back end" modules for the final output of compressed data: either Huffman coding or arithmetic coding is allowed." http://www.faqs.org/faqs/jpeg-faq/part1/section-18 .html It goes on to say that arithmetic coding is ~10% smaller, but is patented, so don't use it. So what they are doing is removing the known chubby huffman coding and replacing it.

    3. Re:Questions by imsabbel · · Score: 2, Interesting

      only that jpegs dont use RLE for encoding the koefficient data, but also a high level compression algorithm. Im not sure if its huffman, but something comareable. NO RLE.
      Thats the reason zip failes: its like zipping a zip. And try using rar on a zip compared to unzipping and raring the contends of the zip.

      --
      HI O WISE PRINCE. WHT TOOK U SO DAM LONG?
    4. Re:Questions by tangent3 · · Score: 2, Informative

      High frequencies are not exactly truncated. It just so happens that after quantisation, most of them drop to 0. If there are any outstanding high frequencies that are non-zero, it will not be truncated.

      JPEG doesn't just rely on RLE, but rather it is a Huffman-RLE combination. Basically, for each element in the DCT block, JPEG will code the coefficient value together with the number of 0-coefficient elements after this, with the code taken from a Huffman table.

  5. Who would benefit fromt that? by g00z · · Score: 2, Insightful

    they are even proposing a new image format; StuffIt Image Format (SIF).
    Gee, I wonder where you could license that format?

    Man, they could have been a little bit more covert about their intentions and named it something a little less, umm, obvious.

    The current formats might not be perfect, but at least they are (relativly) free.

    --
    "The Wright brothers were the first to fly with a heavier-than-air machine, but boy did they have a lousy plane"
  6. Um by Anonymous Coward · · Score: 2, Interesting

    Stuffit repackages its expensive compression software every year (it seems). Now I would be happy to admit my mistake, but their main area of expertise seems to be marketing. Not technology. I reckon JPEG2000 or any number of other newer-than-JPEG formats already exceed whatever Stuffit purports to have accomplished. I suspect they are trying to tie their name to JPEG as a marketing gimmick to win hearts and minds. I doubt this is worth a mention on Slashdot.

    We don't need any new standards unless they actually offer an improvement over recent technology. In technology years, JPEG is very old. A replacement for it should do better than 30% and offer other advantages. I suspect a company that actually specializes in imaging might have come up with a better solution a while ago.

    1. Re:Um by dosius · · Score: 2, Insightful

      I would go further: We don't need any new standards unless they are free of patents and open for use in FOSS.

      Moll.

      --
      What you hear in the ear, preach from the rooftop Matthew 10.27b
  7. DV Video? by patniemeyer · · Score: 2, Interesting

    Would this technique apply to DV video?

  8. Didn't we just get rid of patented image files? by putaro · · Score: 4, Insightful

    If you read the whitepaper you will see that their algorithm is patent pending. The patent will almost certainly be granted, and, since no one else has done additional jpg compression before, it may even be deserved.

    However, do we want to subject ourselves to a new tax on images? If they make it, we don't have to go! Just say NO to patented file formats!

    1. Re:Didn't we just get rid of patented image files? by bit01 · · Score: 2, Insightful

      since no one else has done additional jpg compression before,

      You're kidding, right? Don't buy into the patent office's self-serving assumption that software ideas are hard and deserving of government intervention. With 6,500,000,000 people in the world and the low entry bar for software it is a statistical certainty that most software ideas will be thought of by more than one person with no one person deserving protection.

      ---

      Patents by definition restrict distribution and are incompatible with standards which by definition promote distribution.

      Say no to patents in standards.

  9. Wow, that IS a breakthrough! by wcitechnologies · · Score: 5, Interesting

    I have a friend who's father is a professional photographer. He has gigabytes and gigabytes of images stored for his customers, should they want to order re-prints. They're thinking about setting up raid terabyte file server. I can certainyl say that this is good news for them!

    --
    Electrons are free; it is moving them that becomes expensive.
  10. Re:Only lossyless by lougarou · · Score: 4, Interesting

    JPEG is (roughly) a discrete cosine transform, followed by a filter on high frequencies, followed by Huffmann encoding (which is lossless). This is probably the Huffmann encoding that they did remove and replace with one of the more efficient compression algorithms, and something that could indeed be much more efficient than simple huffmann encoding. So they still take advantage of all the strengths of JPEG related to the human perception model, but they still gain in compression. Huffmann is great to compress oft-appearing sequences, and is a great general-purpose lossless encoding, but there are other that do a better job of it.

    In other words, you did not understand what they did.

  11. Re:Only lossyless by goneutt · · Score: 2, Interesting

    Okay, I do a bit of metalurgical crystalline micrography, and we keep the images in the raw bitmap format because we can't let ANY data be lost. But we also have gobs of drive space, so a good lossless, non-distorting compression format would be handy.

    --
    Bacardi + slashdot = negative karma.
  12. WTF? by m50d · · Score: 2, Funny

    An image compression comparison with no lenna? What's the world coming to?

    --
    I am trolling
  13. Bandwidth is the point by The+Rizz · · Score: 4, Insightful

    The linked page shows average decompression times of 6-8 seconds for 600-800 KB files, rising with the size of the file. Who would benefit from this?

    Any websites with the primary purpose of hosting images would benefit greatly from this - such as art & photography sites. (Yes, and porn sites, too.)

    Why? Because 99% of the traffic they generate is for their images. Of those images, 99% of them are in JPEG format. So this compression would give a good savings in bandwidth on all those pictures.

    At large sites, a 30% cut in required bandwidth could mean a very large savings. Now, if they can take a large cut off their operating expenses, and all they need to do that is to make the users wait a few extra seconds for their pictures, I think we know what they'll do.

    As for the decompression time, one thing to remember is that with how slow internet connections are (even broadband), you're much more likely to be waiting for one of these images to transfer than you are to be waiting for it to decompress (so long as it allows you to start the decompression without waiting for the end of the file, of course).

    --The Rizz

    "Man will never be free until the last king is strangled with the entrails of the last priest." -Denis Diderot

  14. Bah by Tethys_was_taken · · Score: 2, Interesting

    I thought they had found a method to further compress a JPEG, while still maintaining the original format. i.e. it could still be viewed with a regular JPG viewer. That kind of optimization would've been great, especially if it could be used on webpages, forums etc.

    But this is somewhat disappointing. The compression changes the format, and it must be decompressed to view it. Plus they don't intend on releasing the format, and their proposal for a new filetype which can be read by a "plugin" reeks of incompatibility issues.

  15. Re:The test includes bzip2, rar, zip etc... by beuges · · Score: 2, Informative

    afaik, tar does not compress files, it just packages a lot of files into a single 'tarball'. thats why you'd have somefile.tar.gz - the tarball isnt compressed, so it has to be compressed by another utility like gzip.

  16. Patents? by arvindn · · Score: 4, Insightful

    If they've really achieved 25-30% over jpg, and it looks like they have, then its a truly amazing invention considering that jpeg has been around for so long. It would save at least about ten dollars worth of space on every digital camera. If you look at the humongous image archives that NASA and other research projects generate and the cost of tape to store them all, we're talking tens of billions of dollars of savings here.

    So, a question to slashdotters: do you think this kind of invention deserves to be protected by a patent? The standard response "software is already protected by copyright, patents are unnecessary" doesn't work, because anyone can study the code (even the binary will do), describe the algorithm to someone else, who can then reimplement it. Standard cleanroom process; takes only a couple of days for a competent team.

    If you're RMS, you probably believe that no one has the right to own anything and all inventions and ideas belong to the public, but the majority of us will agree that that's a tad extreme. So whaddya'll think? Myself, I'm totally undecided.

    1. Re:Patents? by Vo0k · · Score: 2, Insightful

      If they've really achieved 25-30% over jpg, and it looks like they have, then its a truly amazing invention considering that jpeg has been around for so long. ...because JPEG is free for all. Look up JPEG2000, DJVU and several other revolutionary "JPEG killers" that would rule the net nowadays if only the authors were insightful enough to release them as open standards. Now they all rot forgotten as nobody uses them, because nobody is willing to pay for using formats nobody uses because nobody is willing to pay...

      SIF will die the same death if they don't release it as a free standard.

      --
      Anagram("United States of America") == "Dine out, taste a Mac, fries"
    2. Re:Patents? by bit01 · · Score: 4, Informative

      If you're RMS, you probably believe that no one has the right to own anything and all inventions and ideas belong to the public,

      Nonsense, RMS has never said that. Please read a more widely before making such malicious accusations again. Don't buy into M$ marketing smear and FUD campaign.

      ---

      It's wrong that an intellectual property creator should not be rewarded for their work.
      It's equally wrong that an IP creator should be rewarded too many times for the one piece of work, for exactly the same reasons.
      Reform IP law and stop the M$/RIAA abuse.

  17. Re:Only lossyless by mcbevin · · Score: 4, Insightful

    This is not in competition with JPEG - more with LZW compressed TIFF.

    You're misreading the whitepaper. What they're explaining here is different and actually quite clever.

    Jpeg compression can be seen as consisting of two main steps. In the first, information in the image deemed unimportant is removed from the image. In the second, the remaining information is compressed losslessly.

    It was already known that the second step is not the most efficient possible. Also, the jpeg standard supports both huffman and arithmetic-coding, however due to patent reasons I think arithmetic-coding (which is more efficient) is often not used. So what they're doing is just improving the efficiency of this second step. This works much better than attempting to encode the jpg binary itself, as anything performed following entropy coding will struggle to achieve much compression, as the data has been hugely complicated by the process and it is thus much harder to find any compressible patterns etc.

    They've also improved the compression by a very impressive margin. Typically in the lossless compression world, gains are in the .x% range, yet they've apparently improved by a factor of around 6x what the previous best programs were able to achieve. I should note that I developed the audio codec with the currently highest lossless audio compression - http://lossless-audio.com/ - so have some idea of what I'm talking about here.

    Anyway, the end effect is the same regardless how the compression is achieved - they're taking a lossily-compressed jpg, and reducing its size. This obviously makes little sense to be say integrated into digital cameras, for which the jpeg2000 format is available anyway and features better gains and is much faster (yet is still awaiting mainstream adoption), however from the archival and theoretical-lossless-compression perspectives what they've allegedly achieved is pretty damn interesting.

  18. Possibly just a rehuff? by tangent3 · · Score: 4, Interesting

    The quantised DCT coefficients of a JPEG image are compressed using a JPEG standard huffman table. From what I've seen, this table is far from optimized even for "the average of the majority" of images out there.

    Ogg Vorbis stores its own huffman table in its own stream. The default encoder uses a table optimized for the general audio you can find out there. There is a utility called "rehuff" (goggle it yourself please) that will calculate and build a huffman table optimized for a particular stream and it seems that on average it reduces an Ogg Vorbis filesize by about 5-10%.

    Building an optimized huffman table for individual JPEGs will probably yield such improved compression rates too. If the original JPEG tables are less optimized than the Ogg Vorbis ones, the reduction will be even higher. But 30% seems a little... optimistic.

  19. And when will we learn about the patent? by gotan · · Score: 4, Insightful

    To be honest i don't care about the 30% compression if there's the slightest danger that anyone might start a patent-war over the image-format or the compression algorithm.

    I've really seen enough of that (gif, mp3, jpeg) and i prefer spending the additional storage/bandwith capacity to another uppity "IP-shop" coming out to "0wn0rz" the internet with lawyering (maybe after a management-change).

    Let's have another look at that compression algorithm in 20 years or so.

    --
    "By the way if anyone here is in advertising or marketing... kill yourself." -- Bill Hicks
  20. I did my final year project on Fractal Compression by happyhippy · · Score: 2, Interesting
    so am probably one of the few to be lucky to delve into the mind warping subject.

    I wont bother going into the details of how it works (go read 'Fractal Image Compression' by Yuval Fisher*) but I concluded that fractal compression wasnt viable as there wasnt a general solution to suit all images. There are about 20 variables that you can decide, which give variable results to the final compressed image.
    And one set of variables would be excellent to compressing pics of trees down 80%, another set of variables would be excellent compressing pics of animals down 80%, but using each others set would only give results equal or worse than normal compression algorithms.
    Another factor at the time, five years ago, was that it took an hour to compress a 256x256 greyscale image on a 300MHz machine. Nowadays that isnt a factor.

    * If anyone has this on ebook please post a link here, Im dying to read this again.

  21. White Paper or Press Release? by DingerX · · Score: 2, Interesting

    Okay, so as near as I can figure out, this is a white paper because:
    It describes a new format .SIF as basically being having everything a jpg does except higher compression.

    Some might think it's a press release, since the "White Paper"'s discussion of the new format is largely limited to the benefits "OEMs" will have in using this (soon-to-be patented) technology, and explaining how it integrates into Allume's fine line of existence and future Digital Lifestyle(tm) products.
    Some might further argue that often press releases will accompany white papers, explain the point for the consuming world, and link to the paper; this "white paper" seems to do exactly that: we are invited to examine a (currently 404'd) page to see the actual data involved.

    To those who think it's a press release, it's not, because:

    It don't say "For Immediate Release"

    Press releases are proofread for grammatical errors, and working links capable of withstanding slashdot-class bandwidth


    And by the way, they don't have a chance. Sure, bandwidth cost means a lot, but for the OEM who might consider adopting this technology, it means a new standard that offers at best 30% improvement (on those little 50kb jpegs we're asked to believe), paying for it, and passing the cost on to the consumer. It may be an improvement, but if you really want to improve your image-heavy website's bandwidth usage, switch to Fractal Image Format. Not only do you reduce the size of the images; you reduce the number of people downloading them. The same for .sif : bandwidth savings will actually be on the order of 98% (30% image size reduction, 97% website traffic savings).

  22. Patents. by xtal · · Score: 4, Interesting

    I worked in this field for awhile, and the liscencing and other issues sent the company I was with running in the other direction. JPEG was good enough, everyone was using it, so JPEG it was.

    Fractal compression is cool.. but encumbered by IP issues. Too bad.

    --
    ..don't panic
  23. Benefits far outweighed by costs. by jbn-o · · Score: 4, Insightful

    Given that the software is likely to be proprietary and the algorithm will be patented, it becomes completely useless to me and it is completely unsuitable for archiving anything (smart people don't play nickel and dime games with archives and backups).

    Maybe if computers were a lot faster and the compression worked on any array of pixels, not just those that have undergone the lossy transformation of JPEG compression. But even then, it would have to do better than what PNG can do in terms of all the other things PNG does and no patented format will beat PNG at its game.

    In theory what you say sounds nice, but in practice I genuinely can't recall a situation where a little more compression would have allowed me to send all the photos I wanted to via e-mail. But the reasons I mentioned at the top of this post are more important reasons why this should be rejected out of hand.

    What meager benefits this affords are far outweighed by the costs. I don't see this going anywhere, and for very good reason.

  24. Just noticed this... by shreevatsa · · Score: 2, Interesting

    " Typical compression rates for JPGs are 2% to -1%. "
    Does -1% mean that the file actually gets bigger?

  25. PFFHHH by shoma-san · · Score: 2, Interesting

    Big Deal. With broadband ever expanding and storage being relatively cheap and inexpensive, this technology is a waste of time. Hell, I've got a $100 USB drive for X-mas that was a gig...a fucking gig.

  26. Jpeg2000 by fuck_this_shit · · Score: 2, Insightful

    With lossless wavelet compression. That's what I'm still waiting for. As the "2000" indicates it's nothing terribly new but as of yet still misses a big rollout. Yet I'd rather have such a new format than taking an old format with known limitations and adding another layer of crud to get sizes further down.

  27. they don't adopt it because.... by bani · · Score: 2, Informative

    ...its IP status is currently ambiguous. jpeg2000 is currently being attacked by some patent holders and until it's all settled nobody is going to touch it.

  28. Prior art???? by gowen · · Score: 2, Interesting

    If this idea is what's suggested here, ie. instead of

    Image -> DCT -> Truncate spectrum -> RLE encode

    they use

    Image -> DCT -> Truncate spectrum -> some more efficient encode

    it wouldn't surprise me if the JPEG Group discussed alternate compression encodings during the standardisation meetings. In fact, I'd be extremely surprised if the matter was not raised. If it was, it's pretty clear that this patent is not novel in the slightest...

    --
    Athletic Scholarships to universities make as much sense as academic scholarships to sports teams.
  29. open patents by temponaut · · Score: 3, Informative

    The JPEG standard specifies 2 entropy coding methods; Huffman coding and arithmic coding. As arithmic coding is patented it is not in use. The patents for this arithmic coding called Q-coding http://www.research.ibm.com/journal/rd/426/mitchel l.html are in hands of IBM. Perhaps they will allow OSS to use this patent along with the 500 other patents recently allowed? http://www.ibm.com/ibm/licensing/patents/pledgedpa tents.pdf The particular variant of arithmetic coding specified by the JPEG standard is called Q-coding. This variant has the advantage of not requiring any multiplications in the inner loop. Q-coding was invented a few years ago at IBM, and IBM has obtained patents on the algorithm. Thus, in order to use the JPEG arithmetic coding process, you must obtain a license from IBM. It appears that AT&T and Mitsubishi may also hold relevant patents.

  30. JPEG - get it right by northcat · · Score: 2, Informative

    It's JPEG, not JPG. JPG is the file extension used for JPEG files on DOS systems because of 3 character file-extension limitation. JPEG is the name of the format/compression and the extension (which should be) used on systems that support 3+ character file-extensions. Because of the internet the JPG extension has spread and now people ignorantly use JPG to even refer to the format/compression.

  31. Here's why it works by Richard+Kirk · · Score: 4, Informative
    These are the old JPEG images. I worked on DCT compression systems before JPEG, and had a tiny contribution to the freeware DCT code. When I saw the posting I immediatly suspected that the JPEG compression had been pushed up too high.

    The original JPEG compression algorithm had Huffmann coding for the DCT variables, but it also had some fixed-length codes for the beginning and end of blocks. If you set your compression at about 10x then you can hardly see the difference with real images. bring it up to 15x and the changes are still modest. However, yank it much over about 22x, and the image will go to hell. The reason is the block handling codes meant that a JPEG image with no data at all - a flat tint - would only compress at about 64x, so at 22x compression these block handling codes are about 1/3 of your overall code. The fractional bit wastage you get with using Huffmannn coding instead of arithmetic coding mops up some of the rest as you are usig shorter Huffmann codes. The codes are also very regular, as about 1/3 of the code is not particularly random. The 1/3 figure also matches the 30% compression figures too, which isn't surprising.

    Why didn't the original JPEG developers make a better job of this? Well, doing an experimental DCT compression used to take me hours or days when I was developing on a shared PDP-11, and there was always the worry that a dropped bit would lose your place in the code, and scramble the rest of the image. A little regular overhead was also useful for things like progressive JPEG control. I guess we all knew it was not as tight as things could have been, but it got the job done. We knew if you want to get 40x compression, then reducing your image to half size, and the compressing that by x10 will look better. Unfortunately, people who just drag a slider to get more compression don't always know that.

    The right solution would be to use JPEG2000 which has a much smaller block overhead, and so fails much more gracefully at higher compressions.

  32. just another humbug by l3v1 · · Score: 2, Interesting

    You know what ? The breakthrough in JPEG compression was mainly JPEG-2000.

    There had been, was, and has been possible to achieve better compression ratios, and guess what, even in the high times of JPEG we knew that what's inside, it's not the optimal solution. But there were certain aspects which made it stay the way it was, and that was good to be so. The same goes with JPEG-2000. Since the appearance of it there have been many attempts to make it better, and there have been some good results achieved (even I have read and sometimes even reviewed papers dealing with the subject).

    It's really no question whether one can make an X% better compression to JPEG with the same quality (expecially today, when JPEG is so old that every joe and his dog had time to develop better ways). The question is, has it enough practical usability to justify its presence ? Is there a well-justified reason why we should use it ? Does it deliver
    - better compression rates (smaller size with the same objective & subjective quality) ?
    - lower compression times ?
    - compatibility ?
    - is it any better for hardware implementation purposes (same or lower computation times) ?

    If it's just a "better" compression for the compression's own sake and not for our sakes, then this is even less news than me cleaning my room.

    --
    I am putting myself to the fullest possible use, which is all I can think that any conscious entity can ever hope to do.
  33. The reason this is a "breakthrough" by Ezza · · Score: 2, Informative

    is because it is a way to compress (some types of) file that are ALREADY compressed. If you've ever zip'd (or RAR's or 7Zip'd or Gzip'd etc) a jpeg, a gif, a png or even another zip file - ie. any other type of already compressed file - you'll be lucky to get any savings, or if you do it will be a few % at most. That's because most of the redundancy (ie. compressibility) has already been removed from the data in the file.
    This method can compress jpg files significantly, and that is NEW, in fact it was previously though to be something that was more or less impossible (or at least, extremely difficult with little to gain).
    Of course it is slow, but it works and it will find practical uses.

    --
    I'm a perfectionist but I'm trying to cut back.
  34. Re:True professionals don't use JPEG??? by Vihai · · Score: 2, Informative

    Since the context was photography I should have said "true professional photographers

    don't use jpeg to shoot their photos"

    After you have corrected the exposure, corrected the white balance, etc... and you are ready to throw away 12 bits per pixel of information... yes... jpeg may become useful.

    The fact that many people doesn't care about 12 bits per pixel of information, about postprocessing degradation and so on, doesn't imply that it is good.

  35. Re:Only lossyless by mcbevin · · Score: 2, Informative

    well rle coding (combined with huffman or whatever) would if anything make most audio files bigger. because audio is typically 16-bit (vs 8-bit for images) theres very little chance two concurrent values will be the same. my codec does use internally for the entropy part something based on range coding, which is similar to, but a little more efficient than, huffman coding, but it does a lot of other stuff as part of the entropy coding as well.

    the point about stuffit's improvement is that its so huge. sure huffman is inefficient, but other methods are nowhere near 28% better i can assure you (else other state-of-the-art lossless archivers would have done better than the 4% they achieve before now).

  36. Get this by prjames · · Score: 2, Funny

    So now I get the picture, only smaller!

  37. Super! by samrolken · · Score: 3, Insightful
    Just yesterday I was looking to download their "Expander" in order to view some files a macintosh user was sending me (proofing a newspaper ad). By default, I suppose, it used the .sit format.

    After my experience there, can I expect to be led through a complicated and deceptive trick into downloading the trial version of some overpriced software, where I'm required to give up my email address, and the whole thing never works anyway? Stuffit might have great technology, but any company that wants to provide a proprietary format for anything will only be useful if *anyone* can open the format. Adobe knows that. And trying desperately to hook into people who *have* to turn to you to uncompress things and sell them things they most likely don't need isn't useful. It will just make StuffIt (.sit files) useless to people who *are* paying customers, because it's such a hassle for people to open the files.

    --
    samrolken
  38. LizardTech bought the fractal technology and by ninejaguar · · Score: 3, Informative
    ...added it as part of their line of products. You can get the Genuine Fractals product here. However, I don't believe the product compressed images very well without loss. If I remember right, it was more for enlarging pictures so that the people could work in detail without over-pixelation, then shrinking the finished work back down to its original size without losing resolution. Something like that.

    They have another imaging technology that they purchased from AT&T called DjVu. They've Open Sourced the viewer for that technology under the GPL.

    I believe an encoder/decoder is also available under a GPL license, though LizardTech doesn't appear to be happy with the GPL because they are pro software patents, and the GPL is not. The encoder/decoder may or may not be a fractal engine, someone more knowledgeable will have to answer that question.

    LizardTech may be involved in a squable over the JPEG2000 technology. Something to do with patent litigation.

    = 9J =

  39. Somebody mod this up by pclminion · · Score: 2, Interesting
    I was going to post a similar explanation, but this person did it first, and probably better than I could have anyway.

    As another person who has implemented JPEG, I vouch for his accuracy :-)

  40. Re:Only lossyless by pclminion · · Score: 2, Interesting
    JPEG is basically a discrete cosine transform, followed by aggressive quantization of the DCT coefficients -- higher compression levels imply more extreme quantization -- followed by Huffman or arithmetic coding of the quantized coefficients.

    It is this last step which is not particularly efficient. There are several reasons why ZIP cannot significantly compress this data. First, ZIP is a byte-oriented compressor. Huffman codes are bit-oriented. This causes ZIP to miss many patterns that could be backreferenced simply because they fall on a weird bit position. Second, data can be highly compressible and yet have no repetitive patterns in it.

    For example, consider the sequence 1,2,3,4,5,6,7,8,9,10,...,1000. It has no repeating pattern, but it would be absurd to claim that it cannot be compressed. In this case, applying the simple transform x[i] --> x[i+1] - x[i] transforms the sequence to all zeros, and that is trivially compressible. To decompress, just apply the inverse transform.

    ZIP is too naive to use any sort of transforms. It really was only intended for textual data, program executables, etc.