Slashdot Mirror


JPEG2000 Coming Soon

Sonny writes "In a few months time, internet users will be able to make use of the JPEG2000 standard which, its developers claim, enables web graphics to be downloaded much faster than is currently possible. This will not only make graphics-heavy web pages easier to download, it will also preserve image quality. The JPEG standard compresses image files which are then transmitted across the web faster than uncompressed files. Now, researchers at universities around the world have developed JPEG2000, the next-generation image-compression technology under the auspices of the International Standards Organisation. It is the first major upgrade of the standard since it first appeared in the early '90s. What is also important about the technology is its ability to send files without loss of data, which is not the case with current JPEG files. To take advantage of a JPEG2000, web browsers will need a Plug-In for either Internet Explorer or Netscape browsers. These free plug-in's are expected to be available later this year. The extension for the new files will be ".jp2"."

178 of 463 comments (clear)

  1. Wow! by Starship+Trooper · · Score: 5, Funny

    And only two years late, too!

    --
    Loneliness is a power that we possess to give or take away forever
    1. Re:Wow! by iamdrscience · · Score: 4, Funny

      that was exactly what I was thinking. An alternate obvious witty comment would be "I didn't even know they made JPEG2 through JPEG 1999!"

  2. Excellent! by Anomolous+Cow+Herd · · Score: 4, Funny
    I hear that the early adopters at goatse.cx will be implementing this very soon for better compression and the deeper, richer reds supported by the standard.

    Oh, and FP, BITCHES!

    --

    "I don't know that atheists should be considered citizens, nor should they be considered patriots." - George Bush
  3. The most useful and widely used benefit by Saeculorum · · Score: 3, Funny

    More pr0n, quicker.

  4. It's obvious where this is going. by checkitout · · Score: 5, Insightful

    If we aren't all using PNG right now, there's no way we're gonna be using jp2

    I think we're just stuck with jpeg and gif for about the next 5-10 years, until browsers in general get reinvented.

    1. Re:It's obvious where this is going. by NanoGator · · Score: 5, Informative

      "If we aren't all using PNG right now, there's no way we're gonna be using jp2 "

      You're talking about the difference between 300k and 20k. The reason that .PNG wasn't adopted in the internet world is that it didn't compress enough. Also, it's alpha channel was never really utilized. There are those in the 3D-Art world that think .PNG is a god-send, however.

      JPEG2000 has a few things going for it:

      - Familiar Name
      - Familiar Standard
      - Smaller filesizes
      - Likely to be better supported by IE and other browsers

      --
      "Derp de derp."
    2. Re:It's obvious where this is going. by GauteL · · Score: 3, Interesting

      Speak for yourself. I'm heavily using PNG right now. Why is it important that everyone should use new standards? As long as they are supported in browsers (*) and I am free to use them, I don't care what everyone else is using.

      Sure, shorter download time would be nice, but PNG isn't really providing that. PNG however makes the job of the web developer easier.

      (*) I'm still annoyed that IE doesn't support alpha-transparency though.

    3. Re:It's obvious where this is going. by Tack · · Score: 3, Informative
      (*) I'm still annoyed that IE doesn't support alpha-transparency though.

      It does, you just have to use the IE-proprietary AlphaImageLoader filter (it's a CSS extension). I agree this is a pain in the ass, and why they just don't support the alpha channel with regular img tags is beyond me, but at least with a little PHP or Javascript you can make it work.

      Jason.

    4. Re:It's obvious where this is going. by Jacek+Poplawski · · Score: 2

      If we aren't all using PNG right now, there's no way we're gonna be using jp2

      Who are you ?
      I use .png very often, for example in my programs (tiles, textures) or when I save scanner output.

    5. Re:It's obvious where this is going. by yesthatguy · · Score: 2

      Look at graphics on websites that you visit. I haven't found one major site that uses pngs (not that I've looked all that often, but wherever I look, it's a .jpg or .gif). I throw my graphics around as .pngs, but that doesn't make it a standard. As an internet community, we aren't using PNG.

      --
      Yes! That guy!
    6. Re:It's obvious where this is going. by Anonymous Coward · · Score: 2, Insightful

      If porn sites start to use JPEG2000 it will become a standard rather quickly!
      That's how the world works my friend...

    7. Re:It's obvious where this is going. by jd142 · · Score: 2

      konqueror/mozilla could have support for it in a release version within a month or two. And if IE supports it soon

      The problem is backward compatibility. Not all of the people who come to our website are technically savvy enough to upgrade a browser (which is why MS was so insistent in bundling IE, you may remember) and those are savvy enough may not have the time, inclination or a fast pipe to get the next version of a browser in a reasonable time. So despite the fact that mozilla and ie could support it in a month, our users might not be able to until they get a new pc, which means a 4 year or so wait before it is worth it.

      Is it really worth it do do the browser check for a graphic when an existing format will do what I want? No.

    8. Re:It's obvious where this is going. by Tack · · Score: 5, Informative
      Do you have any links to a reference for this? I had no idea this existed...

      Yes, the reference is on MSDN's site.

      It's not complicated to use, it's just awkward, and you need to use PHP (or Javascript, or some other solution) if you want it to work in both IE in Mozilla. Here's an example of how I've done it in the past:

      • <? if ($is_ie) { ?>

      • <img src="blank.gif" style="filter:progid:DXImageTransform.Microsoft.Al phaImageLoader(src='imagewithalpha.png', sizingMethod='image')">
        <? } else { ?>
        <img src="imagewithalpha.png">
        <? } ?>

      The implementation of this in IE seems to be pretty good -- at least I haven't run into any problems with it.

      Jason.

    9. Re:It's obvious where this is going. by NanoGator · · Score: 2

      You're right. And it's a bummer too because I'd use PNG all over the place if the alpha channel was supported correctly. I also wish that IE would run some sort of bi-linear filtering on resized images so that I could take advantage of it's percentage based image sizing tags, while maintaining image quality.

      That's one of the reasons I like Flash.

      --
      "Derp de derp."
    10. Re:It's obvious where this is going. by jsse · · Score: 2

      If we aren't all using PNG right now, there's no way we're gonna be using jp2

      PNG is for the replacement of GIF. Comparing PNG with JPEG2000 is like comparing GIF with JPEG2.

    11. Re:It's obvious where this is going. by GauteL · · Score: 2

      WTF? Ok... I realize I'm wrong in suggesting that IE doesn't support alpha-transparency. But what on earth made them go down this path?

      The support in Mozilla (and newer Opera) is just

      <img src="whatever.png">

      I just cannot see any reason why this extreme awkwardness is necessary. Microsoft have been reasonably good at providing "ease of use" lately. Some people may argue that some of the "ease of use" is to lock you in to using them, but this just puzzles me.

  5. Stupid extensions by binner1 · · Score: 5, Insightful

    Why .jp2??? Why not .jpeg2. This legacy DOS naming convention drives me nuts. Not even Windows is crappy enough to still require 8.3 filenames.

    I still cringe when I see default.htm. It's a frickin' html file, name it properly.

    -Ben

    1. Re:Stupid extensions by checkitout · · Score: 5, Insightful

      Why .jp2??? Why not .jpeg2.

      Because they're latching onto the idea (and popularity) of .mp3 and we dont have a .mpeg3 extension in active use.

    2. Re:Stupid extensions by Snowfox · · Score: 4, Insightful
      Why .jp2??? Why not .jpeg2. This legacy DOS naming convention drives me nuts. Not even Windows is crappy enough to still require 8.3 filenames.

      Just because names can be made longer doesn't mean that they should.

      .jp2 is sufficiently clear, and it won't clutter diretory listings. Save the longer, more descriptive extensions for more obscure things.

    3. Re:Stupid extensions by dimator · · Score: 3, Interesting

      It would be interesting to see how much bandwidth is saved by not sending those two other characters to browsers. I bet it adds up quick. :)

      You're right about 8.3, though. It disgusts me. But this is just the .3. You don't have to stick with the 8 in front, which I can live with.

      --
      python -c "x='python -c %sx=%s; print x%%(chr(34),repr(x),chr(34))%s'; print x%(chr(34),repr(x),chr(34))"
    4. Re:Stupid extensions by GSloop · · Score: 2, Offtopic

      How about JUST KILLING THE STUPID EXTENSTION ENTIRELY!

      I really hate Windows' use of extenstions. Why should extensions control the application association. Remember OS/2? It had an EA (extended attribute) that assocated the file with an application.

      I have all sorts of problems with users renaming files so they associate with the wrong thing, then they wonder why Word won't open an EXE properly - or other similarly stupid thing.

      The extension should either not exist, or only exist for additional naming info. It shouldn't have anything to do with application association.

      Windows, it seems has never done it right the first time. Every time we get to be the test subjects for MS's stupid ideas. (How about clippy! DAMN!) Sometime they eventually get it right. (How about Network file share rights and inheritance in NT! Every user that has rights to a folder farther down in the tree must have at least browse rights to every directory higher in the tree to use explorer to navigate to the folder they have rights to...that also allows them to see all the files in the folders they shouldn't!)

      I'll quit ranting now!

      Cheers!

    5. Re:Stupid extensions by TotallyUseless · · Score: 2, Insightful

      i think .jpg2 would be much clearer than .jp2. most files that start with a .j and arent a .jpg are java or javascript files up till now, at least in webwork. for someone not in the industry it can get confusing fast. why not make use of one more character, and make it completely clear to everyone what it is? anyone that knows what a jpg is will know what a jpg2 is, but they may not know what a jp2 is. just a thought

      --

      Time for some tasty Shiner Bock!
    6. Re:Stupid extensions by __past__ · · Score: 2
      And content negotiation makes it still better!

      index.hypertextmarkuplanguage.english_UNITEDSTATES OFAMERICA anyone?

    7. Re:Stupid extensions by glwtta · · Score: 2
      The best part is that most users cannot comprehend that the extention doesn't make the file that format. Example:

      for a project I was told I'd need to parse the Excel files that users submitted, and given .xls files. So I looked around for something to allow me to read Excel files from java, found some thing from IBM that actually loaded Excel in the backround to do it, it worked, but crashed all the time. Found something that was supposed to read read the binary format without any MS crap, spent a few hours trying to make it work, no luck - doesn't recognize the format. Of course only then it occured to me to actualy check what the files were, and sure enough, tab delimited text files with .xls extensions (which Excel loaded and converted on the fly, when I was using the IBM thing). I felt very stupid, for a long time.

      --
      sic transit gloria mundi
    8. Re:Stupid extensions by Perdo · · Score: 2

      Ok, let's see...

      DefaultName.HyperTextMarkupLanguageFileType.

      Perhaps it has nothing to do with Dos anymore. You know that .htm is a Hyper Text Markup Language file but you wouldn't want to type that each time. So why force people to type .html when .htm carries the same meaning? Just like there is no difference in meaning between .jpeg and .jpg or .mpeg .mpg. The only problem with that particular name is the file carries no information on what encoding standard was used. If you use divx 4.11 or 5 expect that no one has an application to properly play those filetypes.

      Quiktime will report "the required compressor could not be found" Windows media player will play the audio track only.

      So there is a case of the file extention not provideing the sort of information to the operating system that it should, or once did.

      reguardless, .htm is good enough, It beats ".hypertextmarkuplanguage" appended to the end of each file hands down. :)

      --

      If voting were effective, it would be illegal by now.

    9. Re:Stupid extensions by Fastolfe · · Score: 2

      Agreed!

      For web use, I generally omit extensions entirely and use Apache's content negotiation.

      But then users wanting to download these files to their PC frequently have problems unless their browser is smart enough to append a meaningful extension so that the user can re-open the file correctly later. Just a minor caveat.

    10. Re:Stupid extensions by NonSequor · · Score: 2
      Save the longer, more descriptive extensions for more obscure things.


      What more obscure thing is going to use the extension .jpeg2? No one in their right mind would use that extension for anything other than JPEG2000.

      I guarantee that if I were given a long list of short alphanumeric strings containing jp2 and jpeg2 I would be able to locate jpeg2 more quickly. Making file extensions more distinctive is of far greater importance than reducing "clutter."

      --
      My only political goal is to see to it that no political party achieves its goals.
    11. Re:Stupid extensions by anotherone · · Score: 2
      Uh... extensions let you tell what a file is without having to open it. If I check my email and see a file called "monkey.exe" I'm not going to download it. If it's just called "monkey" I might. I like monkeys.


      I don't see how having more information about something could be bad.


      And the network problem you mentioned, I've never heard of anything like that... I suspect you may have something set up wrong if that happened to you. I've got a windows network set up here where every user has a directory that they can use on the file server, and no-one can get into each other's stuff or what's above their directory.

      --
      Username taken, please choose another one.
    12. Re:Stupid extensions by SEE · · Score: 2
      If I had the dollars...

      I'd buy all of IBM's WPS/SOM technology and either PMX or Hummingbird's Exceed for OS/2 product, and open source the lot. Linux needs a desktop? Fine. GNOME and KDE are working from the wrong end. Give it the Workplace Shell and the System Object Model for a real GUI infrastructure, and toss in an X-protocol system that's integrated with it.

      Then hire Bruce Tognazzini and build a huge usability testing lab to work out the actual details of the desktop. Only MacOS X would come close. And since Linux-with-WPS would be running on everything and free...

    13. Re:Stupid extensions by frleong · · Score: 2

      It's because of ISO9660 CD-ROM format, which is restricted to 8.3 filenames. It won't go away anytime soon. That's also why many Linux dists still keep the short filenames.

      --
      ¦ ©® ±
    14. Re:Stupid extensions by GSloop · · Score: 2

      Ok, bloke, have you ever seen EA's on OS/2? You can ask the OS what the association is, and it will tell you. Same with the MAC.

      As for the network setup.

      Setup folder A
      Inside folder A setup B & C
      inside C, setup D

      Now give user Fred full rights to D, but no rights to A,C or C.

      Try to use explorer to browse to D.
      It won't work.
      If you put in the direct path to D, you can get there, but you can't browse. Or setup a drive map that points directly to the D folder.
      To browse, you have to at least have the browse right to A,B,C.

      That just sucks. Netware can do this just fine. I'd assume that looking down the tree to see if you might have more rights to some folder farther down in the tree isn't exactly a easy thing to do, so MS just decided it wasn't important.

      Cheers!

    15. Re:Stupid extensions by GSloop · · Score: 2

      Try this on Netware...it works as it should, and has worked this way for more than 10 years.

      You'll see folder A, B, & C with nothing in them - because you don't have rights, as well as browse through them down to folder D.

      Folder D will have all the files and such that you have rights to.

      Browsing to user directories, or shares below them that the user wants to share with other users and such, without mapping a drive is lots easer when things work this way - browse to the server, open the users folder, open user X's folder (you're user Y) still all you see is the folder - open the shared directory below, and bingo - all the rights you have - read or read/write etc.

      Cheers!

  6. free bandwidth by DrSkwid · · Score: 5, Funny

    The JPEG standard compresses image files which are then transmitted across the web faster than uncompressed files.

    excellent, using jpeg2000 increases my bandwidth too!

    There I was thinking they downloaded at the same speed but in less time!

    --
    There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
    1. Re:free bandwidth by glwtta · · Score: 2
      Actually that's not strictly true:

      It downloads so quickly, that it goes back in time, creating a prallel universe where jpeg2000 does not exist. This, obviously, causes a normal jpeg file (which has the same image as the jpeg2000 file you were downloading) to appear in our universe, on your computer, at about the same time as when you request the download, but spinning in an opposite direction (also, and I am not sure about this, if you are using IE, the little globe icon also spins in the opposite direction).

      --
      sic transit gloria mundi
  7. Slow to change ... by Jobe_br · · Score: 5, Insightful

    I don't want to be a nay-sayer in any way, but I predict that this will catch on about as quickly as PNGs replacing GIFs. Most professional quality sites still use GIFs instead of PNG, even though tools such as Adobe's Imageready and Macromedia's Fireworks have supported the PNG format alongside GIFs for a while now AND most major browsers support PNGs natively (which wasn't the case not too long ago, with IE4, I believe).

    Until the .jp2 format doesn't require a plugin for 99% of the browsers out there, it won't be widely used, IMHO. Of course, I could be wrong and the .jp2 format might not even be meant for wide-spread adoption, and mainly for particular niche uses (such as viewing hubble images or replacing the need for lossless TIFFs).

    Just my $0.02.

    1. Re:Slow to change ... by Darren+Winsper · · Score: 5, Interesting

      The major blocker for PNG is the fact that IE does not support its alpha channel. I originally used PNGs with alpha channels on a web site I made, but then had to replace them when I found out IE didn't support the alpha channel. This was a pain in the arse because the end result looks a tad crappy.

    2. Re:Slow to change ... by siliconwafer · · Score: 2, Interesting

      I'm using IE5 on OS X. Every time I load up a page that contains PNG images, IE tries to save the files.... :-( Obviously it doesn't know what to do with PNG images.I think the browsers still have some catching up to do.

    3. Re:Slow to change ... by Junta · · Score: 2

      Huh? I haven't had a problem with PNG alpha channels under IE in a long time..

      --
      XML is like violence. If it doesn't solve the problem, use more.
  8. JPEG does have a lossless mode by angryargus · · Score: 5, Interesting

    What is also important about the technology is its ability to send files without loss of data, which is not the case with current JPEG files.

    JPEG does support a lossless mode, it's just that no one uses it. To paraphrase, JPEG supports a lossless spatial algorithm that operates in the pixel domain. Some amount of prediction is used, resulting in about 2:1 compression, but the error terms for the predictions are included in the data stream (encoded using either Huffman or arithmetic coding), resulting in no net errors.

    What's a lot more exciting is JPEG2000's use of wavelet compression, which isn't mentioned at all.

    1. Re:JPEG does have a lossless mode by vinnythenose · · Score: 3, Funny

      You mean someone is actually going to use Wavelets for something???? Egads, all I've ever seen is endless r&d on it and it never seems to go anywhere, even though they claim that it would revolutionize compression in the image world!

      Horray for wavelets! Now if only someone would re-explain them to me. I didn't catch it the first time and no one has said anything high level enough since (I'm not interested in the nitty gritty at this point)

      --
      --- I used to moderate, then I read the -1 articles and decided having to filter through them was not worth it.
    2. Re:JPEG does have a lossless mode by psavo · · Score: 2

      afaik .ogg uses wavelets, and gets better sound at lower bitrate (subjective..) than FFT -based mp3.

      --
      fucktard is a tenderhearted description
    3. Re:JPEG does have a lossless mode by MWright · · Score: 2
      Vorbis (the sound codec; keep in mind that ogg is just the container format!) currently only uses the DCT, the same transform used in current JPEGs as well as MP3s. However, according to their FAQ, wavelets will be supported in the future (I'm too lazy to find the link; sorry!).


      Ogg Tarkin (the video codec) will be using wavelets from the beginning, though.

      --
      "But really, I think life is just a game of Mao Nomic." -Purplebob
    4. Re:JPEG does have a lossless mode by FreeMath · · Score: 2

      Ogg Vorbis uses MDCT and not wavelets.

      See the FAQ for details.

      --
      This sig intentionally left blank.
    5. Re:JPEG does have a lossless mode by stripes · · Score: 2
      JPEG does support a lossless mode, it's just that no one uses it.

      Lossless JPEG uses patented IBM stuff (I think the rest of JPEG uses various patents as well, but everyone agreed to freely license them, IBM didn't agree for the lossless stuff). I think that is the big reason pretty much nobody uses it.

    6. Re:JPEG does have a lossless mode by MWright · · Score: 5, Interesting
      I'll give a really quick, basic explanation.


      The lifting algorithm (one way of computing the wavelet transform; actually, the simplest to understand and one of the fastest) works by splitting the original signal into two (in the case of a 1d signal) subsignals. One of these is the "trend" signal. It's sort of a compact version of the original one. Using only this signal, the original signal can be reconsturcted pretty well, but not perfectly. That's where the other signal, the "detail" signal, comes in. It contains the information needed to reconstruct the original signal perfectly. If the trend signal is a good prediction of the original signal, the detail signal will be very small, and can be compressed well.


      But, there's no need to stop there. The whole process can be applied to the trend signal again, and even to the detail signal if it's necessary.


      I'll give a more concrete example, the Haar wavelet transform. In this case, the trend signal is simply the averages of the original signal. So, if we start with


      1,3,4,5


      The trend signal would be


      2,4.5.

      If we were to reconstruct the signal with only this information, we'd get


      2,2,4.5,4.5,


      which is not too bad. The detail signal would contain the information needed to get from this to the original signal; differences between pairs of consecutive terms will work (Note that these pairs shouldn't overlap; that would just be redundant. Therefore, the detail signal, as well as the trend signal, are each half as long as the original one). So, the detail signal in this case is


      2,1.

      It's easy to see that if the original signal is constant, the detail signal will be all zeros. It's possible to construct different ways of making the trend and detail signals such that the detail signal will be zero if the original signal is linear, for example.


      A good paper about this (that explains it better than I do!) is Building Your Own Wavelets at Home

      --
      "But really, I think life is just a game of Mao Nomic." -Purplebob
    7. Re:JPEG does have a lossless mode by benwaggoner · · Score: 2, Informative

      MWright had a good technical introduction, so I'll just outline a few of the practical areas where wavelets make JPEG2000 rock.

      First, compression efficiency. Although lossless and near-lossless quality isn't hugely better, data rates for "good enough" quality (defined as where the image is understandable and artifacts aren't too distracting) are much, much lower. Unlike the old Discreet Cosine Transformation (DCT) method of JPEGs, which get blocky at high compression, wavelets get softer, which is much less obvious. So, this might not help things with pro digital cameras much (which were lightly compressed in the first place), it will help a lot with web images and such, or consumer digital cameras.

      The other nice thing about wavelets is that they are constructed in bands. First, the base image is encoded at a low resolution. Then this is used as prediction for the next resolution, and that band only has to store how the image is different from the prediction.

      This is groovy, because you can decode the individual bands as they're transmitted, giving a low-resolution proxy image once only a few percent of the file is transmitted, getting progressively higher quality over time. While progressive/interlaced JPEG/GIF gets the same effect, wavelets do it more efficiently.

      Many years ago, Intel created a video file format that used these properties, IVF. Didn't ever get any market traction. You can still get the tools from Ligos.

    8. Re:JPEG does have a lossless mode by Jouster · · Score: 2, Interesting

      The Joint Picture Experts Group has a very nice applet available to demonstrate this, but they put it in a ZIP file for some reason, so you can't directly execute it in the browser. I have posted the applet here, with a slight modification to use an image borrowed from CmdrTaco's really crappy movie.

      Enjoy!,
      Jouster

  9. does this mean that... by 2MuchC0ffeeMan · · Score: 2

    porn sites get more efficent, making more money, or will they lower their fees...

    tough choice.

    --
    Runnin' On Empty .... I'm Still Alive
  10. Artwalker.com to use JPEG 2000 by Wonderkid · · Score: 3, Interesting

    About time! JPEG 2000 was mentioned in Electronic Engineering Times many years ago. The next revision of Artwalker.com (where you explore the world though landscape paintings) will be completely displayed using JP2 because it has one vital characteristic: Images can be scaled in real time (via the server). For example, instead of displaying a thumbnail of say 50x60 pixels, and having the user click the thumbnail to view the full size image (say, 640x480), a JP2 image can be made to display as a percentage of the total size of the display window (or browser width) in a similar fashion to a vector graphic, such as that generated by Flash. This will be excellent for mobile devices with differing screen resolutions and make for some very cool ZOOM tools on browsers and in Photoshop etc. We have been waiting for this since 1996, when we launched Artwalker! Soon it will be time to get going on converting all our high resolution images to JP2. A lot of work!

    --

    O'WONDERWe're working on it.

  11. Mozilla & jpeg2000 by Majix · · Score: 5, Informative

    See this bugzilla entry for Mozilla's jpeg2000 progress.

    Doesn't seem too promising:
    If you look at appendix L of the jpeg2000 draft, there are 22 companies who believe that implementing the spec may require use of their patents.

    PNG still hasn't taken off despite being supported in all major browsers (now if only IE did proper alpha, any year now...), how much chance does an image format that requires third party plugins have?

    1. Re:Mozilla & jpeg2000 by chabotc · · Score: 2

      "Sorry, links to Bugzilla from Slashdot are disabled."

      Bwahaahaha!! I sugested doing this before when slashdot linked to bugzilla directly from the story description, i never thought they would actualy do this!

      Very nice way to prevent the slashdot effect ;-)

    2. Re:Mozilla & jpeg2000 by WasterDave · · Score: 3, Insightful

      ...meaning, of course, that in order to be able to implement JPEG2000 we need a patent licencing authority - JPEG-LA, anyone? Of course, they would want to charge 0.001c/download and everyone goes running back to DCT.

      Seriously, this is exactly the position in video compression right now. Dire, in other words.

      Dave

      --
      I write a blog now, you should be afraid.
    3. Re:Mozilla & jpeg2000 by MobyDisk · · Score: 2

      Not if you use open in new window - because of a Mozilla bug that doesn't send referrers when opening in new windows... :-) I love how bugs in their own browser affect their own site. :-)

    4. Re:Mozilla & jpeg2000 by Wesley+Felter · · Score: 2

      I think a better solution is to add some caching to Bugzilla so it doesn't collapse when slashdotted.

    5. Re:Mozilla & jpeg2000 by b1t+r0t · · Score: 2

      Heh. Ditto for opening in a new tab. :-)

      --

      --
      "Open source is good." - Steve Jobs
      "Open source is evil." - Microsoft
  12. Re:So its a trade off against computation? by psavo · · Score: 2

    no, it's subdivided many, many times. mostly by factor of 2, but probably adaptated (like 800px -> 200px+600px).. it should stop subdividing at about 8.

    --
    fucktard is a tenderhearted description
  13. Uses new compression standard by Gothmolly · · Score: 5, Funny
    In unconfirmed reports, the developers were said to be using the lzip algorithm. As quoted on C|Net:
    We plan to integrate this into an ActivePlugin plugin for Internet Explorer 7, which will allow users to set their compression preferences, and the browser will request a given compression level. Initial testing indicates that this works, but we're experiencing some data loss. We'll address this with the developers and lzip, and probably get Microsoft involved. They have lots of experience with data corruption.

    --
    I want to delete my account but Slashdot doesn't allow it.
    1. Re:Uses new compression standard by colmore · · Score: 2

      "[We'll] get Microsoft involved. They have lots of experience with data corruption."

      You can say that again!

      --
      In Capitalist America, bank robs you!
  14. I think it'll catch on by Zuna · · Score: 2, Insightful

    Don't think that just because it causes the user to download a plugin that web developers will be afraid to use it. After all, just look at Flash.

    However, I think it'll really catch on whenever the next versions of the browsers are released with standard support for JPEG2000.

  15. Re:PNG? by jandrese · · Score: 4, Informative

    ...smaller files than JPG.

    Sorry, try again. An image compessed with PNG (even at the highest compression setting) will tend be considerably larger than the image compresed with JPEG. What PNG gives you is lossless compression and an alpha channel (that's not even properly supported in many browsers).

    --

    I read the internet for the articles.
  16. found this nice comparasion by Anonymous Coward · · Score: 3, Informative

    I thought this was a good comparasion between JPEG and JPEG2000.

  17. Patents, Patents and more Patents by JohnA · · Score: 5, Insightful
    According to this EE Times article, there are several patents that are licensed "royalty free" to implementers of the JPEG2000 Part 1 specification. Sound familiar?

    I remember a similar promise made about LZW compression in the GIF standard by Compuserve. What is to stop these companies from requiring license fees at some arbitrary point in the future once the technology is widely used?

    Additionally, there doesn't seem to be very much due dilligence performed in regards to other patents over the techniques utilized in the standard. Even if all of the known patents are licensed royalty-free, there exists the very real possiblity that a submarine patent will be exposed, after the standard is widely utilized, of course.

    Of course, this won't matter once all of our PCs are replaced with sealed, SSSCA-compliant, government issued "convergence appliances"... :-)

    1. Re:Patents, Patents and more Patents by stripes · · Score: 3, Informative
      I remember a similar promise made about LZW compression in the GIF standard by Compuserve. What is to stop these companies from requiring license fees at some arbitrary point in the future once the technology is widely used?

      I don't recall Compuserve ever promising that, in fact at the time they made GIF nobody really thought software patents were workable...except the patent office.

      Plus if CompuServ tells me I can use Unisys's patented crud, why should I believe them? I only trust what IBM says about IBM's patents. Likewise for JPEG2000, I'll believe I can get a royalty free license only if the patent holders sign for it, not 3rd parties.

      If you look at RAMBUS you will see they made a similar promise when they were at the JDEC meetings that eventually produced SDRAM, and while they did sue, when someone finally decided not to settle RAMBUS got spanked. Hard. So while it ain't perfect, there is some reason to believe it will work out Ok.

  18. Wow. This couldn't have been timed better by adamwright · · Score: 5, Interesting

    I've been involved in JPEG 2000 for a while now, and come to the conclusion that..

    A) It's an excellent codec, though computationally heavy
    B) The design of the codestream along with JP2/JPX file format has a lot of potential to create a "new" type of image that isn't just a picture. Yes, you've heard this before, but this time it's built in at a codec level. In stream ROI's, very flexible reconstruction and compression controllable through great numbers of options - and that's only the codec (at a *very* rudimentary level :).
    C) It won't succeed without a decent opensource, "IPR free" (as much as is possible) implementation.
    D) Read C again. It's important

    To this end, I've started (with support from others in the JPEG 2000 community), a JPEG 2000 Group (See http://www.j2g.org - It's very sparse at the moment, but if you're interested, bookmark it and come back in about a month). Tom Lane and IGJ have expressed no interested in JPEG2000, for various reasons (which I don't entirely disagree with, but I'd rather be proactive and try to correct flaws than walk away totally).

    The aims of the JPEG 2000 Group are to create a public, open source (probably BSD license) implementation of "Part 1" (This is the codestream syntax, codec, and file format wrapper). We'll also provide a community JPEG 2000 resource. To facilitate this, we've already attained a Class C liaison with the committee. This grants all members the option of acquiring the standard free of charge. We also get a minimal channel back into the process to give opinions.

    The point of this ever rambling post is this : We need members. The standard is large, and the support around it will be larger. We need volunteers who would be interested in assisting in the creation of the codec. Sadly, "Membership" is going to require some form of contribution and commitment to acquire copies of the texts you'll need - I hate this as much as you, but it was accept it, or don't get any copies at all (without $$$). If you're interested in contributing in any way (code, documents, testing, support), please drop by the at forum - Even if its only a passing interest, I'd be happy to go into more detail regarding the project (or just JPEG 2000 itself). I'd do it here, but I'd loose all my (low :) karma in offtopics.

    So, rather than bitch about the lack of a free implementation and how late it is, and how it'll never get used, come and help out! You know you (might possibly | maybe | someday) want to!

    1. Re:Wow. This couldn't have been timed better by A+Commentor · · Score: 2
      You first say:
      To facilitate this, we've already attained a Class C liaison with the committee. This grants all members the option of acquiring the standard free of charge.
      But then go on to say:
      Sadly, "Membership" is going to require some form of contribution and commitment to acquire copies of the texts you'll need - I hate this as much as you, but it was accept it, or don't get any copies at all (without $$$).
      You seem to be contradicting yourself here...
      --

      Looking for any old 8-bit Heathkit/Zenith software/hardware - http://heathkit.garlanger.com

    2. Re:Wow. This couldn't have been timed better by Anonymous Coward · · Score: 2, Insightful
      ...lack of a free implementation...

      Why do standards bodies produce documents? Why don't they produce code instead? A reference implementation under a royalty free license would go very, very far towards getting the standard adopted. As it is, standards bodies produce documents, and 10 years later there exist a handful of implementations...

      Why not run the development of the reference implementation and standard document like an open source project with an initial closed (open to experts who are part of the standards body) phase? Afterwards, open up the code and development mailing lists so that people can discuss the implementation, suggest bug fixes, etc.

      I want to see an ISO sourceforge, and one for ANSI, with a project for each of their standards... How about an OSI approved ISO license?

      Perhaps the REAL future lies with open projects like OGG, that create codecs and file formats freely usable by anyone (and freely embeddable by anyone due to the BSD license). These large standards bodies will always have to charge royalties to support themselves.

      But will ogg always be 17 years behind, chasing the most recently-expired software patent?

  19. will it actually get off the ground.... by neo8750 · · Score: 2, Informative

    anytime soon that is. To take advantage of a JPEG2000, web browsers will need a Plug-In for either Internet Explorer or Netscape browsers. I don't mind downloading a plug-in to get faster images. but the average user only knows plug-ins as the airfreshener glad makes. Not to mention will a company be willing to switch over to using this format since most average users won't see. Unless IE, netscape, mozilla, etc get support for it by default it won't be used to much.

  20. libjpeg by NotoriousQ · · Score: 2, Insightful

    web browsers will need a Plug-In for either Internet Explorer or Netscape browsers.

    or some of us that compile our own code and use dynamic and static libraries, the change would be as transparent as recompiling libjpeg.

    just another reason I like open source.

    --
    badness 10000
    1. Re:libjpeg by Chester+K · · Score: 2

      as transparent as recompiling libjpeg

      Read that part again. I hope you understand how silly you sound.

      --

      NO CARRIER
  21. Ah hahahah by vinnythenose · · Score: 2

    It's good to see the porn comments piling up. This is worse than the body count in a bad slasher flick.

    --
    --- I used to moderate, then I read the -1 articles and decided having to filter through them was not worth it.
  22. Re:Plugin for IE? by Moridineas · · Score: 2

    What a narrowminded and stupid thing to say. You will never update a browser that removes standard features? So in otherwords, you want your browser (/OS/all other programs etc) to be a collection of legacy junk which can never be changed for fear of alienating you? Changes sometimes need to happen, and given that by the time the change to 6.0 happened there was no plugin that I ever ran into that didn't have an ActiveX version, there's no reason for your ranting.

  23. What happened to DjVu? by chrysalis · · Score: 5, Interesting

    Everyone is still using old formats like GIF and JPEG.

    But there are other, more powerful formats.

    For a non-descructive compression, the PNG format is fortunately getting more and more popular, although the late inclusion in Internet Explorer slows down its wide adoption.

    But when it comes to a destructive compression, there's an excellent (and not new) format made by AT&T and called DjVu. It was one of the first wavelets-based format.

    DjVu is really better than Jpeg. Images are better looking (more contrast, less pixels with odd colors), and files are way smaller. Plus you can smoothly zoom any DjVu image without getting big and ugly blocks.

    DjVu has been available for a while as a plugin for common browsers.

    There's a 100% free implementation of the format called DjVuLibre .

    However, nobody uses it. I don't understand why. Some times ago, it may have been because compression was slow. But nowadays, it's no more a valid point.

    People are enthusiast for Jpeg2000. But why would Jpeg2000 be adopted while DjVu has never been?


    --
    {{.sig}}
    1. Re:What happened to DjVu? by jafuser · · Score: 2
      Djvu is actually quite an impressive file format. We've used it where I work, and it typically gets a 3 meg 200dpi PNG-compressed document image down to around 50-150k, and it is still remarkably as clear as the original. What I understand that it does is separate the background from the foreground, compress the foreground in non-lossy format, and then compress the background using a lossy wavelet-based format. Then the final display decoder merges the two together quite well...

      There's a technical description here.

      --
      Please consider making an automatic monthly recurring donation to the EFF
    2. Re:What happened to DjVu? by MisterBlister · · Score: 5, Interesting
      Seems that the reference source code implementation of DjVu is GPL (full GPL, not LGPL). I'm not looking to start a debate on the merits of "Free" software, but this situation is the kiss of death for any potential file format. I'm sure if the reference implementation were released under a BSD style license (as is the case with JPG, PNG, etc), the format would be much more widely supported....

      In the real world, companies don't want to either GPL their software (required if they use this GPL library), or reinvent all the code from scratch based on the spec, unless there's huge demand for it (which there won't be due to chicken & egg scenerio)... So, don't expect to see any support for DjVu anytime soon.

    3. Re:What happened to DjVu? by Junior+J.+Junior+III · · Score: 2, Funny

      So what you're saying is, essentially, that we've seen this before, and it's called Deja Vu?

      --
      You see? You see? Your stupid minds! Stupid! Stupid!
  24. Re:Why plug-ins? by Moridineas · · Score: 2

    Because you can write a plugin/ActiveX control today and have anyone who uses a compatible browser download it (in a small download) tomorrow. It takes a lot longer to roll a new release of a browser, and a lot of people won't upgrade.

  25. Good timing by kwishot · · Score: 2

    Now that everyone has broadband and can play streaming video.....

  26. Nice Ad by cybermage · · Score: 2

    It's always good when the submitted story is more up-to-date than the site it links to. The current press release" on the site is dated August, 2000.

    Could this story be submitted by an insider? Hmmm... I know, I know, Slashdot != "investigative journalism"

  27. comparisons to other formats by big.ears · · Score: 5, Informative

    According to this pdf,
    the report compares 4 compression codecs, and found for a small sample found:

    MEAN LOSSLESS COMPRESSION RATIOS (big is good)
    ------------------
    JPEG 2000: 2.5
    JPEG-LS: 2.98
    L-JPEG: 2.09
    PNG: 3.52

    JPEG-LS is was usually the best, but PNG had a few really good sample that pushed its average up. Actually, these outliers appear important, because that is what really separates the codecs on this metric.

    Lossless Decoding Times, relative to JPEG-LS (big is bad)
    -----------------
    JPEG 2000: 4.3
    JPEG-LS: 1
    L-JPEG: .9
    PNG: 1.2

    This doesn't make JPG2K appear too impressive. What it does offer, however, is features. Like Region Of Interest (ROI) coding, good lossy compression, random access, and other goodies that some people may really care about. The report claims that png doesn't do lossy encoding, which is news to me, but it does appear to be one of their major selling points for jpeg-2000 over png.

    1. Re:comparisons to other formats by Fourier · · Score: 3, Interesting

      This doesn't make JPG2K appear too impressive.

      JPEG-2K is really intended for lossy coding, and that is where it shines. The lossless spec is included primarily because you can use the same algorithm for both lossy and lossless coding. The only real difference is in the choice of wavelet transform, which is irreversible (floating-point) in the lossy case but reversible (integer) in the lossless case.

      A better comparison pits JPEG-2K against the original (lossy) JPEG. According to a figure given in this paper, J2K provides roughly a 2dB PSNR gain over JPEG for a wide range of bitrates. At the low rate of 0.25 bits per pixel, this gain takes you from 25.5dB to 27.5dB; perceptually, that is a noticeable difference. At low rate, JPEG is also subject to blocking artifacts, so the perceptual problems can be even worse than the PSNR numbers would indicate.

      In other words, JPEG-2K is a Good Thing.

    2. Re:comparisons to other formats by MisterBlister · · Score: 2
      Correct me if I'm wrong, but isn't PNG designed to work with images that have large monochromatic blocks, things like cartoons? Again, I might have no idea what I'm talking about, but that was always what I had understood about PNG and GIF. Therefore, it makes sense that it would blow away someting like "target," while performing less well on something like "cafe."

      You're correct. PNG was created primarily to replace GIF, and as such it uses fairly standard compression techniques. It doesn't have a native lossy mode, though unlike GIF it does support high color images, and a full alpha layer (not just a colorkey, which is really all that GIF supports).

    3. Re:comparisons to other formats by spitzak · · Score: 2
      Actually PNG's predictive encoding is a lot better for real images than GIF's LZW. LZW is designed for repeating patterns and thus worked well for dithering patterns that were once popular for making "color" when displays often had only 16 different colors. It also works good for letters against a solid background, espeically computer-generated lettering from fixed bitmaps, not photos or scans of letters.

      Predictive encoding basically relies on assumming the first and second derivative of the image is very small. Ie that there are large areas of pretty even color, even though noise makes the pixels fluctuate such that there is no pattern for LZW.

      Compress random gray-scale images (gray scale because both PNG and GIF start with the same 8 bits) and it is pretty obvious that PNG compresses much better.

      Unfortunately people tend to ignore the fact that for color, GIF has to do a huge lossy step of reducing it to 256 different colors. It then compresses starting from 8 bits rather than the 24 bits PNG does and this 1/3 initial size more than makes up for the worse compression so many people think GIF is better.

      Also some screen shots have patterns in them. The biggest culprit right now is that strange halftone that Windows puts into the scrollbars, this seems almost designed to make sure PNG style screen shots are bigger than LZW compressed files.

  28. B SD-licensed JPEG-2000 implementation by datrus · · Score: 5, Informative

    Hey, I've implemented a JPEG-2000 codec using
    a BSD-style license.
    It's been tested at the MIT biodmedical department already for compression of medical images.
    It's available at http://j2000.org/.
    It would be nice to see this work in my favourite browsers.

    1. Re:B SD-licensed JPEG-2000 implementation by datrus · · Score: 2, Interesting

      I'm pretty sure there are no patent problems.
      All algorithms used in the JPEG-2000 standard can be used freely. (like IBM's MQ-coder)

      About the video codec: I implemented an H.263 and MPEG-4 compliant codec. But I didn't get paid by the opencodex guy, so I aborted the project. Still, if anybody's interested, I have some pretty good MMX and altivec optimised code lying around.

    2. Re:B SD-licensed JPEG-2000 implementation by t · · Score: 2
      I'm sure your code is spiffy great and all to you, but ultimately it is useless to everyone else. You have almost no comments. Here is the only real comment:
      WHY STEPSIZES WHEN NOQNT ?
      The other comments are various FIXME's. Utterly useless. There is no README nothing. Job security? I mean really, why have you bothered to release it?

      t.

    3. Re:B SD-licensed JPEG-2000 implementation by t · · Score: 2
      You should say that it shouldn't be too difficult to figure out if you have the specs and are really familar with jp2k. Looking at the code I can only assume that you only have support for the lossy 9/7 wavelet. You usage statement says to use -r rates but you don't explain that any further. Nobody else will understand what the means. Even if they spend copius quantity of time looking through the code. Most people will have a hard enough time figuring out that e.g., numgbits stands for number of guard bits much less what the hell a guard bit is and why is it set to 2.

      I didn't mean to sound so harsh, I'm just amazed. Do you always code like that? Very much anti-Knuth, comments are for wussies.

      And i'm curious why you have stepsize calculations in the example program.

      Ah I see, you have a -I option to set ir=1. That selects how to set your stepsize. You don't even have that switch in your example usage. This pretty much proves my point that it is extremely difficult to figure out.

      t.

  29. What's cool about JPEG2000? by Anonymous Coward · · Score: 5, Informative

    Several things, besides simply "good compression."

    JP2 uses wavelet compression such that an image is effectively compressed at various resolutions below the originally, independently. Not only does this allow a high level of redundancy removal (which is why wavelets are good in the first place) and thus high compression, but jp2 tags each of these sections (subbands) separately in the compressed file.

    So what? Well, a file with all of these sections is effectively a losslessly compressed image. However, this file can be further compressed (loss-ily) by simply throwing out some of these tagged sections! That is, you can make a "lossless" thumbnail image by keeping all the lower resolution subbands. Or, you can get a lower-quality (but smaller) fullsize version by throwing out some subbands at each resolution.

    Better still, this manipulation can be done without decompressing the original image. Simply using only certain tagged sections of the file.

    Consider this possible application of all this: Digital Cameras. A camera could take images at full resolution and lossless quality until the memory card starts filling up. Then, gradually as more and more room is required, it could quickly reduce the size or quality of previous pictures to make room for new pictures. Thus, you always have "enough" room for more pictures, provided you don't mind the quality reduction.

    Of course, there are numerous uses for web applications -- thumbnails and full-sized images could be the same file, provided the web server knows how to parse the image file. (Little or no computation necessary, just sending parts of the file)

    Anyways, JPEG2000 is very very cool.

    1. Re:What's cool about JPEG2000? by elflord · · Score: 2
      pardon my ignorance, but how is this different from previous versions of JPEG ? I heard that JPEG already used discrete cosine transforms, and saved space by doing something along the lines of throwing out some spectral components. Anyway, if you've got some details on the differences between this and the old jpeg, I'd be interested (and I suspect other readers would be)

  30. Re:Plugin for IE? by stripes · · Score: 2
    Changes sometimes need to happen, and given that by the time the change to 6.0 happened there was no plugin that I ever ran into that didn't have an ActiveX version, there's no reason for your ranting

    Yes but this change "needed" to happen because MS managed to become the big player, and didn't want people writing plugins that would work with MSIE and Netscape, they wanted them to write a MSIE only ActiveX control, and then decide the extra effort needed to support Netscape wasn't worth it.

    It's not like oh, say, dropping a.out because it doesn't support all the debugging symbols you might need, or it is hard to support shared libs with a.out...in that case you are really buying something for your pain. In MSIE's case they are getting something for your pain, and what they are getting is more pain for you.

    Not my idea of a good deal, but if you like it, go for it.

  31. Re:Plugin for IE? by NanoGator · · Score: 4, Informative

    "What a narrowminded and stupid thing to say. You will never update a browser that removes standard features? So in otherwords, you want your browser (/OS/all other programs etc) to be a collection of legacy junk which can never be changed for fear of alienating you?"

    Um, no. I don't want to upgrade to a browser by a company who wants to bend standards in their favor, leaving other browsers unable to cope. The advantage to Netscape Style Plug-ins over ActiveX controls is that they play in other browsers like Netscape (DUH!) and Opera. This isn't a case of an old standard no longer being followed, it's a case of MS changing the de-facto standard so that IE remains dominant. So no, I'm not willing to change browser/OS/etc over this.

    Now that IE doesn't support non-standard controls, this means that anybody who makes an IE plug-in is stuck making an ActiveX interface.

    My favorite browser is Opera. It doesn't support ActiveX. According to their site, it won't support ActiveX. Here's a quote:

    "Opera does not support ActiveX, nor does it support VBScript. There are three reasons for this:

    Opera Software AS is committed to supporting open Internet standards, recommended by the W3C, something neither ActiveX nor VBScript, being license issued Microsoft technologies, are.

    The second reason is much more simple: There's just not enough market demand for these technologies to warrant the cost of implementing them.

    In addition, some reports raise the question of how secure ActiveX is. It has been claimed that ActiveX has serious problems with security, and some even say that the problem is an almost complete lack of security. The same concerns have been raised about VBScript."

    So besides making me stick with an insecure plug-in interface, what other reason is there for me to go to IE6 or newer?

    "Changes sometimes need to happen, and given that by the time the change to 6.0 happened there was no plugin that I ever ran into that didn't have an ActiveX version, there's no reason for your ranting. "

    Changes? Sure! But to disable a widely used technology? Uh uh. Sorry. I'm not rolling over and taking that. True narrowmindedness would be if I were to say "Okay Microsoft, thank you for making the choice for me. You know more than I do!"

    As for not being able to get an ActiveX version of a plug-in, I can give you an example: The company I work for. (Who shall remain nameless.)

    IE 6's betas supported our plug-in just fine. And then, once it was released, I had customers telling me it no longer worked. Somewhere between beta 2 and release they removed support for it. Did they tell us (a registerred MS Developer...)? No. They just did it. Their knowledge base called the removal of Netscape Style Plugins 'a security feature."

    Interesting, I guess not being able to run as much stuff means less chance of security breach. Whatever. Maybe if MS had said "In 6 months when IE 6 is released, it won't support NSP's" Id have little room to gripe. But MS just did it. So my company (a startup company I might add) is forced to write an ActiveX control. We looked into it, and its not as easy as it may seem. For one thing, our product has a lot of web-based features that would all need to be rigourously tested. Since browser functionality is not our core focus right now, we don't have the engineering time to spend on it. Do our customers understand that? Only after I explain our priorities to them.

    The worst part is that IE doesn't give any clue as to what is wrong. The behaviour of running a NSP on IE is the same as not having a plugin installed at all! What a wonderful way to prevent MS from getting customer service complaints!

    In any case, thanks for calling me narrow-minded even though it's pretty obvious I know more about this topic than you do.

    Getting back to the original topic, I hope the JPEG2000 group releases a Netscape Style Plugin so I can use it with Opera. I am geninuinely concerned that what they'll do is release an ActiveX version because IE is the dominant browser, and that's it. If they do that, they'll be further supporting MS's dominance. Unfortunately, I can see JPEG2000 causing that if the images are really as compressed as they say.

    --
    "Derp de derp."
  32. Coming Soon to a PC near you! - NOT! by FaithAndReason · · Score: 2, Interesting

    Am I missing the joke - is this some sort of overdue April Fool's joke? Did this story get sent here by Mallett's time machine from last week?

    Or did /. just regurgitate somebody's press release?

    As far as I can tell with a quick google, nothing has been done with this standard since early 2000 (maybe that's why the standard name hasn't been updated, eh.) I wouldn't hold my breath waiting for widespread adoption any time soon...

  33. Re:Plugin for IE? by NanoGator · · Score: 2

    "I don't give a flip if it's a plugin, activex, or a fucking fred flintstone bird inside a camera...if I can still access the SAME content, and it still renders correctly, and perhaps renders more reliably and quickly, well, let them do what they will. "

    You'll give a flip when you decide to switch to a new browser (or a new OS that doesn't have IE on it) and half the internet doesn't work for you.

    I can't believe people are actually responding with "It's okay that the internet only works with IE!", did I wander off of Slashdot and not realize it?

    --
    "Derp de derp."
  34. PNG *is* a god-send. by Chasing+Amy · · Score: 2

    While you don't often see it "in the wild" as it were--except in some Japanese manga newsgroups where it's the standard since it's lossless--it's very often used when working with graphics. Unless you need to save with seperate layers, why use bulky formats like .PSD or .PSP when doing graphics work and needing to save your work losslessly, when .PNG is usually so much smaller? I save everything as .PNG for future work, and then when it goes up on the Web I can batch output crappier-quality .JPEGs.

    So, the PNG format is a resounding success among those who work with images, and then we dumb it down to JPEG or GIF for the end users.

    All that said, I don't see the JPEG2k standard really succeeding--now that more and more users are getting faster and faster connections, there's not that much need for the smaller filesizes. Combine that with the fact that users have to install a plugin to see them--and God only knows which browsers and what versions they may be using--and I don't see webmasters clamoring to adopt it, and if they don't adopt it in large numbers, the format will never catch on. So it's very iffy at the moment, IMHO, as to whether the new standard will ever replace the old--certainly not in 5 months from now, and probably not even in 5 years from now, since the need for file size savings keeps slowly evaporating.

    --

    Chasing Amy
    (We all chase Amy...)
    "The more corrupt the state, the more numerous the laws"-Tacitus
    1. Re:PNG *is* a god-send. by Aanallein · · Score: 3, Interesting

      All that said, I don't see the JPEG2k standard really succeeding--now that more and more users are getting faster and faster connections, there's not that much need for the smaller filesizes.

      However, at the same time that endusers are getting faster connections, more and more webmasters are starting to feel the very real pain of bandwidth costs. I think the adoption of smaller image formats will come more from their side.
      If jpeg2000 makes enough of a difference, I can see at least a very large percentage of graphics oriented sites switching - almost forcing the users to follow suit.

    2. Re:PNG *is* a god-send. by blamanj · · Score: 5, Informative

      But web pages aren't the only things digital images are used in. Think cameras.

      This site illustrates the difference in quality between JPEG and JPEG2K. You get essentially a 5x reduction in storage space without losing quality, and the type of artifacts aren't as annoying, either.

    3. Re:PNG *is* a god-send. by Yorrike · · Score: 3, Informative
      As a webmaster and web designer, I see the wide spread adoption of SVG and PNG as far more important steps than a new JPEG.

      SVG is the most fantastic vector based graphics format ever created. Not only is it fully scalable to what ever size you care to scale it to, but it's all done in XML, which means scripting graphics creation is nigh on basic.

      Since SVG is basically text, the file sizes are tiny! Add to this the fact that svgz (gzipped svgs) are part of the svg standard, and you end up being able to create fully interactive vector based animations weighing in at less than 1K (try this -it's a perfect example of how cool SVG is)

      As it stands now, SVG can only be viewed on IE and NS4 with a plug-in, but Mozilla supports it natively if you enable it ;) It's a more important standard to propergate than JP2 IMHO.

      On the PNG front: PNG is so much better than any other format for layout graphics on web pages. It's alpha tranparency and colour pallet is all you need (it runs circles around GIF). PNGs should be the internet standard for non vector graphics, but alas, IE does not render them properly (the colours get twisted and changed as far as I've experienced). If MS could stick to standards, it'd make the internet a whole lot better.

      Anyway, in conclusion, JP2 may sound nice, but there are much more important formats out there that need to be adopted before JP2, which will not only cut down the transfer sizes of graphics, but make web development just that much easier for people like me.

      --

      Looks can be deceiving. Or CAN they?

    4. Re:PNG *is* a god-send. by David+Eppstein · · Score: 2, Insightful

      It may be that we just haven't learned to see the JPEG2000 artifacts, unlike JPEG which we're much more familiar with.

      On the dpreview page, the highest-quality (1Mb) files of JPEG and JPEG2000 look very similar, but even at the next lower setting (568k) the JPEG2000 has started to blur the subtle texturing on the watch faceplate into smooth blankness. Maybe ok for web viewing but not what I'd want happening automatically when I save a full-resolution image from my digicam.

      That said, at anything below the 1M file size on that page, the JPEG2000's clearly look better than the corresponding JPEG's.

    5. Re:PNG *is* a god-send. by great+throwdini · · Score: 2

      On the PNG front: PNG is so much better than any other format for [...] web pages. It's alpha tran[s]parency and colour pa[l]et[e] is all you need (it runs circles around GIF).

      Yeah, too bad that alpha transparency is far from widely or uniformly supported among active User Agents. As far as color palette, PNG does permit more than 256 colors, but there are few instances where that many colors are needed *and* JPEG won't deliver superior compression, as most of those cases are of "photographic" elements better served by JPEG than GIF/PNG. On the Web, a smart program can create the illusion of >256 colors with 256 colors for indexed GIFs/PNGs.

      All PNG really has going for it when it comes to final/published Web graphics is improved compression in cases where the author may have used a GIF -- and, at that, not always, and often only markedly so with the assistance of something like PNGcrush.

      Paranoid Web publishers will only deliver PNGs to User Agents capable of rendering them (e.g. through Apache's MultiViews directive) -- which screws with many caches, killing most of the bandwidth gain of PNG in place of GIF. It's almost a zero-sum game for publishers looking to reduce bandwidth while still serving User Agents who don't understand PNGs at all.

      And let's not forget about broken transparency support, single-color as well as alpha channel.

      PNGs should be the internet standard for non vector graphics[...]

      Even though it doesn't really deliver substantial advantage over the existing JPEG standard for "photographic" images? JPEG may be lossy, but at today's screen resolutions it usually packs more acceptable image in fewer bytes than PNG.

      [B]ut alas, IE does not render [PNGs] properly (the colours get twisted and changed as far as I've experienced). If MS could stick to standards, it'd make the internet a whole lot better.

      And we're going to ignore completely broken PNG support in Netscape 4.x? Or any other User Agent that doesn't support PNG's alpha channels, gamma correction, etc. etc.? Please. MSIE may fall down with PNG, but so do about 95% of all User Agents in common usage today. As with any useful standard to hit the Web, PNG is hobbled by lingering, hasty "me first" implementations from developers, whether from Redmond or not.

      Gee. I suppose that will happen with JPEG2000, too.

    6. Re:PNG *is* a god-send. by great+throwdini · · Score: 2

      BZZZZZTT.

      PNG supports 256 [palettes] like GIF, and also supports full 24bit colour [...] I'm not sure if PNG supports an alpha channels at 24 bit.

      Er. Yes, my language was a bit too compact, wasn't it? Technically, PNG supports three pixel type representations: indexed, truecolor, and grayscale. Strictly speaking, truecolor pixels can be composed of 8-bit ["full 24-bit color"] or 16-bit ["fuller(?) 48-bit color"] samples. And yes, alpha transparency is supported *only* for truecolor and grayscale types, not indexed types. Images using the indexed pixel type must resort to "simple" transparency to emulate a "real" alpha channel, however.

      Recommended reading: W3C PNG Recommendation.

    7. Re:PNG *is* a god-send. by Tet · · Score: 3, Informative
      SVG is the most fantastic vector based graphics format ever created.

      SVG is a good vector format for the arena it was designed to serve (primarily, the web). For other uses, the text based markup is a tad bloated, and the fact that it's easily scriptable isn't a factor. It's not perfect, but the web needs a good, open vector graphics format, and SVG is a well designed option, in most ways. I just wish they'd get the fonts right. Of course, Flash has been providing web based vector graphics for ages. It's just that it was always aimed at presentation, and didn't take into account accessibility, searching, consistency of navigation and all the other things that we should expect a vector format to provide. In that respect, SVG is a significant step forward, and I hope it starts to gain widespread acceptance soon. But with even Mozilla not supporting it in many of the standard builds, it has a way to go before that stage.

      --
      "The invisible and the non-existent look very much alike." -- Delos B. McKown
    8. Re:PNG *is* a god-send. by Gid1 · · Score: 2
      SVG is the most fantastic vector based graphics format ever created

      I beg to differ. I personally think it's a real shame the Flare file format didn't gain widespread acceptance.

      It does really smart things to aid compression, such as interleaving 4-byte relative coordinates. A path is defined by an absolute origin, followed by relative coordinates for the rest of the path. These are then interleaved in XXYYXXYYXXYYXXYY format.

      For example, a square, x0=100 y0=100 x1=200 y1=200:

      Point 0: 0x00000064, 0x00000064
      Point 1: 0x00000064, 0x00000000
      Point 2: 0x00000000, 0x00000064
      Point 3: 0xffffff9c, 0x00000000
      Point 4: 0x00000000, 0xffffff9c
      Interleaved bytes:
      00 00 00 00 00 00 64 64
      00 00 00 00 00 00 64 00
      00 00 00 00 00 00 00 64
      ff 00 ff 00 ff 00 9c 00
      00 ff 00 ff 00 ff 00 9c

      Flare has a 'Start GZ Compression' tag, and that stream of bytes compresses *really* well.

      Since Flare is such a rich tagged format, there's already a 'Square' tag, which is just a specific case of n-sided polygon. You can also embed (un-gzipped) JPEG data, and a huge bunch of transparency and fill options.

      As far as ease of programming is concerned, I wrote a simple Flare InputStream/OutputStream pair in Java in about half a day with no previous knowledge of the format, and a wireframe displayer using Java2D in about an hour. The spec was clear and easy to understand.

      Unfortunately, the side-by-side comparisons Xara had aren't available any more, but they were stunning. A ~50K JPEG rendered logo from NBC's homepage was redrawn using Flare in about 5K, and (although different due to the artist's skills) was of the same visual quality, if not better.

      The Flare files on the Xara gallery have been sadly removed, but you can see how rich the format is from some of the samples: Microscope, Watch. I seem to remember these were less than 100K Flare files.

    9. Re:PNG *is* a god-send. by Glenn+R-P · · Score: 2

      I must be confusing people tonight. Did you not read this from the post to which you replied:

      Images using the indexed pixel type must resort to "simple" transparency to emulate a "real" alpha channel, however.


      Sorry -- I interpreted your "simple" to mean "binary".

      Simple transparency is effected through PNG's tRNS chunk, and yes, it does work just as you describe for indexed PNGs. Sufficient for Web work, but: (1) still not a true 8-bit alpha channel, though effectively interpreted as such; and (2) potentially far narrower in range than alpha channel support for truecolor/grayscale PNGs (8-bit v. 8-bit/16-bit).

      That's all true, but nevertheless you can do a variety of interesting things with it such as a 1-color PNG with 256 levels of transparency, 16-color PNG with 16 levels of transparency, down to GIF-style 255 colors with binary transparency using one index for a "transparent" color (except that one color could be partially transparent if you like).

      I think it is a crying shame that the most popular browser fails to support PNG transparency properly even though PNG has been around now for seven years and approved by W3C as the standard image format for the web 5-1/2 years ago.

      Glenn

  35. file extensions by Anonymous Coward · · Score: 2, Funny

    The extension for the new files will be ".jp2"


    I wonder what the Pope thinks about the file extensions being callled .jp2


  36. grapihcs-heavy? by Ravagin · · Score: 2

    This will not only make graphics-heavy web pages easier to download

    Oh great! Even more websites designed with the idea that Photoshop is a webdesign tool and that the best way to make a webpage is lots of massive images instead of text and styling.

    Mumble mutter grouse.

    Good thing it looks like it'll take ages to catch on.

    --

    Karma: T-rexcellent.

  37. JPEG 2000 looks like the right thing at last. by Ungrounded+Lightning · · Score: 5, Interesting

    I thought this was a good comparasion between JPEG and JPEG2000.

    Good one. Thanks for the link.

    Looks like JPEG2000 finally got things right for the human eye:

    - Higher compression ratios just gently blur details, rather than creating artifacts. Losing the extra information leaves the part that DID get through intact.

    - The text says the compression allows for progressive downloading. This implies that the coding scheme does something like working upward in spatial frequency - encoding the basic stuff first then sending progressively finer deltas. For a given compression ratio just stop the downloading (or file saving) when you have enough.

    - The compression seems to match eye processing so well that highly compressed (100:1) images actually look BETTER than the basic image. The features important to the eye (facial stuff, especially eyes) gets through or even enhanced, while unnecessary detail - including sampling artifacts - gets selectively blurred out. Something like the soft-focus filter in portrait photography. The only thing in the samples that got noticably worse at high-compression is hair, which just gets a bit blurry. (Meanwhile, JPEG looked like it had pixelated measles.)

    Of course the images selected for the demo could have been optimized for the compression scheme. B-)

    --
    Bantam Dominique roosters crow a four-note song. Once you've heard it as "Happy BIRTHday" you can't NOT hear it that way
    1. Re:JPEG 2000 looks like the right thing at last. by plastik55 · · Score: 2
      Of course the images selected for the demo could have been optimized for the compression scheme. B-)


      One of the images was the Lenna centerold, which has long been a de facto test for image compression algorithms.

      --

      I have a positive modifier on Troll. When I mod someone Troll their karma should go UP!

  38. Re:extension? what do we need the extension for? by cryptochrome · · Score: 2

    true enough. In a perfect world all relevant file data including type would be internal to the file itself, so it couldn't be screwed up so easily by changing the name or mistyping.

    Heck, I don't see why there should be any more than one file type for still pictures (or audio, or video, or indeed any media in general), with an internal marker indicating what the file format and compression is. Having to worry about changing a reference to a file (say on a web page) because you changed the file type and therefore the name is a pain.

    --

    ---If you can't trust a nerd, who can you trust?

  39. Better compression implies more bloat by edp · · Score: 2

    Unfortunately, one effect of better compression will be more bloat -- web pages with more graphics and more advertising. This is because with better compression, there is more information transmitted per byte, thus giving more value, so the decision about whether or not to include pictures tips in favor of more and bigger images. Thus the average size of a web page and all its components will increase.

    If you think the images are valuable, as many web designers seem to for incomprehensible reasons, that is a good thing. But if you do not value lots of images, that is a bad thing. So, better compression harms those with slower links, those who detest advertising clutter, and those who seek concise information rather than flashy presentations.

    (I am not opposed to better compression, just pointing out an unintended consequence.)

  40. To be redundant and sum up. by bons · · Score: 4, Informative
    If there's anything NEW (ie, less than a year old) on that site, I missed it.

    If there's any indication that this will actually be out in a few months, I missed it.

    If there's anything indicating JPEG2000 support for Mozilla, The Gimp, Paint Shop Pro, or Photoshop in the near future, I missed it.

    I've yet to see anything that indicates there are no more patent issues and that people can support this format without patent issues (Read "Can the Gimp ship with this?")

    Regarding Exploer PNG support:
    AlphaImageLoader Filter:
    Displays an image within the boundaries of the object and between the object background and content, with options to clip or resize the image. When loading a Portable Network Graphics (PNG) image, tranparency--from zero to 100 percent is supported.

    Just because I do miss it, I still see almost no support for the beloved fractal image format *.fif I think it's now part of LizardTech's line of image compression/fractal tools. If you think jpeg200 offers compression, then you missed the fif format completely.

  41. Re:Plugin for IE? by Moridineas · · Score: 2

    I think it's fair to say that ActiveX is a superior thing to netscape style plugins. for one, you don't haev to download and install, they just work. That's good for 99% of MS's customers. Netscape is pretty much irrelevant at this point anyway.

  42. And what's more... by KarmaSafe · · Score: 2, Interesting

    There was a dead link about "watermarking" on the page. Does this mean we'll be seeing "copy protection" built into images?

    I say we just refine the .png standard. Human eyes don't see blue well, just make it lossy (one time, saving again doesn't make it worse) in the blue spectrum.

    --

    ~ Why is there no reason modifier for overrated posts?
    1. Re:And what's more... by Sheetrock · · Score: 2, Interesting

      For what it's worth, I recall seeing a demo of this where they mentioned that watermarking was part of the features, though it was a year or two ago and it seemed more about identifying copyright on images in the wild (web pages? porn?) than it was about preventing copies from being made in the first place.

      --

      Try not. Do or do not, there is no try.
      -- Dr. Spock, stardate 2822-3.




  43. Backwards by mikeage · · Score: 2

    ...make graphics-heavy web pages easier to download...

    Nah, it'll probably make easy to download web pages more graphics heavy, if I know today's web designers...

    --
    -- Is "Sig" copyrighted by www.sig.com?
  44. New IE Exploit by AX.25 · · Score: 2, Insightful

    I can't wait for the new IE exploit using the jpeg2000 activeX control (sense IE now doesn't support netscape style plugins).

    --
    What is pirate software? Software for inventory of stolen treasure?
  45. Re:Smart Extensions by glwtta · · Score: 5, Funny
    1. less bandwidth.

    A few characters per file name - yes those couple of bytes will save gobs of bandwidth.

    2. Easier to type.

    How often do you actually type file names? I do it once - when I create the file, I think I can afford the few seconds.

    3. Backward compatability.

    With what??? I am willing to bet that whatever you dig up that requires 8.3 will not be compatible with the actual file format.

    I cringe when I see people have named the file some big long gobbledegook like bobbys_8th_book_report.doc when bookrep8.doc would have done just fine.

    Yes, that's a stupid name, and no bookrep8.doc is not better. Who numbers their bloody book reports? I think little bobby will get a bit confused a few years down the road when he gets to bookrp48.doc How about "steppenwolf report.doc"? or "glass bead game report.doc", I really do think I see how these are better than stpwlfrp.doc and glbegarp.doc

    --
    sic transit gloria mundi
  46. Comparisons with PNG/GIF by zecg · · Score: 2, Informative

    Comparisons with png/gif history are NOT valid here, although such ARE usually a foolproof tao of the karma-gatherer ;). Those who make them are probably not aware of the difference in quality/size ratio between wavelet compression and the current (pathetic) jpeg. It is not only "beefed up" jpeg, people. It is qualitatively different, using completely different philosophy and algorithms so smart that the FBI people probably got them from aliens in exchange for not drilling their testicles. They lied, of course - but the aliens delivered.

    What thrills me even more is the possible application of wavelet compression algorithms in 3D.

    See this for a dramatic flash-based demonstration of advantages - notice that it says 4kb!:
    http://www.luratech.com/index_e.html

    --
    .i lu doi ringos.star. xu do puku'aroroi dunli dopecaku leni virnu li'u
  47. Re:extension? what do we need the extension for? by SuiteSisterMary · · Score: 2

    It's still useful for a human being to be able to take one look at a filename and determine the type. I think 4 letter extentions are the maximum usable for that purpose, and 3 is good.

    --
    Vintage computer games and RPG books available. Email me if you're interested.
  48. Re:Hypocrite by rgmoore · · Score: 2

    WTF are you talking about? The poster specifies that it's fine to use the new version as long as it's supported. That is to say that it's unreasonable to prevent him from using the new version as long as it's accessable to others. That's a completely different thing from what MS did, which was to implement a new way of doing things specifically to prevent others from supporting it. There's nothing at all hypocritical about saying 1 and not 2.

    --

    There's no point in questioning authority if you aren't going to listen to the answers.

  49. A shipping browser plugin and a very good SDK by apago · · Score: 3, Informative

    LuraTech has been shipping a JPEG 2000 broswer plugin (and Photoshop plugin) for a while. I've had problems with their jp2 file format. It's a new and very complex standard so expect some startup pains. http://www.luratech.de/index_e.html

    Dr. David Taubman was one of the authors of the JPEG 2000 spec. His book on JPEG 2000 is now available. He has also released a very nice SDK for compressing, decompressing, manipulating and streaming JPEG 2000. It's called Kakadu and you can read more at http://www.kakadusoftware.com/. The source code for Kakadu is packaged with the book. There are demo images and software at this site also.

    1. Re:A shipping browser plugin and a very good SDK by t · · Score: 2

      Too bad that source code has some serious license problems.

  50. [OT] Re:Slow to change ... by GregWebb · · Score: 2

    Let's be honest, IE has a rubbish renderer, full stop. It's not just this.

    Two things scream out at me. One, I can reliably set up layouts with nested tables which, under IE, display in a way which is indisputably incorrect. Two, we have a bunch of machines at work which muck about with several sites we've produced. Essentially, IE doesn't render the images right. Occasionally it doesn't render an image at all (rare but has happened, and it doesn't leave a placeholder because it doesn't realise it hasn't shown it up) until the image is clicked on or scrolled off the screen and back on. More commonly, it sticks a suprious transparency in place of white on some images, or even effectively makes the whole image slightly opaque. When there's an image background, that gets messy...

    Bottom line, it's sloppy.

    --

    Greg

    (Inside a nuclear plant)
    Aaaarrrggh! Run! The canary has mutated!

  51. Interesting point. by Chasing+Amy · · Score: 5, Insightful

    You have an interesting point--bandwidth is getting more dear, now that the pyramid-scheme banner advertising revenue outfits have been going tits-up. However, I just don't see most website owners risking their livelihoods by implementing an image format which most of their customers, plugins or no, may not be able to read--particularly since so much of web layout is done using images these days instead of text.

    Think about it--how many users are set to automatically download plugins as needed? Almost none because of security reasons. herefore, some active decision is needed on behalf of the user to actually install the plugin or not. What will be the user's reaction if he goes to the site of WidgetCo, doesn't know what to do with this dialogue box about installing stuff (especially if he's been told be friends or company that installing strange software can be dangerous, or if he's been molested by the likes of CometCursor), says "No", and gets a page of big X's where all the buttons and banners should be? Well, it might well be to go to the site of WidgetBiz instead to get his widgets there.

    This is why I really don't see JPEG2k taking off. It's a risk most companies won't take--you don't want your users not being able to use your site. Look how long it took Flash to become as common as it is today--many years, and then only because it started shipping by default with Windows.

    I have no doubt that IE7 will have JPEG2k support--poor and half-hearted support. As with most Microsoft products it'll probably take the until the second major release to get it right, so let's say IE8 will have fully implemented JPEG2k support out-of-the-box. How many years will it be until that's out? And how much further along will available bandwidth be by then?

    I could well be wrong, but I just don't see this taking off. Unlike Flash did, it doesn't bring anything spectacularly new to the table--a few people have been talking about the visual effects you can get using wavelet images, but those same effects are common (if poorly implemented) Flash effects today, in addition to the many other effects Flash does. So that leaves us with the better compression over JPEG as its big marketing point...and I just don't see that being enough to get website owners to risk alienating end users. So *at least* until great JPEG2k support ships with IE out of the box, and that version of IE is common, I don't see JPEG2k going anywhere except into some niche markets.

    --

    Chasing Amy
    (We all chase Amy...)
    "The more corrupt the state, the more numerous the laws"-Tacitus
    1. Re:Interesting point. by Tumbleweed · · Score: 3, Funny

      > a risk most companies won't take--you don't
      > want your users not being able to use your site.

      Judging by the state of usability of the vast majority of sites, I'm thinking that most companies couldn't care less whether people can use their sites or not.

    2. Re:Interesting point. by budgenator · · Score: 2

      I remember a magazine artical at least 5 yrs ago where the author was ranting about the superiority of wavelet, loss-less compression compaired to jpeg compression. Points made about it included lossless compression, and get this integer math much faster for the end-user.

      So why jpeg2000 all of a sudden,
      1 loss-less compression giving users better pictures helps,
      2 better compression ratios conserving band-width to keep down the pesky band-width charges helps,
      3 but I'll bet a donut against the whole that it's about the Seminar papers on watermarking and security relating to JPEG 2000.
      Think digital content management here. Imagine S2048 computers wouldn't display porn images stored on the hard disk, only from the website. Disney will like this, no more storing mickey or goofy on the 'puter for the kids; well you get the idea.

      Most websites don't even properly check the browser for plugins anyways, they just expect them to be in the default windows instalation location and look there, that's why 3/4 of the website pop-up a plug-in down load windows for Linux users even when we have the correct plugins installed. It's easy to send the correct images to each browser using DHTML techniques, we have to do it for javascript bugs all the time anyways!

      --
      Apocalypse Cancelled, Sorry, No Ticket Refunds
  52. Re:Plugin for IE? by stripes · · Score: 2
    I think it's fair to say that ActiveX is a superior thing to netscape style plugins.

    That may be, but that alone isn't a reason to drop support of the plugins.

  53. Re:extension? what do we need the extension for? by SuiteSisterMary · · Score: 2

    I fully agree that the file extention should be the last thing a program bothers checking, but extentions are still good for human use. What you're saying could be applied to CDs; cases should all be blank, just look at the CD inside. And you're correct, the wrong CD could be in a given labled case. But that doesn't matter; it's not the end-all and be-all of file indexing. It's just a useful thumbnail.

    --
    Vintage computer games and RPG books available. Email me if you're interested.
  54. jpeg 2000 vs PNG by neurojab · · Score: 2, Informative

    Yes this is karma whoring a little, but it's a good article

  55. Metadata Section by Camel+Pilot · · Score: 4, Interesting

    I hope they have added a metadata section where data like author, date, etc could be attached internally to the image.

    I always thought it would be cool if your digital camera could include the settings (fstop, exposure time, ISO, etc, compression ratio) along with data, time and author directly in the image file.

    1. Re:Metadata Section by hyoo · · Score: 2

      My digicam's jpeg photos have meta data in them and they can be viewed in Windows XP by going Properties -> Summary -> Advanced. The linux desktop environments will copy that feature soon (if they haven't already).

      Things that are recorded (for my Sony DSC-F707) are:

      - width/height
      - horiz/vert res
      - bit depth
      - frame count
      - equipment make
      - camera model
      - color representation
      = flash mode
      - focal length
      - f-stop
      - exposure time
      - iso speed
      - metering mode
      - light source
      - exposure program
      - exposure compensation
      - date/time taken

    2. Re:Metadata Section by slim · · Score: 2
      Other replies to this were kind of hazy ("You can get at the metadata through Explorer")...


      JPEG allows arbitrary headers; one such header is the EXIF header which most digital cameras will include. This includes stuff like date and time taken, focal length, etc. The problem is that since it's an
      extension of JPEG rather than a mandatory part of the standard, any software is free to ignore the EXIF header, and neglect to preserve it when modifying the image. For example, take a JPEG from a digital camera, with date and time helpfully included in the EXIF header... run ImageMagick "mogrify" on it; perhaps to resize it or to change the JPEG compression ratio -- EXIF header disappears (you can use jhead to get around this.)

      My understanding of JPEG2000 is that the standard specifies a header containing XML metadata. Evidence here.

      I'm very keen on the concept. It makes sense that in a single (standard format) file I should be able to store a picture, technical details about it, free text annotation, etc. such that for example, a really simple bit of CGI could present it as an album.

    3. Re:Metadata Section by Glenn+R-P · · Score: 2

      JPEG allows arbitrary headers; one such header is the EXIF [exif.org] header which most digital cameras will include. This includes stuff like date and time taken, focal length, etc. The problem is that since it's an extension of JPEG rather than a mandatory part of the standard, any software is free to ignore the EXIF header, and neglect to preserve it when modifying the image. For example, take a JPEG from a digital camera, with date and time helpfully included in the EXIF header... run ImageMagick "mogrify" on it; perhaps to resize it or to change the JPEG compression ratio -- EXIF header disappears

      Recent versions of ImageMagick preserve the EXIF header. This is a FAQ on the ImageMagick mailing lists: why is my thumbnail 13kbytes instead of 3kbytes like the file that other applications produce? A: You have to remove the EXIF profile (which is actually encoded as a JPEG APPN1 tag) explicitly. The same goes for IPTC (newswire info) and ICC color profiles.

      Glenn

  56. The Relevant Entry by Sentry21 · · Score: 5, Interesting
    ------- Additional Comment #14 From tor@acm.org 2001-07-31 10:47 -------

    Here's a summary of the jpeg2000 situation that I wrote up, but never made it into bugzilla:

    You might want to ask Tom Lane, head of the Independent JPEG Group, for his opinion.

    It seems that adding jpeg2000 support would get us involved in a legal mess. If you look at appendix L of the jpeg2000 draft, there are 22 companies who believe that implementing the spec may require use of their patents. From http://www.jpeg.org/CDs15444.htm :

    Particular attention is drawn to the use within the standard of selected technology or algorithms which are claimed to be protected by national and/or international patents. In the case of technology submitted for consideration by JPEG for incorporation in Part 1 of the standard, the JPEG committee believes that the individual organisations concerned will make available licences to use this intellectual property, on a royalty- and fee-free basis, under specified conditions which may apply only to conforming implementations of the standard. These conditions are available on application to the organisations concerned, which are listed in an Annex to the document.

    It is of course still possible that other organisations or individuals may claim intellectual property rights that affect implementation of the standard, and any implementors are urged to carry out their own searches and investigations in this area. The JPEG committee requests any organisations or individuals claiming (or being aware of claims) that any of the committee drafts available for download here infringes other intellectual property rights to provide information and/or evidence to substantiate their claim to the JPEG Convener in the first instance.


    Moving on to more practical considerations, there is one open (sort of) C implementation of the jpeg2000 standard that I'm aware of, Jasper:

    http://www.ece.ubc.ca/~mdadams/jasper/

    The licensing terms are specified in this document:

    http://www.ece.ubc.ca/~mdadams/jasper/LICENSE-1.00 0

    While I'm not a lawyer, the impression I get is that once ISO officially publishes part 5 of the jpeg200 standard we're free to use the library as we like.
  57. Re:extension? what do we need the extension for? by dvdeug · · Score: 2

    Heck, I don't see why there should be any more than one file type for still pictures (or audio, or video, or indeed any media in general), with an internal marker indicating what the file format and compression is.

    Ever heard of TIFF? That's basically what TIFF is, a picture format that lets you specify compression type, and pretty much everything else, inside the file. Why don't people use TIFF much? A big part of the reason is that there's so many options nobody supports them all, so you have to be careful when exchanging TIFF files that all sides can read them. Also, whereas a PNG's data is always sorted in an order easy to display, a TIFF can be in arbitrary order.

    That is, the main advantage PNG has over TIFF is that you know what's in the file and that it will be easy to display. Your format would have all the problems of TIFF, except that instead of writing one reader for TIFF's elegant internal format, you have to write an endless stream of readers for an endless stream of internal formats.

  58. Stupid names by t_allardyce · · Score: 2, Insightful

    Are the three extra 0's really necessary? why is it called JPEG2000 when the year 2000 was 2 years ago? why do people insist on stupid marketing hype names? why the f/* can't it just be called JPEG v2 or JPEG2? WHY? This is the problem with our world, just like iBook and easyJet, why do people have to come up with this out-dated, over-used, "oh I'm so arty" bull shit? It's not cool, its not fun. Names don't suddenly become boring and grey if you don't string words together or not capitalize the first letter. We're not writing code, and most of the people who do come up with these names are not really geeks so they don't have any excuses such as 'I never name variables with spaces' or 'I never capitalize names or 'i's'. Lots of systems don't have problems with spaces (especially Win. 9x where I see way to much of this) anymore so why do people do it? its just annoying to the point of making a perfectly sane person write a long post ranting about it.

    I wouldn't mind normally, but if this is going to be used for the next 10 years, lets not give it a stupid name.

    I'm sure this has already been mentioned but I couldn't be bothered to go through 200 posts.

    Now I must prepare to be modded down

    --
    This comment does not represent the views or opinions of the user.
  59. not meaning to be clever or anything... by rcs1000 · · Score: 2

    but... surely .jpeg2000 would be more accurate

    --
    --- My dad's political betting
  60. Re:extension? what do we need the extension for? by dvdeug · · Score: 2

    I have a file of OCR'ed pages from a book, all UTF-8 text, all named *.txt. file correctly recognizes 226 out of 229. The other three it seems to believe are "MSX game cartridge dump"s. So if I'm working along through the book in your file manager, I get to these pages, and the file manager opens up a game emulator, which will then spaz out on poorly scanned poetry.

    The problem is not so much that file is wrong, it's that file is unpredictably and unfixably wrong. If I have a JPEG named foo.txt, then I know why stuff isn't handling it right, and can fix that easily. If I have a text file named foo.txt that file thinks is a "MSX game cartridge dump", I can either change the data (which is unacceptable) or change the magic (which has further unpredicatble results, especially if I have MSX game cartridge dumps somewhere.)

    So, no, when I tell the computer a file is a text file, I don't want the computer second guessing me. All it does is add frustration to my day.

  61. Re:Smart Extensions by Zalgon+26+McGee · · Score: 2, Insightful

    Er, shouldn't that be:

    /usr/bobby/school/english/reports/steppenwolf . oc

    The directory structure should be descriptive as well, so the filenames can be trivial.

    --

    ---

    Book(n): Utensil used to pass time while waiting for the TV repairman

  62. What's the patent situation? by mmusn · · Score: 2

    Is JPEG2000 an open standard, or is it encumbered by patents? Will open source implementations be possible or does someone need to be paid licensing fees?

  63. Re:Regarding incorrect punctuation in a story by WasterDave · · Score: 2

    To Whom It May Concern:

    Sadly, nobody. You're lucky if it's spelt right.

    Dave

    --
    I write a blog now, you should be afraid.
  64. Re:Plugin for IE? by NanoGator · · Score: 2

    Tell that to all the Mac, Linux, and Opera users out there.

    --
    "Derp de derp."
  65. Yenc by Chasing+Amy · · Score: 2

    Yenc is a different matter entirely--it's taken off on USENET because it allows faster uploading and downloading for those who transfer massive amounts of binary data by about 33%. That's significant because the hardcore binaries group users leave their machines connected an ungodly amount of the time to their NNTP servers, sucking down pr0n by the thousands of JPEGs and mp3s and videos by the megabyte.

    In such an environment Yenc encoding instead of UUencoding makes a *very* significant difference. However, the people who are hardcore USENET users are *not* the same as those who are average Web users. Huge difference. Yenc got so big so fast because the hardcore users have the clout in USENET--they're the ones who post most of the content, and if you don't Yenc, you don't get their content.

    The Web is completely the opposite of this model--it's a lowest-common-denominator place, where the average end user is the target market and competition between websites is fierce. In the binary USENET groups there are few content providers and many leeches whom no one cares about, with the content providers (posters) having near-total conrol. On the Web there are many content providers, all vying to get as many eyeballs and consumers as possible--the average consumer counts big.

    So, any content provider who switches to Yenc on USENET doesn't have to care at all about the dork who wants to keep using an outdated OE to access newsgroups--his audience is his fellow posters, all of whom know about and are starting to use Yenc too. On the Web, a content provider who switches to JPEG2k is risking financial ruin if too many of his customers use software that refuses to view .jp2 images.

    HUGE difference.

    --

    Chasing Amy
    (We all chase Amy...)
    "The more corrupt the state, the more numerous the laws"-Tacitus
  66. Re:Plugin for IE? by NanoGator · · Score: 2

    "Microsoft is the company that supported both plug-in interfaces for a long time, but Netscape only ever supported their own parochial nickle-and-dime plug-in interface, which totally sucks. Get your facts right. "

    First off, I think you present good thoughts, although you did aim them as an attack towards me, hence the 'get the facts right' comment.

    Tell you what though, I'll present you a 'mudslinging-free' response. First, though, I never ever ever said that the NSP interface was superior in any way. The benefit to it that I give any care to is that it works with nearly every browser out there. If it's clunky, fine. I never made a case that it wasn't. Because of that, nearly everything you said in your post had nothing to do with what I said. The reason I posted Opera's comments on the matter was that it strengthened my case that not everybody wants to go ActiveX just because MS says so. Their comment about security got my attention. I didn't think I needed to elaborate on it because I thought it was pretty obvious why ActiveX is a security problem, but I guess I need to explain it.

    Any app that supports ActiveX can call any ActiveX control. When we had an ActiveX control, emails in Outlook, for example, could call the control and activate it. Pretty snazzy, eh? Well that exact same feature that I just described means that e-mail can be a launching mechanism for ActiveX controls. Uh-oh, can you say vulnerability? All somebody has to do is create an ActiveX control that has a backdoor in it. And then, to activate that back door, they have so many ways of doing it it's not even funny. They could send an email to trigger the backdoor, they could create a webpage with specific HTML to do it, and so on. Before you tell me this isn't possible, consider that the reason MS is hit so hard by virsues is because it has too many features that are easy to exploit. All it takes is a creative mind and time to do it. Is it as easy with NSP? I'm no developer, but your case that NSP doesn't have a whole lot of features lends itself to the idea that no, it's not as easy.

    You are correct that I didn't post my quote very well. I apologize for that. I have a bad habit of posting before reading. You want a link? Fine, here it is:

    http://www.opera.com/support/supsearch/supsearch .c gi?options=index&name=150

    Pardon me for not doing that right away, thought I'd save you all the trouble by copy/pasting it. Notice it's on Opera's site.

    As a plug-in developer (I'm not personally one, but my company used to be...) I don't care who implemented things better. It's a matter of supporting our userbase. Gee whiz, it certainly would have been grand of Netscape to support ActiveX. They didn't. And when we started, it was 50/50 Netscape and IE. In other words, we had to make the choice to support one or the other. We didn't have the resources to do both an ActiveX control and a Netscape Style Plugin. We *tried* but it was very difficult to maintain consistency across them both. It turned into an engineering-moneypit. We needed two different engineers to keep both plugins going. With the NSP interface, we were able to keep it to one. Could better management have eased that problem? Oh yeah, I don't doubt that. Remember, though, that this is a small company and we had to do with what we had.

    There are support problems with that as well. It takes a lot of HTML code just to throw up an ActiveX control in a web page, embedding an object is far more simplified. Technical support was a problem, particularly when some people didn't realize they had to play with their security settings from time to time to get it working.

    For my company in particular, the Netscape Style Interface was *our* best choice. Keep in mind, this was a company of like 15 people. Also keep in mind that the interface is a WC3 standard. This means that future browsers down the road, in theory, should be supported. I was able to get our plug-in to work in Opera. We certainly didn't want to close any doors. When you're a big company, you can make choices like that and call it 'policy.' When you're a 15 person company, you want to do absolutely 0 to piss anybody off. If you've never worked in a company that small, don't tell me I'm wrong.

    So yeah, IE supported them both, and yeah Netscape flubbed the implementation of it. So what? If MS was so in the right to drop NSP support, how come they did it just before releasing IE6? How come the only real update to IE 5.5 SP 2 was to take away NSP support?

    Why didn't MS just say "This is an old standard. We're dropping it in the next release of IE in a few months, please be prepared."? This is the part that offends me the most! If MS had done that, I wouldn't be whinging now. This thread would not exist.

    --
    "Derp de derp."
  67. If it wasn't preinstalled years ago it's out. by TheMCP · · Score: 2

    Look, I'm a web consultant, I work with a lot of clients and see a lot of attitudes about new technologies, and basically the rule at the moment is that if it wasn't part of the standard distribution of Netscape 4.0 or IE 4.0, you can forget about it. Netscape 4.x and IE 4.x still have just barely enough market share that organizations refuse to abandon 100% support of them.

    I think they'd still be trying to demand complete support of IE 3.0, market share be damned, except that it wasn't Y2K compliant. (I think it can still be run, but doesn't work right.)

    If I went to a client and told them "use this new image format, it'll save you 90% of your present bandwidth usage, but all of your users will have to install a plugin," they'd fire me for incompetence and use the money they had been paying me to buy more bandwidth.

    It doesn't matter how much better the new format is. If it requires 10% of users to install a plugin to use a site made with it, companies won't even consider it. When 95% of users have it preinstalled companies will think about it seriously, and companies that really *need* it will go for it. The rest will worry about losing 5% of potential customers and decide against it. When 99% have it preinstalled, they'll probably use it and not worry about it, unless it has been too long since the technology first came out and they've become convinced that there must be something wrong with it because nobody uses it, like DHTML. (DHTML is now catching on, but I still run into clients who insist that I musn't use it because it doesn't work... while telling me that HTML, Javascript and CSS positioning are just fine.)

    1. Re:If it wasn't preinstalled years ago it's out. by Tet · · Score: 2
      The rest will worry about losing 5% of potential customers and decide against it.

      You so don't have a clue about how the net works. If companies took the above attitude, then I'd be a happy man. For a start, more web pages would work in my browser of choice. Sadly, the mentality goes something like "87% of our hits come from people using IE, so that's what we'll support. The effort needed to make the site work properly for the rest isn't worth the development time, which could be better used elsewhere". Hell, a lot of compaies aren't even aware that non-IE browsers even exist (no, I'm not joking). I'm having to fight this attitude even within my own company at the moment. I've raised change requests to get the site fixed, and they've been assigned low priority. Even after pointing out that they're losing customers, it's still deemed less important than other things.

      --
      "The invisible and the non-existent look very much alike." -- Delos B. McKown
    2. Re:If it wasn't preinstalled years ago it's out. by TheMCP · · Score: 2

      You so don't have a clue how consulting works. If a client says (to quote your example) "87% of our hits come from people using IE, so that's what we'll support. The effort needed to make the site work properly for the rest isn't worth the development time, which could be better used elsewhere", I point out that I already *have* working code for Netscape and Mozilla and it's faster to implement using my cross-browser API than to write custom IE-only code which will lose business for them.

      The fact remains however that they want support for IE 4.0, not IE 6.0.

      If I could drop support for three year old browser technology I'd be really happy about it, I can do really cool stuff with the latest tech, but there are still too many people using browsers they downloaded years ago. Fortunately that number is slowly diminishing... someday I may even be able to get away with supporting only browsers from this century!

    3. Re:If it wasn't preinstalled years ago it's out. by TheMCP · · Score: 2
      I'm currently trying to explain that using a cross-platform design would automatically give us support for IE4 and NS4, but it's an uphill battle...
      I'm currently just explaining that AOL seems to be planning to go with Mozilla real soon now, so if the site isn't written based on standards they'll lose a whole lot of customers or have to do the whole site over again. It works well.
      Really? We want it because we're getting support calls from customers telling us IE4 doesn't work. But IE6 users are generating nearly 25% of our hits, compared to 2.3% for IE4.
      I haven't checked the 4/5/6 IE ratio lately. I probably should with that kind of numbers... IE 4.5 on the mac is such a piece of garbage that if I could just tell everyone "IE 5 and up" it would make my life a lot easier.
  68. Re:Plugin for IE? by NanoGator · · Score: 2

    "Things like the crossover plugin alleviate the pain of much of these problems, of course. Alternatively your vendor could take the time to write a bridge for ActiveX controls."

    We tried that, didn't work initially. If we find some more time we'll investigate it further.

    "If that's not enough for you, then maybe you should find something to do that doesn't involve computers, as you're clearly not ready to accept the realities of them. "

    The reality is that MS is going to own everything. No, I don't want to accept that. I conceed that having IE be the dominating browser out there is better for the end users. Consider the price we pay for it though. Personally, I like having choice.

    I switched to Opera because a.) it has some really nifty and useful features, b.) it's far easier on my memory resources. I guess I should just stick with MS though, that way I can buy a brand new computer every 1.5 years just so I can do the same stuff I've alwasy been doing. Why not? I have money to burn on porn surfing.

    --
    "Derp de derp."
  69. The debilitating effect of Microsoft, again by leonbrooks · · Score: 2
    The extension for the new files will be ".jp2"

    Yet again, a filetype goes from reasonably self-explanatory (.jpeg2) to cryptic (.jp2) in order to fit into Bill's broken inherited-from-CP/M-80 filesystem. They merely follow in the fottsteps of their predecessors (e.g. .text -> .txt; .voice -> .voc; .common and .command -> .com; .html -> .htm; .htmls -> .hts and so on).

    I guess I should be grateful that it's not .jp, where it would cause the same problems from Japan that PERL (.pl) does for Poland. The .pl wasn't Microsoft's fault, for a refreshing change, it was just laziness. Perhaps we should petition Larry for an official change to .perl?
    --
    Got time? Spend some of it coding or testing
  70. There is a brand new market to adopt it... by NanoGator · · Score: 2

    I think JPEG2000 COULD take off. (notice I'm not saying would yet...)

    There's a new market out there that is starved for bandwidth. The Wireless-PDA market. I think there is a wireless Internet Modem out there running at roughly 19kbps. A 5x reduction in size (that somebody else in this thread mentioned) would have a humungous impact on the ability to use these devices. If that's the case, then sites setting themselves up for PDAS would be quick to adopt JPG2k, assuming that the PDA's or Phones connecting to them could use it.

    Lets say that happens. Let's say somebody like AvantGo takes advantage of it. It wouldn't take long for JPG2k to reach such popularity that the newer browsers start to support it.

    It wouldn't be hard to do that. If JPG2k uses a different extension, then it'd be trivial to write code that assigns an alternative extension if the browser supports it. That'd be kind of neat, actually:

    "if you want this site to come down faster, download the latest browser."

    Hmmmmmm...

    --
    "Derp de derp."
  71. Smart server format? by rwa2 · · Score: 2, Interesting

    We should have a server that sends the appropriate file type depending on the client request. So if Apache gets a request from an old version of Netscape, it'll send the picture compressed as .jpg/gif, if it gets a newer Mozilla, it'll send .jp2/png, if it gets a PDA, it'll send a 16-color greyscale, etc.

    The server is probably a good place to do this (maybe with some mod_rewrite hack), since it could be responsible for caching heavily-requested conversions.

    Anything like this exist? Similarly, I've always wanted to find some nice way to keep my photo-album online in the highest quality, but only send scaled-down images to casual visitors (as well as thumbnails). http://ids.sourceforge.net/ looks like it comes the closest to this kind of thing, but looks a bit too server-heavy (doesn't seem to support caching).

  72. I did alot of image testing with J2K- by purduephotog · · Score: 2

    - and found it to be an incredible codec.
    Some of the really really neat features are 'streamable' files- want a thumbnail? Yank off the first 1k of the file. Want an 8x10? Grab the next 500K. Want the full thing? Pull the remaining chunk.

    Better still, you can 'order' the file- give an 8x10 as only 30% quality, which is quite good, with the first 10% of the file... or stream a bit more and get better quality. IE the more you can afford to wait, the better the image will look.

    Of course there's also the compression and support for large coulor spaces (do we have to talk about file formats and function again? :P), not to mention a more robust error handling and inclusion of data to tell if you 'cropped' a file

    Also, block size- jpg was limited to 8x8 chunks- j2k starts at 64x64.... so as you can imagine, a large bit of data can be compressed into a very small amount if you are sampling at 64x.

    I can not WAIT till this codec is accepted by the industry- there is so much potention it's killed me not to have it available sooner.

  73. No more GIF's! by IGnatius+T+Foobar · · Score: 2

    Look, now we can do compressed, lossless graphics without GIF's! That means there's no more need for the Unisys LZW patent ---

    We have the way out!

    --
    Tired of FB/Google censorship? Visit UNCENSORED!
    1. Re:No more GIF's! by T-Punkt · · Score: 2

      Errm. For some years now we have PNG and virtualy every graphical browser in use today displays is---but people still use GIF so I doubt JPEG2000 will change it since PNG hasn't already.

  74. How good is the free DjVu encoder? by Adam+J.+Richter · · Score: 2

    The web pages for djvu talk about the GPL'ed version including a decoder and a "simple bitonal (black-and-white) encoder" and a "very simple color encoder." This makes me wonder how the free encoders are and how they compare in compression and speed to other free encoders, such as those for jpeg and png.

    A detailed positive answer to this question might make it worthwhile to more people to risk a couple hundred dollars of their time to try to install DjVu.

  75. Re:Testing it out (formatted this time... :-P) by t · · Score: 2
    Well considering that you said nothing about the source image, one serious problem with what you did is called transcoding. The same problem occurs when people convert mp3's to ogg's. If you have some wacked jpeg with high frequency compression artifacts everywhere then transcoding will fuck up. Try a losslessly compressed original next time. And pretty much 99.999999% of all jpg's are lossy since no one supports the lossless version.

    t.

  76. Re:Photoshop plugin "only" 79$ by Mika_Lindman · · Score: 2, Interesting

    What the hell, plugin for Photoshop costs 79$ ?! Does this mean that there'll never be FREE jpeg2000 encoder? That would kill jpeg2000 before it even gets started. I would never pay that much for image compressor, no matter how good it is.

  77. Slightly unfair by EnglishTim · · Score: 2

    Longer extensions work just dandy with Windows, and have done for seven years - there's no reason why people shouldn't use the extension 'jpeg2'

  78. Hey, that's faster than Mozilla. by Artifice_Eternity · · Score: 2

    Heheh.

    :)

  79. What's missing from the comparisons by billstewart · · Score: 3, Interesting
    The comparisons pointed to in the main articles (including the PDFs one or two layers deep in) are missing a couple of things:
    • DEcompression speeds - yes, compression is usually the hard part, but it's helpful to know decompression speeds as well, since realistically most images will be decompressed far more than one time. Will it be fast enough for browsers to decompress in real-time on cable modems with 500MHz machines, or will it be dog-slow compared to download time even on 56kbps modems on 5GHz machines? Is it much faster or slower than existing JPEG?
    • Color depths beyond 8 bits - all the reviews used 8-bit color depths, which is fine for the previous generation of scanners and not too bad for monitors, but under-$200 flatbed scanners are now doing 48-bit pixels (so 16 bits/color) as well as more dots per inch. How well do the new compression algorithms support them? How much does this affect compression speed?
    • Conversion from JPEG, for digital cameras and scanners? Many input devices are smart enough to compress their images using JPEG, but especially for cameras, won't have the horsepower to do JPEG-2 compression. How well will the new algorithm support recompressing pictures originally compressed with JPEG?
    • Also, will browsers be able to do progressive decoding, so they can start by displaying rough versions of the image and gradually refining it, or will this be a compression mode nobody bothers using like it seems to be for JPEG?
    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
    1. Re:What's missing from the comparisons by Wesley+Felter · · Score: 2

      ISTR an EE Times article about the race to come up with J2K ASICs to do compression for digital cameras; this would solve the horsepower issue.

  80. Unix System Resources is a backronym by amorsen · · Score: 2, Interesting

    /usr was where the user files were kept, way back when. Then one day, someone ran out of space on their root disk... The solution was to create a user called "bin", give it a home directory /usr/bin, and put the less important binaries there.

    These days when disks are enormous and logical volume management ensures that you can just add whatever space is necessary where it is needed, we should get rid of /usr. The only argument that still works in favour of /usr is making it a network drive. The people who do that will have to customize a bit when the rest of us drop /usr. I am sure they will hate me, both of them.

    --
    Finally! A year of moderation! Ready for 2019?
  81. Re:extension? what do we need the extension for? by cryptochrome · · Score: 2

    What I'm talking about is comparable to the current digital video scene, specifically the semi-open architectures like Video For Windows, Quicktime, and MPEG4. In those cases, producers generally want to worry about codecs (compression/decompression modules) as little as consumers, so a few select ones predominate at any given time until better ones come along. Thus while the stream of internal formats may be endless, it's actually a slow but steady stream. In the better architectures, all codecs are registered and on file with a central server, so if you don't have the necessary codec you can download it automatically. If you really wanted to, you could even include the necessary codec (or whatever) in the file, with a properly designed architecture.

    TIFF could be adapated to do all of this with a little effort. AFAIK the main thing holding it back are poor implementations of the TIFF specification and possibly Adobe's ultimate control. MPEG4 is supposed to do for video what I am suggesting, and is actually able to handle all sorts of multimedia data besides mere video. The only thing I worry about with these formats is the overhead they need to be able to specify so broadly.

    --

    ---If you can't trust a nerd, who can you trust?

  82. That's pretty rough by bill_mcgonigle · · Score: 2

    The guy writes some working code and gives it away for free. The spec is the documentation for the standard, and anyone who can understand code can figure it out if they want to, but probably won't need to because he has an API, and you rip him a new one for this? That's harsh. This code is hardly 'uterly useless'. In fact, it's the only thing I've seen without Luratech all over it and a generous license to boot. Oh, mabye you work for Luratech. Sorry.

    --
    My God, it's Full of Source!
    OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
    1. Re:That's pretty rough by t · · Score: 2
      The spec is only available to deep pockets. If he's coded this then he must have the specs. And no, you can't look at some bits of code and understand what for example a trellis quantizer is doing. Not any easier than getting a paper on it and writing it yourself. And if anyone is seriously going to run this software then what happens if there is some mysterious bug that they can't fix? Do you expect me to believe the code is perfect?

      Your argument fails just like the video manufacter that tried to give an open source version of their driver by running the code through the pre-processor first. People took one look at that and said it was rubbish.

      Or how about the other guy who said his company wanted to release their code after running it through an obfusucator. Changing every variable and word with some random characters?

      And what the hell is the deal with luratech? If you go to jpeg.org you'll see that there are 3 other companies supplying code. There is jasper which seems to be pretty good.

      And obviously you have not worked with jp2k otherwise you would know that it is more complicated than saying give me an 80% quality image.

      And no I don't work for anyone.

      t.

    2. Re:That's pretty rough by bill_mcgonigle · · Score: 2

      Yeah, I have worked a bit with JPEG2000, and other wavelet-based compression systems, but what does that have to do with anything? You're trying to rationalize your attack on this guy by attacking my credibility?

      The point is a guy made available a free library with nothing promised, except some code, and you went off on him for not having a perfect product that will teach anyone how JPEG2000 works. If you notice, his version number is 0.0.7. In the Open Source world, that means it's not released yet. Available != Released in the Open Source world.

      The code looks pretty readable to me. The code isn't obfuscated, it's uncommented. Uncommented means not intentionally clarified. Obfuscated means intentionally mystified.

      It also compiled with just two warnings. That's pretty good.

      There's nothing expressed or implied about its fitness for your use. If you don't want to use this guy's code, fine, but don't insult him because it's not up to your standards. That's not how we work in the open source world.

      --
      My God, it's Full of Source!
      OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
    3. Re:That's pretty rough by t · · Score: 2
      You put your credibility on the line when you said that anyone can understand the code if they want to. That's quite the lofty claim. Why do the linux kernel guys bother to comment anything since anyone who can understand code can figure it out.

      It's version 0.0.7. big deal. His intro comment states that he has implemented a JPEG-2000 codec. Clearly that is not the same as saying I've got the beginnings of a, or an alpha version... He even follows it with a it would be nice to see it work in his favourite browsers. If all that doesn't mean version 1.0 to you then I can't imagine you ever releasing any code over version 0.0.50.

      And btw, available == released. Especially when one states they'd like to see it in their favourite browsers.

      Two warnings? Your point? Does two warnings mean that the math is correct? That the rounding is correct for a reversible transform? I'd rather have code with a 1000 warnings and lots of test code to ensure that it works correctly.

      And once more, saying it'd be nice to see it in a browser does imply a certain level of fitness.

      As far as how "we" work in the open source world, I've always been under the impression that it is a cooperative. Part of working with other people is sharing knowledge.

      Bottom line is you are taking this the wrong way. The guy obviously went through a lot of work to write it. He released it with the intention of it being used. As widely as possibly since it is BSD-licensed. So the question still remains why release it with zero docs. All it will do is needlessly frustrate the many people who really do want something like this.

      t.

    4. Re:That's pretty rough by bill_mcgonigle · · Score: 2

      You put your credibility on the line when you said that anyone can understand the code if they want to. That's quite the lofty claim. Why do the linux kernel guys bother to comment anything since anyone who can understand code can figure it out.

      Because it's much easier to understand if it's commented. That doesn't make it impossible to understand if it isn't. If you've ever done any maintenence programming you'd know this to be true. It's a bitch working with uncommented code, but it can be done, by some people.

      It's version 0.0.7. big deal. His intro comment states that he has implemented a JPEG-2000 codec. Clearly that is not the same as saying I've got the beginnings of a, or an alpha version... He even follows it with a it would be nice to see it work in his favourite browsers. If all that doesn't mean version 1.0 to you then I can't imagine you ever releasing any code over version 0.0.50.

      No, version 0.0.7 is explicity a version number that means 'just barely started'. Stuff under 0.1 by convention means 'not really usable yet'. It appears he has implemented the spec.

      Two warnings? Your point? Does two warnings mean that the math is correct? That the rounding is correct for a reversible transform? I'd rather have code with a 1000 warnings and lots of test code to ensure that it works correctly.

      Are you kidding? That's a thousand places the compiler is saying you're making bad assumptions about how the compiler is working. Code with no warnings may have any number of logic errors but it won't have any ambiguously compiled code.

      And btw, available == released. Especially when one states they'd like to see it in their favourite browsers.

      Look, this is simply untrue and not how the open source world works. People throw code out there all the time, half-baked, or whatever, for folks who may be interested in non-release quality code for whatever reason.

      And once more, saying it'd be nice to see it in a browser does imply a certain level of fitness.

      Cripes, I've written plenty of stuff I'd like to see incorporated elsewhere. I've probably said it too when I've sent patches to mailing lists, etc. I certainly never intended to imply that the code was perfect, 100% accurate, bulletproof, ready for use in life-saving devices, or perfectly documented. But the way this model usually works is that someone puts out some code that works somewhat. Someone else tries to build on it. They find problems, they report them. The code gets fixed, and the new version is incorporated. Just about everything works that way.

      As far as how "we" work in the open source world, I've always been under the impression that it is a cooperative. Part of working with other people is sharing knowledge.

      Yes, and it's also largely volunteer work. Did he say he'll never document the code? No, he said the documentation isn't done. And you jumped on his ass for it.
      --
      My God, it's Full of Source!
      OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
  83. Re:Testing it out (formatted this time... :-P) by t · · Score: 2
    That's actually not true, when you transcode from one lossy format to another, the second encoder can't tell the difference between artifacts from the previous encoder and stuff thats supposed to be there. So it ends up spending more bits trying to recreate it than the original encoder did. Or if you expect the same bitrate, then it spends bits on the original content and the artifacts. Note that the artifacts may be difficult to see to the human eye but the lossy jp2k wavelet has a support of only 9/7 pixels, whereas the artifacts from DCTs (jpeg) occur in 8 pixel wide blocks. I imagine they may not play very well.

    You could try it yourself, go to that nasa site blue earth or something, get a 50 MB tiff and compress it to a jpeg. Then compress the original and the jpeg with jp2k and see what the difference is. An increase in filesize of two doesn't seem that unreasonable to me. Transcoding only works when the first encoder is very near to lossless.

    t.

  84. Re:extension? what do we need the extension for? by spitzak · · Score: 2
    You are talking about a file that has *NO* magic number at the start (ie it is just UTF-8 text). Violating the rules of "file" will cause it to fail. I might as well complain if on a Mac I decided I could use those 4 bytes of type information to store the first 4 characters of my text, and then complained that it opened random files!

    There is lots of argument on all points of this. My opinion is that putting all the data in the file is the best solution, primarily because it can't get lost when the file is transmitted somewhere, but also because it is easy for a program to read, write, and alter it. But there is a lot of legacy files with no space in them to put such information. I consider the Mac id and the filename extension to be pretty much the same solution (put a few bytes of id somewhere other than the data stream).

  85. Re:extension? what do we need the extension for? by spitzak · · Score: 2
    No, his recommendation is equivalent to having circutiry imbedded in the CD case that reads some data from the disk and displays the correct label on the case.

    The only argument against doing this is the impracticality and expense of putting this circutry into each case, and the need to have designed CD's from the start to have space for this data. This actually matches the arguments against putting all data into the file stream (arguments I am finding very weak nowadays).

  86. Re:extension? what do we need the extension for? by dvdeug · · Score: 2

    Violating the rules of "file" will cause it to fail.

    Sure. The problem is not file, but in people wanting to use file automatically. A large portion of the files on my disk don't have magic numbers, so file can't be used automatically to identify files for a file manager.

  87. Re:extension? what do we need the extension for? by spitzak · · Score: 2
    I'll bet that if a system was made that used "file" for everything, very quickly you would see "file" improved to the point that it identified everything 99% accurately (if you include accurately identifying a file without magic numbers as "I don't know what this is" rather than some random type). Also you would quickly see magic numbers stuck on everything, for instance raw UTF-8 would have a UTF-8 encoded non-marking-space (or whatever it is called) code at the start.

    In any case I would expect it to be much more reliable than either filename extensions or Mac ids, both of which have the problem that they can be changed without changing the data and they can be lost in transmission.

    I think the main argument against "file" for everything is the speed issue. We need a system where getting the first 1K or so of a file is as fast as reading it's name.

  88. Re:extension? what do we need the extension for? by dvdeug · · Score: 2

    you would see "file" improved to the point that it identified everything 99% accurately

    If you know how to do this, why don't you do it? I'm sure everyone would love a 99% accurate file.

    In any case, 99% isn't good enough. 99% means everytime I try and look at every file in a 100 file directory, one will be wrong. By the nature of your solution, that one will be almost completely unfixably wrong. Running across bugs of your system every day is not acceptable.

    if you include accurately identifying a file without magic numbers as "I don't know what this is" rather than some random type

    Why is "I don't know" better than "UTF-8 text with CRLF line endings"? And how exactly do you distinguish between a typed file and a file that just happens to start with those magic numbers?

    you would quickly see magic numbers stuck on everything,

    In other words, you think you can do this, and the world will beat a path to your door to serve you. Not likely.

    raw UTF-8 would have a UTF-8 encoded non-marking-space

    The UTF-8 BOM causes all sorts of problems with the standard Unix text tools. What tools take one off and put one on is an ugly complex question that requires changing about every program that might output text.

    We need a system where getting the first 1K or so of a file is as fast as reading it's name.

    I.e. we need a system where it takes as much time to read the directory listing as it does to read the directory listing and open the file. Sounds like efficency to me.

  89. Re:What about animated Jpeg's? by Glenn+R-P · · Score: 2

    The frames of a MNG datastream can be in the JPEG (JNG) subformat as well as in the PNG format. Read the JNG spec at the PNG web site, http://www.libpng.org/pub/mng/

  90. Re:extension? what do we need the extension for? by spitzak · · Score: 2
    Why is "I don't know" better than "UTF-8 text with CRLF line endings"? And how exactly do you distinguish between a typed file and a file that just happens to start with those magic numbers?

    "UTF-8 text with CRLF" is what I meant by an "I don't know" answer. The way you distinguish a typed file that just happens to start with the magic bytes is you look at more bytes until you are reasonably certain this really is the file type you want.

    The UTF-8 BOM causes all sorts of problems with the standard Unix text tools. What tools take one off and put one on is an ugly complex question that requires changing about every program that might output text.

    Raw text tools would be edit the text to put the BOM mark there (or remove it, or change it to something else to outwit the file system). My proposal is that the standard read/write of files is unchanged. It is the program's responsibility to read/write the identifier. For the vast majority of Unix text files you would put a comment line at the start with the id. Take a look at how Emacs can have an id at the start of the file for ideas. The BOM is not needed for data files that belong to a particular program, in fact the BOM can be used to identify raw text.

    We need a system where getting the first 1K or so of a file is as fast as reading it's name.
    I.e. we need a system where it takes as much time to read the directory listing as it does to read the directory listing and open the file. Sounds like efficency to me.


    The idea is that getting at least the first block of bytes of a file mapped into memory is much faster than opening the file. On Unix I propose that a block of data of a guaranteed minimum size be stored in the Inode and that getting it would be as fast as getting the permission of a file today. You may have to use a different call than open. Reading the names of files would be just as fast as it is on Unix today, but running file would be similar to getting the executable or directory bits for each file.

  91. Re:extension? what do we need the extension for? by captaineo · · Score: 2
    The idea is that getting at least the first block of bytes of a file mapped into memory is much faster than opening the file. On Unix I propose that a block of data of a guaranteed minimum size be stored in the Inode and that getting it would be as fast as getting the permission of a file today

    A lot of newer filesystems do pack small files into the inode (reiserfs, BFS, and xfs too, I think)... This is not too much of a leap from storing the first few bytes of a large file there too. (I would modify your statement about "mapping" the beginning of the file though - a simple read() will be much much faster when you consider the page table manipulation overhead of mmap()).

    Have you looked at reiserfs? Hans Reiser shares this philosophy - although he is aiming more toward supporting things like hierarchical configuration documents being expressed as dense directory trees with tiny files, each holding only a few bytes (as opposed to a single text file with internal hierarchical structure, eg XML). I remember Reiser saying something like "who needs extended file attributes when you have very fast directories?" (*)

    * incidentally, consider that Microsoft invented the Registry (which is essentially an in-memory filesystem) because storing all that data in a directory tree was too slow with NTFS...

  92. Re:extension? what do we need the extension for? by spitzak · · Score: 2
    Most of my ideas were inspired by ReiserFS. I also want support for very small files. Besides file system design I think this means the ability to put everything into the data, even the *name* of the file, since all the permissions and other attributes is going to be larger than the file data. I'm not sure if it is possible to put the name in, but I would like to see attempts to put the permissions into the data (this is tricky as a program must be allowed to write anything to a file, so the hierarchy of directories must dictate the actual permission).

    Of course MicroSoft did something stupid. The registry is exactly the type of thing that Reiser (and I) am trying to get away from. Yet another file format and library to read it, so that all the tools you have to read an existing one cannot be used on it. In many ways the mess of /etc is perferrable since it allows *some* file manipulation tools to work, you can create or delete a whole catagory of information using normal tools, though trying to change individual records requires specialized programs (ie a text editor).

    They should have either fixed their filesystem to support many small files. At least used a XFS type interface so the same calls could be used to manipulate the registry as any other files, this I hope will be what Linux does if they are forced to do it by the need for compatability or because nobody fixes the file system to be faster.

  93. Only _slightly_ unfair by leonbrooks · · Score: 2
    Longer extensions work just dandy with Windows, and have done for seven years

    Have done for at least 3 times as long under Unix and other systems (UCSD etc), but DOS/Windows set the pace with filetypes, and apparently still does. Sigh.
    --
    Got time? Spend some of it coding or testing