Slashdot Mirror


JPEG 2000 Specs

Richard Finney writes ""JPEG 2000 might be the graphics file format that even dazzles the pros": at a ZD article entitled JPEG 2000 to give the Web a new image. JPEG 2K will have multiple channels, metadata, variable decompression levels and progressive decompression. "

82 comments

  1. Isn't PNG the standard? by Anonymous Coward · · Score: 0


    Why reinvent the wheel again. what does this format do that png doesn't?

    Mark

  2. Isn't PNG the standard? by Anonymous Coward · · Score: 0

    I'll still prefer PNG judging by this early description, but that resolution selection sounds pretty neat.

  3. So how many patents... by Anonymous Coward · · Score: 0

    The whole point of JPEG, MPEG (I'm talking about the people behind it now) and their ilk, is to be open, and to produce open standards. The whole exercise would be pointless otherwise - it's not as if there are any companies involved that could harvest money from patent infingements anyway.

    1. Re: So how many patents... by Anonymous Coward · · Score: 1
      The whole point of JPEG, MPEG (I'm talking about the people behind it now) and their ilk, is to be open, and to produce open standards. The whole exercise would be pointless otherwise.

      This is a too idealistic view. The reality is that MPEG-2 for instance is patented to death ; they have a company dedicated to resolving patent issues, see www.mpegla.com; you have to pay even for distributing a MPEG2 video (not a coder or a decoder, just the video file itself)! MP3 encoders have also been indicted.

      it's not as if there are any companies involved that could harvest money from patent infingements anyway.

      They do harvest money from licensees (see mpegla site) ; I don't think they sue that often, but sending an official letter with "You're infriging on our patent #USJunkPatent, please do stop distributing your product or give us 1%" is very effective.

      For an example, see the League for Programming Freedom page on Unisys/CompuServe GIF Controversy.

      I won't be surprised at all if companies on the contrary tried to force standards to use their patented technology ; the MPEGLA example shows that there is an insidious incentive to accept the other's patented technology if the other accept one's patented technology: at the end, the standard is published, the patent owners happily cross-license (or make a patent-pool from which they get %), and the rest of the world is pissed.

  4. Color Management and the Wavelet Tide by Anonymous Coward · · Score: 0

    LOL!!

    Have you got a humour site?? please post ...

    Rich

  5. do we get alpha channels? by Anonymous Coward · · Score: 0

    please tell me we get alpha channels. i want alpha channels.

    [for those of you who don't know, an "alpha" channel determines the level of transparency for different parts of the image. if you are trying to create an image that may be used on different backgrounds that you have no control over, alpha channels are nice]

    and isn't it just a _little_ sad that the blocky funkiness you get when overcompressing an image will be gone? that did look _kinda_ cool.

    anyway i doubt JPEG will lose that much momentum; even if there is a superior format, old-skool JPEG has the distinction of being "good enough" and we probably if anything won't see it fully supported until the 6.0 browsers are standard.

  6. PNG by Anonymous Coward · · Score: 0

    But 256 is a nice number. Y'see, the channel identifier will fit very nicely into one byte this way.

  7. 256 Channels and Nothing On. by Anonymous Coward · · Score: 0

    I want my RGB!

  8. So how many patents... by Anonymous Coward · · Score: 0

    Can't say as to the J2K details, but MPEG has certainly NOT been a patent free standard, and it continues to only get worse with the MPEG2 and MPEG4 'standards.'

  9. java png support by Anonymous Coward · · Score: 0
    the jai api (now available in beta) has support for the png format.

    http://java.sun.com/products /java-media/jai/index.html

  10. PNG by Anonymous Coward · · Score: 0

    Transparency map. Bump map. Surface normal map. Per-pixel diffusion (shinyness) map. Stereoscopic images. Etc. etc. etc.

  11. IE4 already has PNG by Anonymous Coward · · Score: 0

    IE4 has PNG support. Not great, but better than nothing. Dunno if IE5 is better.


  12. PNG by Anonymous Coward · · Score: 0

    Actually it's underkill..

    the format prolly goes something like this (at a guess)




    ..




    ...


    Since the max number of channels is 256 one can assume that the num channels variable only takes up one byte.
    So it wastes a whole byte of information per picture. Ramping it up to 64k channels whould waste 2 bytes, 16million 3 bytes, and for 4 gig of channels you loose 4 bytes..
    Hmm it's no big deal..

  13. Color Management and the Wavelet Tide by Anonymous Coward · · Score: 0

    The color will only look like your monitor if you monitor is properly calibrated. Yes, small hand calibration apps like Adobe Gamma, Colorific, and 3Deep help, but they are far from perfect. And, while monitor calibration colorometers are dropping in price it's still a pretty esoteric piece of equipment to expect end users to employ.

  14. PNG by Anonymous Coward · · Score: 0

    While the variable storing the # of channels might only take up one byte the data in those channels can potentially blossom into large amounts of data.

    8 bits/pixel for an alpha channel here, 8/16 bits/pixel for bump mapping there, etc... It will add up quickly.

    A few years back a 48bit TIFF file format was attempted in the publishing arena. The extra bits were divided up into extra 8 bit channels on top of a 24 bit source

    It was only a small increase in the number of channels and it -never- caught on.

  15. do we get alpha channels? by Anonymous Coward · · Score: 0

    It is self-evident, but you don't understand the subtle difference here.
    An alpha value of zero indicates zero opacity.
    An alpha value of max indicates max opacity.

    Two more correct statements:

    An alpha value of zero indicates max transparcency.
    An alpha value of max indicates zero transparency.

    See why it makes more sense to describe alpha as a metric for opacity rather than transparency?

  16. Better JPEG please by Anonymous Coward · · Score: 0

    To quote one of everyone's favorite moguls:
    "640K should be enough for anybody"

    Once the JPEG2000 format is in use, people will start to take advantage of all of its powerful features. For example, someone with a disposable camera may not think of themselves as an avid photographer. Put the right camera in their hand and they will start to take good pictures and the quality of their photos will go up accordingly with their experience.

  17. PNG by Anonymous Coward · · Score: 0

    Yes, _potentially_ blossom into large amounts of data. But the thing is, if you don't _need_ all those millions of channels, then you only take a 1-3 byte hit for making them available. And if you _do_ need the channels, then you really do need them.

  18. Re: I have a doubt...too - and so you should by Anonymous Coward · · Score: 0
    Firstly I got this from a book (forget which one, published in mid to late 80's, I think), which was given to me as "THE book to read on different image formats"

    I'm not the one who originally responded to you, but a book from mid to late 80's is just too old. The interessant algorithms were found later ; for instance EZW (Embedded Zero Tree - patented ; published in 1993, historically well known) ; and one of the most efficient, SPIHT (Set Partitioning In Hierarchical Trees ; patented ; published in 1996).

    Having tried that same wavelet compression engine, we compressed images with it at the highest possible quality. 640x480x8 images came out around 65-69K, with both wavelet and JPEG. The wavelets were of a quality we considered unacceptable. The JPEGs were very difficult to distinguish from the originals (excepting almost flat colour areas and sharp borders
    Hmm... 640x480x8 compressed to 65K is a compression ration of 3 (or 9)... This may be the problem ; wavelets specially shine at higher levels of compression (or at least that's the impression I got from the research papers, their results seem to focus in the less-than-1-bpp range). This is why you don't see the blocking artifacts of JPEG ; but at high levels of compression, JPEG is really ugly.

    You may also note that the first thing I said in my post was that this research was done more than a year ago. It was, admittedly, only done on the web, but I figured most companies touting such a technology at a level appropriate for multimedia applications for home-users would also be trying to provide us all with browser plug-ins.

    Note that since there are many patents, the engines might use some suboptimal variant of wavelet.
    If you don't have tested them, the following engines and results are still available:

    • AWIC, works on Sun (compile on Linux, but doesn't work as is). Not a sophisticated compressor, but fast. Some results are on the WWW site.
    • SPIHT home page. There are no (longer?) source code, but some binaries (for Windows, and some Unices - not Linux). Also there are some examples.
    • "GNU Wavelet Image Codec" from a PhD, with program for Linux, and demo images on the page.
    • PSNR results, gives numerical results for published algorithms (GWIC and AWIC would be at/near the bottom of the worse algorithms there).
  19. Color Management and the Wavelet Tide by Anonymous Coward · · Score: 0

    Even with the "wavelet" technology, it's still an "image" compression technology. A similar algorithm may be used for MP3-killer, but shouldn't be called "JPEG 2000". Wouldn't it be so ironic to say "the 2k version of Joint PHOTOGRAPHY Experts Group is a music format"???

  20. why not a new compression scheme in TIFF? by Anonymous Coward · · Score: 0

    Wavelets are strangled in patents. No matter whose source you have, you can't legally use it unless you can afford to meet the licensors' demands.

  21. Nonintuitive comment.... by Anonymous Coward · · Score: 0

    By the same logic, people with P2-450's should write better code than people with 486s. Let's face it, it's not gonna turn Joe Schmoe into Ansel Adams... IF Joe Schmoe thinks that all he has to do is point and shoot.

    Don't get me wrong, I'm not being elitist. This technology could be used for people who have talent, but lack the means to get hiquality cameras. On the other hand, the price would probably go up to put a higher res CCD in the cameras...

  22. GIF forever!? by Anonymous Coward · · Score: 0

    If the graphics format/standard (JPEG2000) can't
    do what GIF (gif89) can; transparency and animation *at the same time*, web people will
    prefer GIF also after 2000. PNG loost because
    it didn't support animation. (Although animation
    necessarely wouldn't have to be in still-pic
    standard, but oh well, ppl want it)
    GIF can do this:
    http://www.rodogu.com/cantonuevo/header.html
    (note the penguin can jump front of any background)
    Will JPEG2000 be able to do that?

    USENET: comp.compression
    Subject: Re: GIF forever!? Was: Unisys patent on LZW

  23. JPEG2000 is the answer. by Anonymous Coward · · Score: 0

    The problem is, different techniques work better for different images. Which is why I suggest
    that until hard numbers are available, I wouldn't add momentum to this particular >bandwagon. One of
    >the folks working with me on wavelets said it way better than I ever did -- "the math is truly hairy",
    >which means that even if JPEG2000 is a wonderful algorithm, moving it into code for alternative
    >platforms will still be a daunting task. "Hairy math" takes time for the computer to resolve.

    I can assure you, I did my dissertation on wavelets this year (audiocompression using wavelet; you should be hearing from it someday as a basis for a totally free audio codec). Wavelets are very very easy to implement, and for anyone who understands the algorithm, an implementation is just as easy as implementing anything else.

    (and btw, moving code to an alternate platform, isn't that like in just a simple recompile?)

    And if you don't believe that wavelets do better compression than DCT based algorithms, in (virtually (perhaps you can find some pathological example-but I would be suprprised)) every case, you might want to check the IEEE Trans. on signal proc. of the last 5 or 10 years.

    a knowledgeable Anonymous Coward

  24. Mommy, what is sheet music? by Anonymous Coward · · Score: 0

    sheet music n : a musical composition in printed or written form; "she turned the pages of the music as he played" [syn: music]
    -from www.dictionary.com (sorry I don't have a real dictionary on hand)

    Wouldn't it be so ironic to say that you're a careful reader? If you had actually read the post instead of skimming for buzzwords it would have made sense.

  25. Go Apple! by Anonymous Coward · · Score: 0

    The Apple 21" Studio Display is calibrated. I agree, calibration technology is still pricey, but it's a start.

  26. Patents in General by Anonymous Coward · · Score: 0

    yeah cause the U.S. wont exist anymore cause were so dang stupid

  27. PNG by Anonymous Coward · · Score: 1

    Why should this format take off when PNG clearly failed to grab the world by storm?

  28. 256 channels by Anonymous Coward · · Score: 1

    A large number of channels could be useful for transmitting data in scientific circles, since many microscopes, telescopes, etc. can record a very large amount of information per pixel. You could download a pic of the Andromeda galaxy, and view it in whatever set of electromagnetic frequencies you feel like.

  29. Medium for Landsat Images. by Anonymous Coward · · Score: 1

    Yeah, the interesting pictures of the Earth are in infrared. Landsat (Landsat 7 was just launched on April 15 - your tax dollars at work) produces images in 7 channels. It would sure be nice to have a real, lossless format that supported more than 3 channels.

  30. JPEG2K vs. DjVu? by Anonymous Coward · · Score: 1

    [disclaimer: i'm biased]

    DjVu really is 4 compression formats in one.
    - IW44: state-of-the-art wavelet-based continuous-tone image compression method. It's
    similar to what JPEG2K will be, but it's available now, with source code, and without patent restrictions if it is used in OSS projects.
    - JB2 lossless: a compression technique for "bitonal" images (i.e. black&white, no grayscale).
    Very efficient for scanned pages of text
    - JB2 lossy: lossy version of the above (smaller file sizes).
    - DjVu: a "layered" image format where the text and drawings are coded with JB2, and the backgrounds and pictures are coded with IW44.

    IW44 is the thing that should be compared with JPEG2K. It's progressive, and cheap to decode (no multiplications required, unlike many other wavelet methods, and unlike JPEG).

    As of now it doesn't support anything else than
    RGB (really YCrCb internally, like JPEG).
    Files are about a factor of 2 smaller than JPEG for relatively high compression rates, but they are only marginally smaller than JPEG for high-quality settings.

    - One of the creators of DjVu

  31. There is NO patent problem with JPEG 2000. by Anonymous Coward · · Score: 1

    I know people in the JPEG 2000 committee, and JPEG 2000 hasn't made the same incredible mistake as MPEG Audio has made.

    So, while there are patented things in it, such as the SPIHT coder (which they will use without any doubt), the patents are merely taken as precautions by academic people to ensure nobody will run away with their idea, in forms of money.
    In other words: there will be absolutely no no problem to create free software that writes or reads JPEG 2000 images.

    a knowledgeable Anonymous Coward.

  32. Color Management and the Wavelet Tide by Anonymous Coward · · Score: 2

    The biggest problem with the web today is the lack of professional color management. When I download a Slashdot article and print it out on my $10000 dye sublimation printer, I always feel very uneasy: is that really the shade of green that Rob intended when he made the logo? JPEG 2000 fixes that; now my Slashdot headlines and CNN stories will all be in true, calibrated color, ready for prepress.

    In addition, JPEG 2000 will ride to victory on the shoulders of wavelet compression formats, which are taking the web by storm. I have seen the future and it is wavelet. It's everywhere; here is a list of sites that use it:

    (nil)

    Not only that, JPEG 2000 isn't just a JPEG/GIF/PNG killer, it's also the RIAA-endorsed MP3 killer! Said RIAA spokesman Ana L. Retentive, "by promoting the revolutionary new JPEG 2000 file format for music distribution, we can stop the MP3 plague, ride the wavelet of the future, and increase the American public's sheet music literacy in one fell swoop. Once the filthy, groveling peons out there succumb to the sheer joy of making their own music from lyrics and sheet music (JPEG 2000 encoded, of course) they find on the web, they will quickly realize what poor musicians they are and will head in droves to record stores."

  33. So how many patents... by ShadowBlade · · Score: 1

    will OSS have to step around to use this amazing new technology? I didn't see anything in the article, but I doubt there won't be patent issues with this new format.

  34. PNG by ShadowBlade · · Score: 1

    Up to 256 channels. You don't have to use them all...

  35. Well in this great? by HoserHead · · Score: 1

    While this is true, Mozilla will fully support the alpha channel in PNG, meaning that in addition to CSS1, XML, etc, we can look forward to using another great image format - very cool.

  36. PNG by gavinhall · · Score: 1

    Posted by Gargamelo:

    256 channels has to be one of the most absurb ideas I've heard of. What would you ever use them all for? Also, compression speed on wavelets may be agonizingly slow, but decompression speed should be faster than most other formats.

  37. PNG by gavinhall · · Score: 1

    Posted by Gargamelo:

    I understand this, but the option of 256 channels even feels like overkill to me.

  38. Still waiting for PNG by grinder · · Score: 2

    Wavelet theory is cool.

    But then, we've been promised PNG for years, and it too contains many excellent ideas. But for the entire park of current technology browsers to shrink down to 5% of all browsers in use, we shall have to wait an awfully long time. Especially as less and less people (proportionally) care about using the latest versions. Things will only get worse.

    So it's a fair bet to say that this new format will never amount to anything much on the Web. I hope I'm proven wrong, but the way things are going, the current Web standards are slowly but surely congealing into a qwertyuiop-like mass of immovable standards. People are happy enough with GIF and JPEG, and as line speeds get upgraded, people don't really care any more about an image that takes .02 secs to transfer rather than .12 secs. It just doesn't matter any more.

  39. And it's all going to be patented to the bits by pb · · Score: 2

    Not only are there already too many graphics and video formats to choose from, but there will also be as many new formats as we care to write.

    What do I use for lossy compression? JPEG, due to its popularity. Lossless compression? GIF, PNG, xcf.bz2, ps.gz... Use the right tool for the job. :) Combining raw image formats with generic compressors seems like a great idea for lossless compression, even if that does only get you so far.

    I'd love to see a new, openly developed, lossy compression scheme. Unfortunately, I wouldn't know where to begin, because most of this work is done by commercial software companies and whatnot...

    --
    pb Reply or e-mail; don't vaguely moderate.
  40. And it's all going to be patented to the bits by heroine · · Score: 1

    Sorenson Video, QDesign audio, JPEG 2000 are all the new wave of high stakes technology that we have to deal with somehow. Every new compression algorithm for the last 4 years has been patented to the core. For a while we were able to get some codecs through Xanim, but now the money riding on video compressors is so high that not even Xanim can get licensed to use them. As the internet bandwidth increases and the stakes get higher, the patents and licenses can only get tighter. There are never going to be any more formats like JPEG and GIF.

  41. Well in this great? by Mark+Pitman · · Score: 1
    ...PNG, which is now supported by browsers...

    Well, it is supported, but not very well. I don't remember which browser it is, but either Netscape 4.x of IE 4.x does not support the transparency in PNGs. That really cuts into the usefulness of them for me.

  42. do we get alpha channels? by mikpos · · Score: 1

    Sorry to be anal, but alpha channels control the level of opacity, not the level of transparency :P

  43. Isn't PNG the standard? by Alan+Shutko · · Score: 1

    It's not reinventing PNG. It's reinventing JPEG. JPEG compressed photos are much smaller than PNGs... I have one 550K+ PNG which compresses to about 60K in JPEG. That's because PNG is lossless, and JPEG is lossy.

    JPEG2000 just looks like it's adding more features of PNG to JPEG, so you can still have mega-compression of photos but keep transparency, etc.

  44. GIF forever!? by AArthur · · Score: 1

    I have to agree with that. People want to be able to animate JPEG photos just like gif images. I know you can do this with javascript, but why spend time coding, when I format should support it natively.

    JPEG and GIF are here to stay. Style Sheets have yet to prove useful for most websites.

    People are afraid with backwords compatiblity, and even more afraid of things being supported poorly by browsers.

    Copyrights will be a major issue with all formats in the future, which brings up a question: Is it ethnical to copyright a Internet Standard. Standards should be open and allowed so all can access it. Nobody has yet tried patenting HTML (then again, Microsoft or Netscape probally have a patent pending), so this is getting riduculusly stupid.

    I'll Stick to plain HTML and GIF and JPEGs for the near future.

    Thanks,

    AArthur

  45. MS & PNGs by SEE · · Score: 1

    ...Meanwhile PNG... From my limited work and reading, PNG appears to be an excellent format -- but one that hasn't reached the critical mass that Linux has. HowToHelp: plug ins. M$ probably won't listen...

    Actually, Microsoft has been very good about PNGs. IE has supported PNGs since version 4.0b1, and Office 97 uses PNG as its native compressed image format and also directly in its PowerPoint, Excel, Word and OfficeArt components.

  46. I sure hope... by fishbowl · · Score: 1

    I hope that there will be nothing in this standard
    that disallows it's use in open source software.

    Something as simple as that could end up being a
    bad turning point -- what if all of a sudden, we
    could not display images on linux desktops, or if
    something like Mozilla was not allowed to have jpegs (just like it's not allowed to do 128 bit ssl or IM)

    --
    -fb Everything not expressly forbidden is now mandatory.
  47. There is NO patent problem with JPEG 2000. by jab · · Score: 1

    Could you cite references to back this up?

  48. Is JPEG2000 the answer? by EJB · · Score: 1

    Sun isn't listening, unfortunately. Although it's been at the top-25 of Java "requests for enhancements" by developers for more than a year, they have yet to announce support for PNG.

  49. Technical papers by sanpitch · · Score: 1

    If you're interested, the latest rev of the standard is described in this paper.

    I've followed the standard, and I think that it will do very well. Even on the Web.
    The only problem I see is with licensing, but since HP developed the algorithm and they are
    giving away licenses for the JPEG-LS algorithm (which they helped develop), I can't see this as
    a problem.

    --
    Christian Peel
    chris.peel@ieee.org

  50. vs. PNG by rpk · · Score: 2
    PNG is for lossless images, such as UI elements, and the like. The JPEG format is for photographic images.

    However, given the perceived "good enoughness" of GIF and current JPEG, any new format faces an uphill battle.

  51. JPEG2K vs. DjVu? by kzinti · · Score: 2

    Can anyone here give us a meaningful comparison between JPEG 2000 and AT&T's DjVu compression, which is also supposed to be wavelet-based? Are these two similar, or are we talking apples and oranges?

    Also, it was unclear in the JPEG2K article whether the new image format maintained the current distinction between compression and file format. Currently most "JPEG" files use a format called JFIF, but the file format and compression are separate -- so the file format can be used to store information other than the image, or could be used to store images compressed with other compression algorithms. Conversely, you can have JPEG-compressed images stored in other file formats. Some digital cameras like the Kodak DC-260 do this -- use JPEG compression but not the JFIF file format.

    Anyway, that seemed like a good design, but it seems clear that the new JPEG2K requires both new compression (wavelet) and a new file format (for multiple channels). I hope they manage to keep the two separated as in the original JPEG.

    --JT

  52. Advertising Next? by Touga+Kiryuu · · Score: 1

    So what's next?
    Advertising space in graphics files?

    and really, with all that information in the J2K file format, just how small is "small"?

    are we talking 500k here?

    --
    -- Maelstrom
  53. PNG by wergild · · Score: 1

    i don't really believe that the option to do anything is ever overkill. the more options the better.

  54. JPG2k seems more useful for print then for the web by wergild · · Score: 1

    From the discription of it, it seems as if this file format is really more suited for print. The ability to work with a low res image in your document while simply specifying that it become higher res when you print it is very valuable, adn something that designers have to similate with seperate lower res images right now. the extra channels, the losless compression, the support for programs like acrobat, and InDesign all seem like it's a print oriented format.

    The advantages for the web could be many, but with the assumed slow lack of support in the browsers, and the need to be backward compatable with older browsers, i think this format might give tiff a run for it's money, but not jpeg.

  55. Let's put it straight.. by Axe · · Score: 1

    compression speed on wavelets may be agonizingly slow

    Wrong. Wrong. Wrong.

    DWT and relatives are computationally very effective algorythms.
    The reason it was not used ealier - it was not developed earlier.

    --
    <^>_<(ô ô)>_<^>
  56. I have a doubt...too by Axe · · Score: 1

    JPEG, even though it is lossy, makes most photos look better than they started off. This is due to the way that the sampling for the DCT works. It takes into account how the human eye works, and leaves out things that our brains wouldn't even notice anyway

    BS. Human eye works in nice square pieces? Utter bullshit. Do your homework. It is the other way around.

    Don't know what WT compression you looked at, but all I have seen (a lot) have a MUCH better quality per bit, and most important - they are free from this nice square artifacts of JPEG, that human eye is so well equipped to pick up.
    And when coded sanely - they are computationally MORE efficient.

    Do yourself a favor, pick up a good book (Say Mallat's 97 Wavelt tour of signal processing) and read it...

    --
    <^>_<(ô ô)>_<^>
  57. extra comment.. by Axe · · Score: 1

    about human eye -

    --
    <^>_<(ô ô)>_<^>
  58. extra comment.. by Axe · · Score: 1

    about human eye -
    - most wavelet transform based compression algorythms achieve a better quality due to the fact, that it naturally concentrates on changes - edges - of the image - the same thing human eye and mind concentrates on.
    Look at some papers on image processing...
    Notice one about deblocking of JPEG compressed images, for example...

    --
    <^>_<(ô ô)>_<^>
  59. I have a doubt...too - and so you should by Axe · · Score: 1

    published in mid to late 80's, I think

    Huh? You should brush up your understanding of the subject... Most of the developments happened later - I already mentioed some good references...

    From your description of your testing I am positevely sure you fucked it up. E-mail me if you want some more references on the subject...

    --
    <^>_<(ô ô)>_<^>
  60. link to the book I mentioned... by Axe · · Score: 1
    --
    <^>_<(ô ô)>_<^>
  61. JPEG and GIF by Graymalkin · · Score: 1

    ANY time I do a graphic with lots of colors I use JPEG. If I want to make a zippy website I will convert that JPEG into an adaptive palette GIF. GIF is pretty lossy if you make something in 24bit color and try to convert it to a 256 color GIF. The whole reason GIFs can do transparencies and animations is because they are limited to 256 colors so you can pick one of those colors much easily to be transparent than trying to make a channel transparent with a JPEG (which would need special software in the JPEG viewer). I usually laugh when I see new multi media formats trying to "become the standard". I cry when I find a format that should be universally accepted (JPEG and GIF since they are the internet standards) is not in a given program. If you want to make a format universal forget about the licenses and make it GPL, that way everyone can get ahold of the codecs and write it into their program. Down with licensing!

    --
    I'm a loner Dottie, a Rebel.
  62. PNG by sammy+baby · · Score: 2

    I have to agree. Web site designers are terrified to use PNGs on their site because they know that a sizeable percentage of their viewers can't... well, view 'em. And browser support for them still isn't where it should be.

    JPEG 2K might be God's own personal image format, but if a format falls in a forest and no one is around to implement it, does it make for pretty pictures?

  63. why not a new compression scheme in TIFF? by Hammor · · Score: 1

    Why don't they add a new compression type to the TIFF format?

    I guess because then they couldn't do a truncated download for low-res.

    Oh well. If they release a freely usable source library, I hope the format flourishes. Otherwise, it can go to hell with my bootprint on its ass.

    --
    > All software is broken.
  64. wavelets do better compression by CodeShark · · Score: 1
    I definitely believe that wavelets are superior to the DCT. (Less artifacting) However, there are several key points in my first post which I would like to elaborate on which contradict some of the things in your post.
    1. Wavelets are very very easy to implement...In some ways yes, in most ways, no, they aren't because of one item: iterative math functions. Wavelets are orders of magnitude more processor intensive than other encoding schemes such as LZW (GIF) and DCT (JPEG).

    2. ...for anyone who understands the algorithm...

      Silly me, (sarcasm implied), I forgot, there's only one wavelet algorithm... I do understand the algorithm, if you are talking about the Haars, etc. There are many wavelet transforms, related mathematically, but with differing resolutions, etc. Even subtracting the iterative math problem above, determining an algorithm which will work well for the vast majority of images to be encoded/decoded is not an easy task.

    3. ...moving code to an alternate platform, isn't that like in just a simple recompile?

      Oh, let me just fire up my SGI, my Mac, my OS-2 box, my Netwinder, my 486/DX-2, and my Alpha, my HP... and do a re-compile. I think you get my point. The problem isn't re-compiling the code, it's coming up with code that is general enough to be easily moved between platforms without suffering serious performance degradations. In lieu of that, you have to have coders on those platforms prepared to deal with and optimise for the "truly hairy math"

    By the way, if you've just finished your dissertation on wavelets and want to do something about it for the OpenSource movement, get involved.
    --
    ...Open Source isn't the only answer -- but it's almost always a better value than the alternatives...
  65. Is JPEG2000 the answer? by CodeShark · · Score: 2
    Probably not. However, it is going to have alot of mainstream support, and from my early readings on the subject, should be a useful addition to the array of graphic file formats already in existence.

    For those not familiar with DCT or wavelet compression methods, what we're talking about are ways of telling the computer how to generate the image mathematically from a much smaller set of data. The "ideal" algorithm would quickly reproduce any image accurately with the smallest possible dataset. The problem is, different techniques work better for different images. Which is why I suggest that until hard numbers are available, I wouldn't add momentum to this particular bandwagon. One of the folks working with me on wavelets said it way better than I ever did -- "the math is truly hairy", which means that even if JPEG2000 is a wonderful algorithm, moving it into code for alternative platforms will still be a daunting task. "Hairy math" takes time for the computer to resolve.

    Meanwhile PNG... From my limited work and reading, PNG appears to be an excellent format -- but one that hasn't reached the critical mass that Linux has. HowToHelp: plug ins. M$ probably won't listen [ever tried to run IE for Linux? ;')] but Mozilla's developer's will listen. Octave's developer's will too. (I haven't checked to see if there is already a PNG code branch in Mozilla or Octave, so apologies if I'm speaking out of turn.)

    A last question for the /. world: (later in the article) Speaking about Lizard Tech's MrSID, I noticed a feature I wondered about: "...MrSID supports an exact coordinate system that lets a user zoom in on an area of the picture." Does anybody know if this particular feature is covered under any patents?

    --
    ...Open Source isn't the only answer -- but it's almost always a better value than the alternatives...
  66. I have a doubt...too - and so you should by mysh · · Score: 1

    I did my homework. Firstly I got this from a book (forget which one, published in mid to late 80's, I think), which was given to me as "THE book to read on different image formats". I have also read this in many other places. And I have observed it by eye. Further, the human eye does not pick up sharp borders between colours in natural scenes (except if you stufy them carefully). JPEGs also smooth out such borders - this is one of the most noticeable artifacts with JPEG compression. I should add, though, that the level of compression we use at work is never worse than the 2nd best quality/2nd largest. At tighter compression it becomes a waste of effort.
    For wavelets we started with the company that provides the wavelet decompression engine for Microsoft's Encarta (our direct competitor). If you have ever seen Encarta (at least '98 or earlier), the photos look like shit. Cloud-shaped artifacts on a blue sky are (barely) acceptable. Cloud-shaped artifacts on grass, a window, a (tiled) rooftop - that's pretty dire.
    Having tried that same wavelet compression engine, we compressed images with it at the highest possible quality. 640x480x8 images came out around 65-69K, with both wavelet and JPEG. The wavelets were of a quality we considered unacceptable. The JPEGs were very difficult to distinguish from the originals (excepting almost flat colour areas and sharp borders).

    You may also note that the first thing I said in my post was that this research was done more than a year ago. It was, admittedly, only done on the web, but I figured most companies touting such a technology at a level appropriate for multimedia applications for home-users would also be trying to provide us all with browser plug-ins.

    Oh, and comparing artifacts again, I think that most people would have greater difficulty observing 2x2 square artifacts, than ones that look like 200x2 pixel squiggly lines running all over the place. Oh, and that attractive fuzzy "I can't focu anymore, maybe I need glasses" effect.

    Finally, though, thanks for the book recommendation. I'll check it out.

    ~m.

  67. I have a doubt... by mysh · · Score: 2

    Interesting. But I have some *ahem* concerns. First off let me mention that I work in "multimedia", and a bit more than a year ago I did a lot of research into different image compression formats, as we were starting on specifying a new product.

    So, with that disclaimer:
    1). I seem to recall that JPEG already had a facility for storing multiple resolutions in one image, with all general compression info stored at the start of the file (in JFIFs), and the lowest res version next, followed by the 2nd lowest res, and so on, until you reach the highest res at the end.
    2). Whilst looking at different compression formats, I also looked at several different wavelet based implementations. Without exception they looked worse than JPEG at the same file size. Yes, you read right - WORSE. Both in a 256 colour display (JPEG at its worst, as dithering looks really quite bad in palettised display), and with millions of colours. We dropped the idea of using wavelets. Oh, and the decompression speed _appeared_ to be slower for wavelets than for JPEGs. Not significantly enough for it to have affected our decision, but still...
    3). JPEG, even though it is lossy, makes most photos look better than they started off. This is due to the way that the sampling for the DCT works. It takes into account how the human eye works, and leaves out things that our brains wouldn't even notice anyway. Kinda like the psycho-acoustic sampling used for MP3. Many people are reported to prefer that sound to the original digital sounds aswell.

    Of course, we would never use JPEGs for line drawings, or maps (with lots of text). For those we use a lossless compression. Sadly the choice here had to be GIF (supported by Java, and our app is being written in Java. *sigh*).
    JPEG2K does, however, sound interesting due to the combination of a lossy and a lossless compression scheme into the same "standard". On the other hand, the same thing could be done with JFIF, and already IS done with BMPs and PICTs. And coming from JPEG, it is likely to be fully supported by Sun years before PNG is finally supported. *sigh*

    ~m.

  68. Is JPEG2000 the answer? by Frank+Warmerdam · · Score: 1

    The act of extracting a subregion of an image from an appropriate resolution level in a pyramid (or implied pyramid) can't be patented (effectively) since there is lots of prior art. However, the MrSID algorithms are tightly held, and I believe patented.

    I have implemented a read for MrSID and there is nothing special about it's multi-resolution capability that you can't accomplish with a tiled and pyramided TIFF file (and I have). However the compression is great, and is taking the world by storm which is why we need a public and popular wavelet standard.

    --
    Geospatial Programmer for Rent
  69. IJG - OSS Implementation by Frank+Warmerdam · · Score: 2
    The Independent JPEG Group (IJG), of which Tom Lane is the most visible member, is responsible for the currently popular OSS JPEG implementation. See http://www.ijg.org for details.

    More information on JPEG 2000 can be found at http://www.jpeg.org.

    I am wondering if the IJG is planning to (and has sufficient resources to) implement JPEG 2000 support quickly as the specification finalizes. Does anyone know? I asked Tom Lane about this indirectly a while ago, and he just pointed me to the www.jpeg.org web page.

    The IJG did a great job on the current library, and I hope that they can do JPEG2000. I also think that if they need support (manpower/money) it would behoove the OSS comunity to provide it.

    If for one agree that wavelet based approaches to compression are the future off lossy continuous tone compression. The MrSID technology for instance is great, but they hold a very tight hold on their proprietary technology. I think it is important to establish a popular, and public format and technology to fill this void or proprietary interests will damage OSS efforts.

    --
    Geospatial Programmer for Rent
  70. Tom Lane of IJG says... by Frank+Warmerdam · · Score: 3
    Folks ... I contacted Tom Lane of the Indpendent JPEG Group and he says:

    Nothing is happening within IJG; we are waiting to see what emerges from the ISO JPEG committee, and in particular whether it is (a) patent-free and (b) enough better than JPEG-1 to be worth a universal upgrade cycle.

    On point (a), I have made my views quite clear to the JPEG committee, but I dunno whether they are listening. There will not be an IJG implementation of JPEG-2000 unless it is freely distributable and freely usable under essentially the same restrictions (ie, none to speak of) as our current code. Patent licenses are a show-stopper. But from what I've heard, all the proposals before the committee have some amount of patent encrustation.

    On point (b), the poor track record of progressive JPEG has left me unenthused about pushing incompatible standards that offer only marginal or special-purpose improvements. JPEG-1 took the world by storm because it was an order of magnitude better than anything else available. Unless JPEG-2000 is that much better again, it faces at best an agonizing uphill fight; the world might be better off without the ensuing confusion. (I have not heard anything about what performance improvements they actually expect to get ... but I am suspicious that we are going to see percentage points, not integer factors.)

    So, I'm waiting and watching.

    --
    Geospatial Programmer for Rent
  71. It has 256 channels.
    Seriously though, I don't see it taking off very fast. Wavelet (de)compression is a slow process. While todays newest computers probally won't have much trouble with this, it will be painful to view the images on a (4|5)86, and you might as well totally forget about saving the images. While messing with wavelets on my 486 it wasn't unusual for a 640x480 image to take 16 hours to compress. I could view the compressed image back rather fast, but it definaly didn't flow onto the screen like JPEGs or PNGs.

  72. So how many patents... by Neon+Spiral+Injector · · Score: 2

    I would hope JPEG would give a sample implimentataion and C libs like they have done with the past specification.
    They have seemed to be pretty open in the past.

  73. KISS by Xenu · · Score: 1

    It sounds wonderful. My concern is that it will end up like TIFF, a standard with so many features that nobody implements them all.

  74. PNG by fornix · · Score: 1
    I understand this, but the option of 256 channels even feels like overkill to me.

    Ah, and 640K of RAM was more than one would ever need ;-)

  75. 256 channels by Omar+Djabji · · Score: 1

    People could encrypt a message, then hide the cypher text in an obscure data channel on pictures on their web page.

    Aren't things like this already done?

  76. Still waiting for PNG by Omar+Djabji · · Score: 1

    Wavelet theory is cool.

    Whenever my professors start describing how wavelets work, my eyes glaze over while my brain silently hemorages.

    At least I was never asked to perform wavelet compression by hand on an exam. I did have to do LZH compression by hand on an exam once. I wonder if I could be sued for not licensing the encryption algorithm as I used it on an exam?

  77. Wavelets cool by Omar+Djabji · · Score: 1

    One of the coolest things I have heard of wavelets being able to do, is this:

    1) Start with a picture of a teapot on a carpet.

    2) Reduce the image to a wavelet (it turns into a really nasty mathmatical formula).

    3) Eliminate some of the terms

    4) Use the new formula to create an image

    5) The teapot is now gone, with the texture of the carpet where the teapot used to be.

    Very very cool.

  78. Wavelets explained (easily) by Omar+Djabji · · Score: 1

    I guess I will explain this a little more.

    When you use a wavelet to compress an image, you reduce it to a mathematical expression. Each term in the expression represents a level of detail. Optimally expressed, the mathematical expression takes as much room as the original image. However, now we can hack off the terms that represtent very high levels of detail, without changing the visual quality of the image (to the naked eye). This is what gives us a saving of space.

    In order to acomplish the trick with the teapot, you eliminate some of the more signifigant terms of the expression. Since the carpet texture is highly detailed, it stays. Since there is no information left that the teapot existed, that space gets filled with the carpet texture.

    There. I hope your brain did not hemmorage.

  79. do we get alpha channels? by Catsclaw · · Score: 1

    Sorry to be anal about your being anal, but the alpha channels do determine the level of transparency. It's the exact same thing as controlling the level of opacity. The degree to which something is opaque is the degree to which it is not transparent. Isn't this kind of self-evident?

  80. Well in this great? by Peter+Hernberg · · Score: 1

    Sure, it all sounds great, but for web designers like me, this doen't mean a thing. Even when the specification does get released, it won't even be supported by the 5.0 browsers, let alone the older browsers (which give us enough trouble as it is!). Not only that, but this format will have to go head to head with PNG, which is now supported by browsers and has a lot of industry support (it's the official "Next Big Thing" for web graphics).

    If this thing ever does get the support it needs, I'll gladly use it, but as it is, absolute vs. relative positioning give me enough headaches...

    Peter

  81. Patents in General by mccormick · · Score: 1

    Just wait a few years and all the patents will be void :)

    --
    Pete