Slashdot Mirror


JPG Compression - The Bandwidth Saver

Mr.Tweak writes "TweakTown has posted an article entitled "JPG Compression - The Bandwidth Saver". An article for webmasters and site owners showing how they can significantly reduce the amount of bandwidth they use by compressing JPG images, one of the most common formats for web images. If you own a website and don't yet have knowledge in the field of JPG compression, you should find this very interesting indeed - Save money on bandwidth and please viewers at the same time with quicker loading webpages. They also talk briefly at JPEG2000."

314 comments

  1. More advice by kindbud · · Score: 4, Funny

    Computers can make problems requiring complex repetitive calculations a much less onerous task to solve. I highly recommend that people apply computers to difficult scientific questions.

    --
    Edith Keeler Must Die
    1. Re:More advice by fuckthetux · · Score: 0


      Humans can make problems even without making calculations. I therefor highly recommend that computers apply humans to less difficlut questions

      answer: drop the mirror!

    2. Re:More advice by Admiral+Mouse · · Score: 4, Funny


      And get this... apparently images are not the only things that computers can compress. I've just learned that there are a slew of programs out there that can compress text-data with amazing ratios.

      Staggering.

      --
      Life if possible, art at any cost.
    3. Re:More advice by Darlington · · Score: 1
      Right on, brother. In the same spirit of this article -- a groundbreaking combination of being both extremely old news (like 7+ years) and painfully obvious to anyone who would read a "news for nerds" site -- I'm currently working on the following articles:
      • Light Bulbs -- The Candle Saver
      • Underpants -- A New Way To Avoid Skid-Marks In Your Trousers
      • The Telephone -- Throw Away Your Tin Cans!
    4. Re:More advice by Citizen+of+Earth · · Score: 1

      can compress text-data with amazing ratios

      Just imagine the ratios using lossy compression like with JPEG.

    5. Re:More advice by darien · · Score: 3, Funny

      I sspct lssy cmprssion s rthr mr ntcbl wth txt thn wth pctrs.

  2. I can not wait... by fuckthetux · · Score: 0, Offtopic

    i am on 14k4 :(

  3. JPG? by ar1550 · · Score: 4, Funny

    Compression? I'd just been renaming my .bmp's to .jpg - you mean I actually have to "compress" them to a .jpg to gain any benefit? Wow, my readers will sure be pleased. Next, you'll be telling me that my Flash-only websites should use shapes & instances instead of manually manipulating every pixel.

    --
    I once shot a man in Reno 'cause they cancelled Firefly.
    1. Re:JPG? by jedrek · · Score: 2

      ? I'd just been renaming my .bmp's to .jpg - you mean I actually have to "compress" them to a .jpg to gain any benefit?

      You laugh, but I do have a couple pictures I've gotten of people over the years (that would be 14 years at the end of this summer) that are small (res wise) .JPGs, about 400-600kb each. They are, of course, 'uncompressed JPGs', meaning BMPs and TIFFs renamed to .JPG. I also have a couple of images -- real JPGs this time -- about 3000x2000 (the size of the scanner at 150DPI) where the photo itself is about 400x300px somewhere in the middle of that.

      The rest is white.

      So, yeah, this article could help some people out... but still:

      Worst thread ever

    2. Re:JPG? by Com2Kid · · Score: 1

      Compression? I'd just been renaming my .bmp's to .jpg - you mean I actually have to "compress" them to a .jpg to gain any benefit?

      Don't laugh, I have had this happen to me before, people 'compress' a .bmp by renaming it .jpg. . . .

      I have had people aiming for CS degrees do this. . .

      Ok admittedly it was late at night and the person in question was having a VERY bad day. ^_-

    3. Re:JPG? by rapidweather · · Score: 1

      I make some of my images using GIMP on a Redhat Linux 7.1 machine, and in my rush to get them up, I just saved them as .gif. Next time I'll try .jpg, and see what GIMP can do in the way of file sizes for a comparable image.

    4. Re:JPG? by wolf- · · Score: 1

      Its ok when they "email" you the "compressed images". I hate it when windows based website designers actually put bmps on their websites. arg!

      --
      ----- LoboSoft specializes in Digital Language Lab
    5. Re:JPG? by kzinti · · Score: 5, Funny

      You laugh, but I do have a couple pictures I've gotten of people over the years ... that are small (res wise) .JPGs, about 400-600kb each.

      Reminds me of the friend who wanted to know why his page of family photo thumbnails was taking so long to load. He was using JPEG files, and was shrinking them down to 128x128, but the page was still taking many minutes to load. I took a look at his HTML, and saw that each thumbnail was specified as <img src="p000001.jpg" width="128" height="96">, etc. The trouble was that p0000001.jpg was the full-resolution image! Each one weighed about 500K. He had "shrunk" them by changing the width and height in the img tag - in other words, the browsers were downloading twelve or so full-size images then scaling them into thumbnails. The good part was that clicking on a thumbnail, to see the full image, was instantaneous as the full image was already in the browser's cache.

      I didn't have the heart to tell him how clueless his page was.

      --Jim

    6. Re:JPG? by Anonymous Coward · · Score: 0

      I hope some smart Linux motherfucker like you was there to preach the fucking gospel. Tell me how it went. Did you hear the sound of 1000 knees hitting the floor in praise of your infinite wisdom?

    7. Re:JPG? by a_n_d_e_r_s · · Score: 2, Informative

      I didn't have the heart to tell him how clueless his page was.

      Why not ???

      It we never educate the clueless we will have a world of clueless people...

      For example people who write fantastic 'expert' 'high-tech' articles of how you could - gasp! - compress images so they are faster to download.

      By not helping him he will could spread his 'expert' knowledge to others. In the long run he probably would have been better off by you telling him the truth.

      --
      Just saying it like it are.
    8. Re:JPG? by malfunct · · Score: 1

      Actually for something with large patches of solid colors and low color numbers .gif often has better compression. This is due to the process that creates a jpg which basically is optimized for high frequency change in the colors that can be "thrown out". A gif however is optimized for large patches of the same color which can be squished into one small piece of info. So don't just assume jpg is the best, use the right tool for each job. I would probably use .png instead of .gif though since it doesn't have all the patent problems :)

      --

      "You can now flame me, I am full of love,"

    9. Re:JPG? by jsprat · · Score: 2, Funny

      Those aren't thumbnails,
      they're dumbnails!

    10. Re:JPG? by Toraz+Chryx · · Score: 2

      That's a good idea for a file managemener plugin/extension actually, have it convert an image to whatever format you change the extension to...

    11. Re:JPG? by Com2Kid · · Score: 1

      Actualy smartass I use Windows.

      Folks, pay attention, this is what happens when trolls don't do their research. . . .

      (not that the idiot COULD be expected to research it but. . . .)

      Not to mention that it is a pretty pathedic attempt at a troll to begin with. There is no argument that a .bmp file just renamed to .jpg keeps the same size, thus in fact you would be unable to incite an argument over this.

      Now then if you had replied asking WHY that was so, then you might have gotten a few dozen people to hop on ship and write everything from lengthy polite explanations on the basics of compression and file storage methods, to people flaming you left and right.

      Sorry, you lose, don't try again, run out and play in traffic instead.

    12. Re:JPG? by Com2Kid · · Score: 1

      Heh.

      Actualy most users understand save as better then they understand changing extensions.

      The user was actualy using WindowsXP, so they had had to specificaly enable file extensions to begin with, something that most users do not do (unfortunatly).

      It was a very bizzare case, LOL.

      I _NEVER_ want a system automaticaly or even semi-automaticaly applying lossy compression to MY data though. Permanitly damaging a files data is bad, heh. I am VERY specific about ANY sorts of lossy compression that I apply to an image, and I take great strides to ensure that proper versioning methods are used in a loseless format all the way throughout the file's creation.

      Having an OS then throw out a good bit of my final product, no thanks! Of course I never WOULD actualy rename a files extension in such a way, but if something should happen (batch renaming gone haywire) it is nice to at least have all of my data still intact, even if it is mislabled. :) (mis-extended? Hmm. . . . LOL)

    13. Re:JPG? by dhogaza · · Score: 2

      I've seen this on a *commercial* site. The owner asked me to take a look as to why his site was so slow to load. The (obviously incompetent to the extreme) local web developer he'd hired refused to resize the JPEGs, insisting I had no idea what I was talking about ...

    14. Re:JPG? by gad_zuki! · · Score: 2

      Worse, everyone who has read a paragraph about weblogging and quickly gets a blogger account does the same thing. Except they link to your image directory, embed up a 200k+ image, and then resize it in HTML. Thank Eris for referrer control in .htaccess.

    15. Re:JPG? by Toraz+Chryx · · Score: 2

      have it default to non-lossy compression if the format in question is 'lossy' (jpeg at 100% or whatever)

      at the least, translating in such a manner between BMP/TIFF/PGA etc...

    16. Re:JPG? by Anonymous Coward · · Score: 0

      Good one.

    17. Re:JPG? by Ignominious+Cow+Herd · · Score: 0

      Someone correct me if I'm wrong, but I believe that JPG's compression works by making pixels 'more the same' using DCT stuff and then uses standard (LZW-ish) compression on the result. The lossy part is the DCT algorithm which just makes the image more compressible. If you set the DCT parameters such that nothing is thrown out you can still get significant compression on images that are highly repetetive (such as clipart).

      --
      Lump lingered last in line for brains, and the ones she got were sorta rotten and insane.
    18. Re:JPG? by Anonymous Coward · · Score: 0

      Bah, you did it wrong. My neighbor wanted to know why their site was loading the images so very slowly (same deal--they "shrunk" the images in Netscape Composer). I ran them through Photoshop, sharpened them up a bit, shrank them & voila, their page was fixed.

      Much better to impress them by fixing it dramatically than to tell them they're clueless.

    19. Re:JPG? by sharkey · · Score: 2

      He had "shrunk" them by changing the width and height in the img tag

      The guy who did our corporate page using Dreamweaver did the same thing.

      I didn't have the heart to tell him how clueless his page was.

      Don't bother. You'll just get a blank look.

      --

      --
      "Outlook not so good." That magic 8-ball knows everything! I'll ask about Exchange Server next.
    20. Re:JPG? by mrfiddlehead · · Score: 1
      I got this ALL the time during my stint as a sysadmin at one of the local universities. The goddamn scanning software would always default to BMP as the default format and I'd find people saving 25MB scans of their bloody holiday photos. Nothing would ever be enough to convince these people that JPG or PNG would be a better choice.

      And they wondered why *I* was grumpy when the network drives filled up.

      --
      :wq
    21. Re:JPG? by psamuels · · Score: 1
      I would probably use .png instead of .gif though since it doesn't have all the patent problems :)

      That's a good reason, but how about the fact that PNG uses a better compression algorithm (flate versus LZW) and has more features (superior interlace options, full alpha channel) - there are non-idealogical reasons to switch. The one disadvantage of PNG is that some older browsers don't fully support it. (That was a reason not to switch to JPEG, back in the day. Old versions of NCSA Mosaic didn't support it.)

      --
      "How can you claim that you are anti-crack, while still writing a window manager?" — Metacity README
    22. Re:JPG? by Moonshadow · · Score: 2

      PHP + GD.

      I run a VERY large online art gallery for a friend. She's fairly HTML-incompetent, and uploads 10-15 pictures a week. Automatic thumbnail generation + caching RULES. :)

      I'm on University broadband, so even HTML-resized images don't bother me too much, but it's the PRINCIPLE of the matter...

      Oh, and I use those fancy-schmancy compressed JPEG thingies as the thumbnails, too.

    23. Re:JPG? by malfunct · · Score: 1

      Yeah but it pumps up the color-depth of the picture making each pixel take 3bytes instead of 1 :) If you are using a small number of colors that kind of sux.

      --

      "You can now flame me, I am full of love,"

  4. Calling a cat a cat. by pinkpineapple · · Score: 1, Offtopic

    It's unfortunate that the JPEG format ends up being described as the JPG, due to DOS naming constraints. Are we doom to see the usage of 3 name extension only in the future due to this lack of vision from the early implementers? I for one would tend to favor embedded MIME support and the removing of file extensions.

    PPA, the girl next door.

    --
    -- I feel better now. Thanks for asking.
    1. Re:Calling a cat a cat. by Anonymous Coward · · Score: 0, Funny

      I wholehartely agree. Can an editor change the title to "image/jpeg Compression"?

    2. Re:Calling a cat a cat. by GigsVT · · Score: 2

      If only MIME wasn't a hopeless mess in Linux.

      --
      I've had enough abrasive sigs. Kittens are cute and fuzzy.
    3. Re:Calling a cat a cat. by Anonymous Coward · · Score: 0

      Or maybe it's just because those guys ain't such "experts" after all.

    4. Re:Calling a cat a cat. by Anonymous Coward · · Score: 0

      You guys are the best, a pointless MS slam to a pointless post... It's not as if the usage of "jpg" in an english sentence realy confused anyone out there. Or to improve readability should we always go with the long form of "Joint Photographic Experts Group"? And no I refuse to speak the full mime type in conversations either. I guess I should be glad we don't see requests for a link to the resource fork just so mac people can read it.

    5. Re:Calling a cat a cat. by Anonymous Coward · · Score: 3, Funny

      Yes, but using "JPG" instead of "JPEG" saves a byte of bandwidth.

    6. Re:Calling a cat a cat. by ImaLamer · · Score: 2

      It's quite a problem working on a XP/2000/9x machine which won't show me mpeg files when looking for mpg and the reverse.

      There is little need for extensions what so ever when you are working in a graphical environment. The GUI can assign icons to types [if someone hasn't already monopolized on that media type and got their icon on the 'top].

      In a console based environment there is also little need. Most users know what files are what and if they don't there is sometimes a color coding involved which helps you know what you can edit. [of course jpeg is little use to a console user].

      As far as I know linux has no problem reading the content headers of files but I'm not an expert, just a user. I assume this is done on the interface level, somone speak up!

    7. Re:Calling a cat a cat. by Phroggy · · Score: 2

      It's unfortunate that the JPEG format ends up being described as the JPG, due to DOS naming constraints. Are we doom to see the usage of 3 name extension only in the future due to this lack of vision from the early implementers? I for one would tend to favor embedded MIME support and the removing of file extensions.

      Here here. I'm sick of hearing people talk about HTM files. Mention assembly language, and they reply "oh, you mean ASM?" Even Windows isn't this dumb anymore; why haven't the users gotten better?

      These morons are offensive to us Mac users, and they're polluting Linux too. Anyone have any suggestions for putting a stop to this?

      --
      $x='S24;r)>63/* h@<5+oZ)32"5cz';$me='phroggy'x$];
      $x=~y+ -xz+\0-Tx+;print$_^chop$me for split'',$x;
    8. Re:Calling a cat a cat. by Anonymous Coward · · Score: 0

      JPEG isn't a format, JFIF is.

    9. Re:Calling a cat a cat. by iotaborg · · Score: 1

      Just looking around on my OS X machine, I see a few extensions of type ".kext", ".component", ".dfont", ".plugin"... So, we're doing fine I suppose...

    10. Re:Calling a cat a cat. by Anonymous Coward · · Score: 0

      You mean GNU/image/jpeg

    11. Re:Calling a cat a cat. by Waffle+Iron · · Score: 2
      There is little need for extensions what so ever when you are working in a graphical environment. The GUI can assign icons to types

      Don't you just love it when you open a 1000-file directory and your hard drive grinds for 30 seconds while your file manager opens every last one of those files to peek inside? Then the GUI thread is bogged down while the icons are updated in real time.

      I'd rather just use extensions, thank you. (And the thee character limit helps keep things short and sweet.)

    12. Re:Calling a cat a cat. by kenthorvath · · Score: 2

      Yeah, from now on I'm only downloading .MPEGLAYER3
      files to put in my music collection.

    13. Re:Calling a cat a cat. by Anonymous Coward · · Score: 0

      Yeah, what a fucking genious idea. There NO possible way a file extension could be wrong. Hell no. That's fucking street savvy shit. Do you code? With logic and wit like that, you'd be a fine ass motherfucker.

    14. Re:Calling a cat a cat. by Anonymous Coward · · Score: 0

      Anyone have any suggestions for putting a stop to this?

      Actually, I was thinking that if we put all the Mac users into a room with some Zyklon B, then nobody would be around to be offended. Problem solved.

    15. Re:Calling a cat a cat. by Waffle+Iron · · Score: 2
      Yeah, what a fucking genious idea. There NO possible way a file extension could be wrong. Hell no. That's fucking street savvy shit. Do you code? With logic and wit like that, you'd be a fine ass motherfucker.

      We're talking about GUI icons here, Einstein. They're just hints for the user. Any non-broken program would check the actual file format before operating on a file. (Yes, I realize that a certain large OS company has written broken programs that assume the extension==file format. That's their problem.)

    16. Re:Calling a cat a cat. by Anonymous Coward · · Score: 0

      I'm gonna really pick nits and point out that the proper name is JFIF =)

      I'm glad someone wrote this article, though. I run every photo-type image I download through `cjpeg -opt' and sometimes save 1/2 or 2/3 the original size, and without the original to compare minutely block by block you'd never notice the diff. There's an awful lot of net wasted transporting bloated JFIF.

      All that's needed now is a parallel article pointing up PNG, the judicious use of 4-bit greys and 12-bit colourspaces, and when to use PNG and when to use JFIF...

    17. Re:Calling a cat a cat. by ahaning · · Score: 1

      What if your file manager could sort files by type by looking at their "actual" type?

      That way, regardless of their extension, you could search for all files of type "jpeg" or, hell, make it heirarchical, and search for all "images" or "movies".

      So, you could call your cats Bob and your dogs Bob, and then search for them by looking for "felines" and "canines", or "animals".

      Of course, all this searching through the files based on their makeup could strain the machine, so you'd make a database of files, their type, and their location in the tree of types, where it should then only be slow due to the speed of the database, rather than how fast your disk can read.

      From what I've heard, BeOS and some Linux software (KDE?) can do this, already.

      --
      Withdrawal before climax is very ineffective and those who try this are usually called "parents."
    18. Re:Calling a cat a cat. by Anonymous Coward · · Score: 0

      You mean .MotionPictureExpertsGroupLayerThreeAudio

    19. Re:Calling a cat a cat. by shepd · · Score: 1

      >If only MIME wasn't a hopeless mess in Linux.

      Explain how, without mentioning apache or anything at all but the kernel or kernel modules (which is the only true part of Linux, everything else is simply software that runs on top of Linux, just like IIS isn't Windows).

      If you can't see it already, I call you out, troll.

      --
      If you could be told what you can see or read, then it follows that you could be told what to say or think - BoC
    20. Re:Calling a cat a cat. by Anonymous Coward · · Score: 0

      JPEG is not a file format.

      JPEG is a set of recommendations on how to compress images.

      If you want to go for the accurate extension, it would be JFIF, which is the most common file format implementation of JPEG compression.

    21. Re:Calling a cat a cat. by Anonymous Coward · · Score: 0

      Now that very few people use DOS 6.22 or earlier anymore, it's very unlikely that we're forever doomed to 3-letter extensions. I already have more than 40 longer-than-3 registered extensions on my Win2k box.

      And file extensions do have advantages. Without them, it would take me more than half a second to decide whether to delete the "foo.doc.pif" e-mail attachment.

    22. Re:Calling a cat a cat. by GigsVT · · Score: 2

      That's a cop out. If you narrow "Linux" down to just the kernel, it's technically correct, but it allows you to ignore all the application space problems. That isn't productive.

      When I said "Linux", I meant "common Linux distributions". MIME has no meaning in the context of the kernel.

      --
      I've had enough abrasive sigs. Kittens are cute and fuzzy.
    23. Re:Calling a cat a cat. by psamuels · · Score: 1
      It's unfortunate that the JPEG format ends up being described as the JPG, due to DOS naming constraints. Are we doom to see the usage of 3 name extension only in the future due to this lack of vision from the early implementers?

      (Side note - since you're getting pedantic about names, you probably mean the JFIF format, which features the JPEG family of codecs.)

      I haven't looked at Windows XP (thank goodness) but at least through Windows 2000, Microsoft still uses only 8.3 names on the CD-ROM and floppies, and seems to do so in %SYSTEMROOT%. My private theory is that they know VFAT (aka long filename support for DOS filesystems) is still flaky by design and prone to corruption, so they avoid it for the really essential stuff.

      Come to think of it, that doesn't really explain the CD-ROMs. They have had Joliet (aka long filename support for ISO-9660 CD-ROMs) for quite some time now.

      It also doesn't explain why almost all MSFT shops still write .htm pages when the whole Unix world has used .html from the beginning. I guess that one is just plain stubbornness / momentum. (:

      At least everyone has settled on .class as the extension of choice for Java - even in the Windows world. Perhaps there is hope. Oh wait - Java is Microsoft's Public Enemy #1. Coincidence? (:

      PPA, the girl next door.

      Heh, another TLA.

      --
      "How can you claim that you are anti-crack, while still writing a window manager?" — Metacity README
    24. Re:Calling a cat a cat. by psamuels · · Score: 1
      There is little need for extensions what so ever when you are working in a graphical environment. The GUI can assign icons to types [if someone hasn't already monopolized on that media type and got their icon on the 'top].

      Many Unix and MacOS fans laugh at the fact that Windows deduces file type by name, instead of by content. I really like having the file(1) command available, and I use it all the time, but categorizing things by file extension is much more efficient, for casual use. It's bad enough, when reading a directory listing in an NFS mount, for the kernel to have to run a stat(2) on each file to determine the elemental file type (file, dir, link, device, pipe, socket) - it would be much worse if my copy of ls(1) felt the need to read the first 512 bytes or so of each file, so it could colorise it properly.

      Interestingly, Microsoft actually take a hybrid approach. Certain file extensions - .EXE, .ICO, .LNK, .CUR - prompt the explorer shell to look inside the file for more information on its true icon. Again, IMO a waste of bandwidth for network shares.

      --
      "How can you claim that you are anti-crack, while still writing a window manager?" — Metacity README
    25. Re:Calling a cat a cat. by Thurn+und+Taxis · · Score: 1

      As far as I know linux has no problem reading the content headers of files but I'm not an expert, just a user. I assume this is done on the interface level, somone speak up!

      Linux uses a file called magic (in RedHat, it's in /usr/share/magic) which describes, for each type of file, a "magic number" -- either a string or a 1, 2, or 4-byte header that appears at the beginnings of files of that type. The file program will read the magic number at the start of a file and report the file type.

      The advantage of this system is that you don't have to give your files any particular extension (although doing so can be a useful mnemonic device). The disadvantage is that reading the headers of a large number of files can be slow.

      But if you convert all of your files to JPEGs, it'll be much faster! ;-)

      --
      On stereophonic equipment, the monaural sound obtained through multiple channels will enhance your listening pleasure.
    26. Re:Calling a cat a cat. by ncc74656 · · Score: 2
      What if your file manager could sort files by type by looking at their "actual" type?

      ...and where would you propose storing this metadata? The vast majority of filesystems out there make no provision for any differentiation beyond whether a directory entry belongs to a file or a subdirectory. Some also know about file links, device "files," and such...but for differentiating the different kinds of data that might be in regular files, the only filesystems I know of that do that are the different filesystems Apple has come up with over the years (HFS, ProDOS, etc.). FAT*, NTFS, ext*, reiserfs, XFS, etc. don't allow for a way to tag a directory entry to say that it points to a JPEG image, an MP3, or whatever. To identify the file, you either use a few characters in the filename (.jpg) or you search for magic bytes in the file (0xFF 0xD8 0xFF 0xE0 0x00 0x10 'JFIF'). Which of these two methods is more efficient for the computer to carry out for a large number of files is an exercise left to the reader.

      --
      20 January 2017: the End of an Error.
    27. Re:Calling a cat a cat. by ImaLamer · · Score: 2

      You are such a tool.

      I don't mean thumbnails - and there is no need to 'peek' inside each file. The content is known just as fast as the file name.

      Also, there is no "three character limit". For years I've been working in different MPEG-1 and MPEG-2 applications which will only save to four characters.

      Good idea to rely on those letters which anyone could/can/will/does change.

    28. Re:Calling a cat a cat. by Anonymous Coward · · Score: 0

      Mac OS X is dumping resource forks. Hurrah!

  5. slow day at slashdot by deathscythe257 · · Score: 1, Informative

    umm... huh... I was hoping there might be a news article here.

  6. JPG Compression - Hmmmm by Anonymous Coward · · Score: 0

    I've started to care a lot less about server-side bandwidth with the dawn of free web-hosting.

  7. Power Switch - The Energy Saver by wadetemp · · Score: 5, Funny

    In other news:

    Anonymouse Cowarde has posted an article entitled "Power Switch - The Energy Saver". An article for geeks and computer owners showing how they can significantly reduce the amount of power they use by turning off your computer when you're not using it, using one of the most common buttons found on the front of most PCs. If you own a computer and don't yet have knowledge in the field of energy, you should find this very interesting indeed - Save money on electricty and please your significant other at the same time with a quieter room and lower energy bill. They also talk briefly at APM.

    1. Re:Power Switch - The Energy Saver by Anonymous Coward · · Score: 0

      Question though: How many people that visit Slashdot are ever *not* using their computer? See, this could be a problem. Maybe the best way to conserve power is to have people join some sport or something (i can hear the laughing already). ;-)

      _
      WINDOWS USERS CLICK HERE!

    2. Re:Power Switch - The Energy Saver by netsharc · · Score: 0, Troll

      Thanks, great parody. What an aarrggh-fucking-lame article. What is that site, script-kiddie remedial course? How to fucking make JPEG files. Bah, talk about aiming at the "Windows for Dummies" target market.

      --
      What time is it/will be over there? Check with my iPhone app!
    3. Re:Power Switch - The Energy Saver by shadowomyn · · Score: 1

      Gosh, I hope they post about modems next ... I need help speeding up my 14.4 *cough*.

    4. Re:Power Switch - The Energy Saver by Anonymous Coward · · Score: 0

      er I didn't actually bother dl'ing it, but might I ask why win95+ computers need a .exe to have animated cursors?

    5. Re:Power Switch - The Energy Saver by ncc74656 · · Score: 2
      Gosh, I hope they post about modems next ... I need help speeding up my 14.4 *cough*.

      One number:

      9.8 m/s^2

      --
      20 January 2017: the End of an Error.
  8. Um, I thought this was common knowledge... by Millennium · · Score: 0, Redundant

    It's fairly simple. Use JPEG for photos, where the compression artifacts won't be noticeable and the bandwidth savings are most helpful. Use PNG for computer-generated stuff like screenshots, and run them though pngcrush (always use the highest compression for PNG's that you make available for download; because they're lossless, you don't lose any quality).

    Has this become uncommon knowledge already?

    1. Re:Um, I thought this was common knowledge... by RatOmeter · · Score: 1

      Yes, I thought it was common knowledge also. But I've noticed that there seems to be very little decrease in the use of GIF files in web sites. It seems like a majority of sites still use GIF's for their small images... tiled backgrounds, arrow pointers, etc. Besides not compressing the image as efficiently, GIF's also come with potential baggage, which is even more reason to choose JPEG over GIF. What's really goofy is, when I pointed my browser to that URL on tweaktown, a banner ad for Kingston memory appear... as a GIF!

      The article may have been apropos on tweaktown, given that site's intended target audience. I *don't* think the article was apropos for /.

    2. Re:Um, I thought this was common knowledge... by Ed+Avis · · Score: 2

      The biggest bandwidth saving on many sites would be to generate PNGs with an appropriate number of colours. Very often you can reduce your image to 8, or even 4 colours with very little loss of quality but a big reduction in image size.

      --
      -- Ed Avis ed@membled.com
    3. Re:Um, I thought this was common knowledge... by u01000101 · · Score: 1

      God, it is common knowledge... Even tucows has a lot of stuff about this in the "Learn Web Design" section.

      This *must* be an all-time low... or just a sign that The (Hopefully) Great Slashdot Blackout (April 21-27) is about to start...

      --
      if you use a good enough junk-filter, slashdot.org will display a single, *blank*, page
    4. Re:Um, I thought this was common knowledge... by shobadobs · · Score: 1

      Choose JPEG for a GIF file? JPEG is for photos, etc. Not computer-generated graphics and icons!

      Perhaps you meant PNG.

    5. Re:Um, I thought this was common knowledge... by dodald · · Score: 1
      I see no problem with using GIF's for small images. In most cases they are smaller the JPG's of the same size (see here; I made these images for another topic but it shows my point). They are (as far as I know) lossless. Using JPG on small images is a waste, and often has noticible compression marks.

      GIF's do come with baggage but no other popular format can do animation.

      --
      101010b 2Ah 52o
    6. Re:Um, I thought this was common knowledge... by ergo98 · · Score: 3, Informative

      This points out that choosing the proper compression format is not common knowledge, and there are still loads of people who confuse one over the other.

      JPEG is not better than GIF/PNG, but rather it's for a different purpose: As others have pointed out (hence I'm being redundant), JPEG is for photo-realistic images with lots of smooth gradiants and subtle tone changes. JPEG is lossy, meaning that if you did a perpetual cycle of compression/decompression you continually degrade the image. GIF/PNG is not lossy, and the decompressed image is exactly the same as the original (like LZWing the file), and it is useful where you want precise images (such as icons, banners, graphical text, etc.). GIF can actually compress comic type images to a much greater degree than JPEG can (and, because it's lossless, you don't get the artifacts of JPEGs).

    7. Re:Um, I thought this was common knowledge... by Anonymous Coward · · Score: 0

      Um, I thought this was common knowledge...

      And yet you feel the need to lecture us on the topic.

    8. Re:Um, I thought this was common knowledge... by mgv · · Score: 2

      Yes, I thought it was common knowledge also. But I've noticed that there seems to be very little decrease in the use of GIF files in web sites

      Well, for your information, certain programs (Front page extensions to be precise) rely on you using either gif or bmp for the backdrops on their automatically generated navigation icons and theme elements. Well, frontpage 2000 did, cant speak for 2002 extensions.

      This makes alot of sense relative to JPG, but isn't as good as PNG, which seems to code the icons in about half the space.

      You can still use any file format for the main body of your site, its just a failing (one of many) in the server extensions to generate icons on the fly.

      My 2c worth,

      Michael

      --
      There is no cryptographic solution to the problem where the intended receiver and the attacker are the same entity.
    9. Re:Um, I thought this was common knowledge... by Ignominious+Cow+Herd · · Score: 0

      Try this. Using the Gimp or other suitable application, create an image of just one color (I did 1000x1000 red just for the sheer fun of it). Save it as JPEG with the Highest quality (low-loss) and the lowest. Also save it as PNG (and/or GIF if you care). In my case PNG was smaller (at the highest compression, not the default), but not that much. PNG was 4K, both JPEGs were 6K.

      Note that - lossless JPEG compression on solid colors is GOOD!

      --
      Lump lingered last in line for brains, and the ones she got were sorta rotten and insane.
  9. When... by Decimal · · Score: 2

    When are we going to start evolving these algorithims? It would have to be done by a really fast computer, but it's been shown that natural selection applies to computing as well. I'd imagine that it is possible to come up with an algorithim that's lossless and still as small as any equivalent .jpg file. Nature can come up with things we never even imagined. This technique has been used to create a sorting program that is smaller works faster than any we ever created manually. And we often can't figure out how it works. Not a clue!

    --

    Remember "Bring 'em on"? *sigh
    1. Re:When... by Paul+Komarek · · Score: 1

      I believe you are referring to genetic algorithms. They're not a cure-all for problem solving. There are some good applications for genetic algorithms, but I expect that finding good compression algorithms for images is not one of them. As for evolving image processing algorithms, they are always evolving. But throwing a random AI technique (genetic algorithms, neural nets, simulated annealing, whatever) at a random problems is unlikely to help that process. All of these are simply nonlinear function approximators, and choosing the right method often require a great deal of human labor. Once the model and algorithm have been chosen, there is no guarantee that any of the mentioned algorithms will converge to optimality within a finite period of time.

      It's not that we're sitting on our butts, too lazy to throw our wonder algorithms at problems that would save the world. It's that we don't have any wonder algorithms. If we did, we'd probably not know how to ask the questions anyway. And there are those who think that once we had such algorithms and asked the right questions, we wouldn't understand the answer anyway -- but that's a different matter altogether. ;-)

      -Paul Komarek

    2. Re:When... by Phroggy · · Score: 2

      When are we going to start evolving these algorithims? It would have to be done by a really fast computer, but it's been shown that natural selection applies to computing as well. I'd imagine that it is possible to come up with an algorithim that's lossless and still as small as any equivalent .jpg file.

      You mean like PNG? The problem is browser support - old browsers may not render a new format consistently. Keeping two versions of every graphic and deciding which to send to the browser based on what it can handle is a pain. Having a significant percentage of potential customers see broken links all over everything is unacceptible.

      --
      $x='S24;r)>63/* h@<5+oZ)32"5cz';$me='phroggy'x$];
      $x=~y+ -xz+\0-Tx+;print$_^chop$me for split'',$x;
    3. Re:When... by Vireo · · Score: 1

      I'd imagine that it is possible to come up with an algorithim that's lossless and still as small as any equivalent .jpg file.

      Well, the answer is a definitive NO. There are strict mathematical limits (Google keywords: shannon information) to lossless compression, and most lossless compression algorithms (used in .zip, .gif and lossless .jpg formats for example) are pretty close to that limit. This is the reason why zipping a GIF or a JPG (or an MP3) is totally useless.

    4. Re:When... by Anonymous Coward · · Score: 0

      "I'd imagine that it is possible to come up with an algorithim that's lossless and still as small as any equivalent .jpg file. "

      Pigeonhole principle. 1MB of pic data has 1024*1024*8 bits, or 8388608 bits or 2^8388608 combinations. Now, compress that to a 100k file, or 100*1024*8 bits or 819200 bits, or 2^819200 combinations. There are far, far, far more combinations, and so you cannot have a bijective mapping of 1MB pics to 100k pics. The mathematics *proves* this cannot be done, at least without being lossy.

    5. Re:When... by Decimal · · Score: 2

      > I'd imagine that it is possible to come up
      > with an algorithim that's lossless and still
      > as small as any equivalent .jpg file.

      You mean like PNG? The problem is browser support - old browsers may not render a new format consistently. Keeping two versions of every graphic and deciding which to send to the browser based on what it can handle is a pain. Having a significant percentage of potential customers see broken links all over everything is unacceptible.

      No, I mean a lossless image (as png is) that would be the same size as a lossy image (as jpg is) with no loss at all. For a comparison, take a 24-bit color image with lots of detail and compress it into 2 formats - jpg and png. Notice how much smaller the jpg is? Now if you're already working with a reduced color image (256 or less) a gif image (lossless up to 256 colors) would be small and work in all graphical web browsers though the same image in png format would still be a lot smaller. Anyway, I was talking about evolving a new image format, not browser compatibility.

      --

      Remember "Bring 'em on"? *sigh
    6. Re:When... by Phroggy · · Score: 1

      Anyway, I was talking about evolving a new image format, not browser compatibility.

      Any new format can't take off because it's limited by browser support. I mentioned PNG because PNG was a new format, and it's had trouble taking off. If we invent something new now, how long will it take before we can seriously think about adopting it?

      --
      $x='S24;r)>63/* h@<5+oZ)32"5cz';$me='phroggy'x$];
      $x=~y+ -xz+\0-Tx+;print$_^chop$me for split'',$x;
  10. *blinks* and this appears on the front page.. why? by Aanallein · · Score: 5, Insightful

    Short run down of the linked-to article:
    Non-compressed images have a large filesize and cost a lot of bandwidth, compressed images look almost as good and cost less bandwidth.
    Guide to compress images in PSP 7: save, move slider.
    conclusion: compressing is good, hope you found this useful.

    *shakes his head sadly* Slow down are fine, but c'mon - we're geeks you know; we can be expected to at least know *some* things...

  11. jpg vs gif by terradyn · · Score: 2

    Although jpg compression is definitely helpful, the article forgets to mention that two image formats are supported by all browsers. GIF being the second. GIFs should be used for vector based graphics and provides a better overall quality/size advantage when done right. Many non-professional webpages confuse the distinction and make solely jpg or gif based websites. He should also have explained the compression techniques using photoshop as that is a much more popular package (although I understand that many home grown websites might be using PSP, they are also the ones that don't really care about bandwidth since they're using geocities or other free hosts).

    1. Re:jpg vs gif by fire-eyes · · Score: 1

      Too bad there's all that LZW patent / fee bullsh*t. Which is why I won't use .gif anywhere on any site that I run.

      This isn't just paranoia, you can be fined for this.

      http://burnallgifs.org/

      --
      -- Note: If you don't agree with me, don't bother replying. I won't read it.
    2. Re:jpg vs gif by Phroggy · · Score: 1

      He should also have explained the compression techniques using photoshop as that is a much more popular package (although I understand that many home grown websites might be using PSP, they are also the ones that don't really care about bandwidth since they're using geocities or other free hosts).

      Why anyone would use a photo-editing behemoth like Photoshop for simple Web graphics has always been beyond me. I haven't really looked at Paint Shop Pro since around 1994-1995; it's Windows-only and thus useless to me.

      Last I heard PSP was still shareware, but Photoshop is definitely really expensive. Two questions: 1) are these really the tools of choice for a majority of people who make Web sites? 2) what percentage of those people actually use the software LEGALLY?

      --
      $x='S24;r)>63/* h@<5+oZ)32"5cz';$me='phroggy'x$];
      $x=~y+ -xz+\0-Tx+;print$_^chop$me for split'',$x;
    3. Re:jpg vs gif by realgone · · Score: 2
      1) are these really the tools of choice for a majority of people who make Web sites?

      As an interactive production manager out here in NYC, I'd have to say "yes" -- at least on the professional side of things. Photoshop (w/ an assist from Illustrator) are *the* tools of the trade for creating static web graphics. (Don't mind the whimpering you hear from the back of the pack. Those are just the people who insist on using Fireworks...) =)

      Why use these "behemoths"? Because they let us put the design in "web design", which is ultimately what we get paid for. But there are still plenty of good solutions for the hobbyist crowd, including Photoshop Elements, which retails at $99 (not counting the $30 rebate for PSP users) and has all the features of Photoshop that a smaller web publisher would need.

      2) what percentage of those people actually use the software LEGALLY?

      Professional use? Most everyone. Personal use? I'd give 20% as a rough guess. I've got registered copies both at home and at work, but I'm probably an exception to the more general rule.

    4. Re:jpg vs gif by British · · Score: 2

      Times have changed for Paint Shop Pro, my friend. It has evolved quite a bit, and it's $100, compared to $600 for Photoshop.

      90% of the features of Photoshop for a fraction of the price.

    5. Re:jpg vs gif by Anonymous Coward · · Score: 0

      There's also Photoshop Elements, 90% of the features of Photoshop, plus some additional stuff, for $100. It's missing the press stuff, but is fine for web graphics.

    6. Re:jpg vs gif by psamuels · · Score: 1
      Although jpg compression is definitely helpful, the article forgets to mention that two image formats are supported by all browsers. GIF being the second.

      XBM being the first, right? (Not that I recommend using it for anything other than its quintessential web purpose: icons in directory listings.) Really, though, JPEG is supported by almost all browsers nowadays, except of course mine (links) which is text-only. The days of using GIF only because JPEG wasn't supported by NCSA Mosaic are past. We're fast approaching the day of using PNG, since it is finally supported by most of the commonly used browser versions.

      --
      "How can you claim that you are anti-crack, while still writing a window manager?" — Metacity README
  12. Memories of JPEG by Renraku · · Score: 2

    JPEG has been around almost as long as I can remember the Internet. I remember spending long hours downloading single pr0n pics from Lynx using the Kermit protocol. Too bad half of 'em were zipped bitmap files instead of JPEGs.

    --
    Job? I don't have time to get a job! Who will sit around and bitch about being broke and unemployed then?
    1. Re:Memories of JPEG by Anonymous Coward · · Score: 0

      Can't wait for JPEG2000 to come out. Then all my porn will be high quality lossless compression!

  13. Am I the only one annoyed by dropping the e? by Anonymous Coward · · Score: 0

    It's JPEG, dammit! Never has been "JPG [sic]", never will be. The dropped e is a figment of history from the days of 8.3 DOS filenames, and Unix never had that limitation (although there was 11 character limits), using "JPG" on a pro-open-source website is not only insultive, it is offensive to loyal Unix users.

    1. Re:Am I the only one annoyed by dropping the e? by Anonymous Coward · · Score: 0

      This is for fast downloading!, without one letter we can economize a lot of bytes on file names !.

  14. What's the best way to speed up your connection? by NanoGator · · Score: 4, Funny

    Q: What's the best way to speed up your connection?
    A: Run less data through it.

    I can write an article about this if Slashdot is interested.

    --
    "Derp de derp."
  15. *kicks self* by Aanallein · · Score: 1

    Slow days, slow days... not slow down.
    Though I should slow down with typing. No time though - must read more pointless articles... :)

    Gah, and then of course I replied within the two minute delay with the "Slow Down Cowboy!" message - how appropriate.

  16. LOL by Dwedit · · Score: 3, Funny
    As you can see from the 25:1 compressed image above, there is really not much of a difference in terms of image quality from the original image at 2:1 - but a save of 44.6kb in file size. Consider this as a practical example - a new piece of content you post has ten images in it, for simplicity reasons at 63.2kb each (632kb in total), we save a total of 465kb, seemingly not a great deal on an individual basis.

    Now say 2000 different people read that same review uncached, we save a total of roughly 908mb in outbound data bandwidth for that single review. If 5000 people were to read that review, we are talking gigabytes of bandwidth which can be saved through compression, 2.27gb to be exact. I'll let the stunning numbers speak for themselves.

    Sorta ironic how thousands of people are downloading that article right now!

  17. This will be a common conversation... by Navius+Eurisko · · Score: 3, Funny

    Web Designer 1: "Hey, this JPG compression will save our average 56k user about 5 seconds on load time."

    Web Designer 2: "That's means we can load even more useless content on our website and they won't notice the difference!"

    Web Designer 1: "As well as include more popup and banner ads, too!"

    1. Re:This will be a common conversation... by berticus · · Score: 1

      > Web Designer 1: "As well as include more popup and banner ads, too!"

      yeah. because every web designer out there jumps for joy and wets his/herself out of sheer excitement over the opportunity to work beautiful banner ads into their designs. if only every web site had the fine aesthetics and usability of slashdot (quick! tell me how to search the archives!), we'd all be saved from those stupid designers trying to put some "thought" into the visuals and structure of web sites.

  18. More Interesting News by roryh · · Score: 1

    This is hardly news for the /. crowd. Isn't it supposed to be "News for Nerds"?. More interesting, IMHO, is the fact that Photoshop is out for MacOS X. I'll be interested in what effect this has on the uptake of the OS, and whether it might ever lead to Photoshop on *NIX.

    1. Re:More Interesting News by maggard · · Score: 3
      As the original subject (JEPG - a revolution!) is pretty much useless this at least is more interesting:
      More interesting, IMHO, is the fact that Photoshop is out for MacOS X. I'll be interested in what effect this has on the uptake of the OS, and whether it might ever lead to Photoshop on *NIX.
      Yes, I think this will increase the uptake in MacOS X. Lots of graphics folks have been holding out for this, apparently it's a great implementation and will indeed likely drive much of their marketplace (just think of all of the plug-ins that will need to be upgraded.) The spillover should be a shot in the arm for the whole Mac software market and increase pressure on everyone to make the switch.

      As to this increasing the odds of Photoshop on any other Unix - I doubt it. The MacOS X port is to the proprietary backwards-compatible-with-MacOS "Carbon" layer and not writing to the BSD side of things. Thus it's really the old MacOS Photoshop rewarmed and running mostly on a cleaned-up set of APIs. The other changes that have been made are apparently mostly for interaction with the Quartz graphics layer and Aqua UI, again Apple-proprietary.

      The next-gen evolution will likely be to MacOS X's Cocoa layer, yet again Apple proprietary. Thus unless someone ports Apple's Carbon library to another Unix or Apple decides to make Cocoa cross-platform along with support for a differing rendering layer we're unlikely to see any of this having any relevance to other Unix's. Of course they can all now talk seamlessly to Photoshop through scripting so they're not entirely out in the cold.

      --
      I don't read ACs: If a post isn't worth so much as a nom de plume to its author then I wont bother either.
    2. Re:More Interesting News by Anonymous Coward · · Score: 0

      There used to be a Photoshop for IRIX (SGI's UNIX), but Adobe ceased developing it, and have stopped supporting it.

      I would suspect that if Adobe thought that there would be enough of a market on UNIX platforms, they'd port Photoshop.

    3. Re:More Interesting News by Anonymous Coward · · Score: 0

      As to this increasing the odds of Photoshop on any other Unix - I doubt it. The MacOS X port is to the proprietary backwards-compatible-with-MacOS "Carbon" layer and not writing to the BSD side of things. Thus it's really the old MacOS Photoshop rewarmed and running mostly on a cleaned-up set of APIs. The other changes that have been made are apparently mostly for interaction with the Quartz graphics layer and Aqua UI, again Apple-proprietary.

    4. Re:More Interesting News by Ryu2 · · Score: 2

      Also, there was a Solaris version as well.

      --
      There's 10 types of people in this world, those who understand binary and those who don't.
    5. Re:More Interesting News by hackerhue · · Score: 2
      The next-gen evolution will likely be to MacOS X's Cocoa layer, yet again Apple proprietary.

      If they port it to the Cocoa layer, it may be compatible with GNUStep.
      --

      To get something done, a committee should consist of no more than three persons, two of them absent.

  19. aw shit! by paradesign · · Score: 3, Funny
    you mean i shouldnt have been using TIFs this entire time?!? no wonder my site loads so slow.

    i use LZW, if that helps?

    --
    I want 2D games back.
    1. Re:aw shit! by Ignominious+Cow+Herd · · Score: 0

      Not to ignore the comic intent of this post, but did you know that TIFF files can contain JPEG images? I think most people don't know that TIFF is really just a container for other image formats. I'm really surprised that it hasn't taken off more for Web use for this reason.

      --
      Lump lingered last in line for brains, and the ones she got were sorta rotten and insane.
  20. Wayback machine by freeweed · · Score: 2

    Why does it feel like 1994 all over again?

    JPEG'ing images has been par for the course for any competant web designer since the very incarnation of the WWW.

    This is like having a 'news' article to the effect of

    "Make your HTML code smaller! Learn what the tags actually are and throw out FrontPage!"

    Oooo gee, wow!

    --
    Endless arguments over trivial contradictions in books written by ignorant savages to explain thunder in the dark.
    1. Re:Wayback machine by extra88 · · Score: 1

      Actually in 1994, commonly used browsers did not have support for inline JPEGs.

    2. Re:Wayback machine by GigsVT · · Score: 4, Funny

      Man, now I am going to have to redesign my page to get rid of all those uncompressed TIFFs.

      --
      I've had enough abrasive sigs. Kittens are cute and fuzzy.
    3. Re:Wayback machine by freeweed · · Score: 2

      Good point, hell, I remember versions of Mosaic that didn't seem to support *anything* :)

      Point still stands though.. JPEG support is not only VERY (relatively) old, but proper JPEG use, if anything, was far more important way back when. Try accessing a modern 400K/page site with a 14.4 :)

      --
      Endless arguments over trivial contradictions in books written by ignorant savages to explain thunder in the dark.
  21. Parent post off topic? by NanoGator · · Score: 1, Offtopic

    Somebody modded the parent post here down as off-topic. Would a moderator please re-read the post?

    a.) It was on topic

    b.) It was funny

    --
    "Derp de derp."
    1. Re:Parent post off topic? by Anonymous Coward · · Score: 0

      a.) It was on topic

      yes, it was. The problem is that the comment was useless and equivelant to "f1rst p0s7 d00D!"

      b.) It was funny

      not even close to being funny. I've seen more funny on a Martha Stewart 24 hour marathon than that.

    2. Re:Parent post off topic? by Anonymous Coward · · Score: 0

      Shut up you fuckin cheezer.

    3. Re:Parent post off topic? by Anonymous Coward · · Score: 0

      Somebody modded the parent post here down as off-topic. Would a moderator please re-read the post? a.) It tells moderators how to do their jobs. b.) It has nothing to do with the story.

    4. Re:Parent post off topic? by Anonymous Coward · · Score: 0

      >yes, it was. The problem is that the comment was useless and equivelant to "f1rst p0s7 d00D!"

      So the moderator still screwed up.

      -1, redundant is there for a reason you know.

      See you in metamod!

  22. Watered down article? by winternj · · Score: 2

    For slashdot, I would expect at least something on the order of a tutorial, or perhaps some study on a better compression method for jpeg. obviously 99% of the readers here know that jpeg can be compressed.

    1. Re:Watered down article? by Anonymous Coward · · Score: 0

      I would say closer to 100%. In reality, I would like to see some slashdot articles on how to setup Linux programs and hardware. We preach that Linux is so good, but the method of learning how to do anything isn't very clear.

    2. Re:Watered down article? by Anonymous Coward · · Score: 0

      >obviously 99% of the readers here know that jpeg can be compressed.

      Horray for the 1% who know that images can be compressed using formats like JPEG...

  23. How coincidental. by Cutriss · · Score: 2

    Interesting that this would be posted no less than three days after Penny Arcade's screenshot rant from Wednesday.

    I have to say that I agree with Tycho and Gabe on this one. All too often I'm seeing websites post crappy images claiming that they show intricate detail of upcoming software, yet they compress it to the point that it looks like it came out of one of these.

    --
    "Mod, mod, mod...and another troll bites the dust."
    1. Re:How coincidental. by Ed+Avis · · Score: 2

      It's true, JPEG sucks for screenshots. Yet it can be a lot smaller than GIF or even PNG, so people may use it despite the loss of quality.

      I'd like to see some kind of 'lossy PNG'. PNG files are compressed using the LZH algorithm first used in pkzip, and now used in zlib, gzip and all sorts of places as well as PNG. This works by having a 'sliding window' where the last 32Kbyte or so of data is stored, and then looking back through that window to see if the current sequence of bytes has been output previously. If so, just output a referral back to where the sequence occurred before.

      But what if you modified zlib so it didn't require an exact match? You might say that having one pixel in every ten out of place, or set to a 'close enough' colour (eg dark grey instead of black), is good enough to find a match. Then you could generate PNG images which lost some of the original information, but wouldn't look quite as sucky as JPEG. And any ordinary PNG viewer would be able to display them.

      I don't know whether this would work well in practice but it's worth trying. Probably for dithered images it would be great but screenshots wouldn't be helped much without losing noticeable quality.

      --
      -- Ed Avis ed@membled.com
    2. Re:How coincidental. by Glenn+R-P · · Score: 5, Informative

      I'd like to see some kind of lossy PNG

      That's JNG (JPEG Network Graphics) which is JPEG wrapped in PNG-style chunks along with an optional alpha (transparency) channel. Mozilla will display them and IrfanView will process them.

      The JNG spec is available somewhere on the PNG web site, http://www.libpng.org/pub/png

    3. Re:How coincidental. by Tuck · · Score: 1
      PNG files are compressed using the LZH algorithm first used in ... gzip
      Speaking of gzip, there's also the Apache module mod_gzip which will transparently compress your HTML (or text) on the fly to most browsers. Trade CPU for bandwidth.
      --
      $ find /pub -beer "James Squire Amber Ale" -drink
    4. Re:How coincidental. by Quietust · · Score: 2
      PNG files are compressed using the LZH algorithm first used in pkzip, and now used in zlib, gzip...
      You're partially right... PKZIP used to use LZW-based compression (the kind of compression used in GIF files - the one that's patented by Unisys) back in version 1.x; version 2.x introduced the Deflate algorithm, which is what's used today in gzip/zlib/PNG/etc.
      --
      * Q
      P.S. If you don't get this note, let me know and I'll write you another.
    5. Re:How coincidental. by Ignominious+Cow+Herd · · Score: 0

      Uhhh, I don't think so. Phil Katz created PKARC as a better/faster version of ARC. ARC's creator sued (not Unisys, SEA something or other) and won. Phil changed his algorithm and released PKZIP. Lost the battle, won the war (no one uses ARC anymore). I think that both ARC and ZIP's compression schemes are very LZW-ish, but not the same.

      --
      Lump lingered last in line for brains, and the ones she got were sorta rotten and insane.
    6. Re:How coincidental. by Ed+Avis · · Score: 1

      Yeah I said LZH not LZW. It used to be LZW (SEA ARC and all that) then the 'Deflate' algorithm was introduced. It's a two-stage process: look for sequences in the sliding window (Lempel-Ziv), and then if you ouput a position+length to refer back to an earlier sequence, use Huffman coding to reduce the size of these backreferences. Hence LZH.

      --
      -- Ed Avis ed@membled.com
    7. Re:How coincidental. by Ed+Avis · · Score: 1

      JNG isn't what I had in mind though - it's just JPEG compression underneath. I meant create an ordinary (zlib-compressed) PNG file which is almost, but not quite identical to the original image and so can compress better.

      --
      -- Ed Avis ed@membled.com
    8. Re:How coincidental. by Glenn+R-P · · Score: 1

      JNG isn't what I had in mind though - it's just JPEG compression underneath. I meant create an ordinary (zlib-compressed) PNG file which is almost, but not quite identical to the original image and so can compress better.

      That wouldn't require a new format spec, though, just some precompression processing of the image, like the "smooth" option that's available in the IJG JPEG software, or simple color-reduction that people do already. The result would still be a regular PNG file, decodable by current PNG decoders.

    9. Re:How coincidental. by Ed+Avis · · Score: 1

      Yes, keep the existing format, just do something clever in the encoder.

      One way would be to have a smoothing step before compression, but that's not ideal. The code doing the smoothing wouldn't have any particular knowledge of what pixel sequences compress well or badly. Better to make a hacked version of zlib which tolerates some amount of error when looking to see whether a pixel sequence has occurred previously.

      --
      -- Ed Avis ed@membled.com
  24. Re:*blinks* and this appears on the front page.. w by weave · · Score: 3, Insightful
    Really... I also found it hilarious that the pages are loaded with shockwave ads and large 256 color gif files for simple border bits that could be done in 4 colors.

    Oh well, maybe I'll write an article about how to reduce size of GIF files using a smaller color pallete and turning off dithering so it can compress better... :-(

    This article needs to be shown to just about every web graphics shop out there, but not to us self-righteous nerds! :)

  25. Parent post a Troll? by NanoGator · · Score: 2

    I think he had a valid point. This article really does get filed under 'Duh'. There's a difference between having a negative opinion and trying to be offensive.

    Frankly, I agree with him.

    --
    "Derp de derp."
    1. Re:Parent post a Troll? by Anonymous Coward · · Score: 0

      No shit. "This is news?" I asked no one in particular.

  26. Whoops! by CaseyB · · Score: 5, Funny

    Pardon me, I seem to have accidentally stepped into a conversation from 10 YEARS AGO.

    1. Re:Whoops! by SoupIsGoodFood_42 · · Score: 1

      I'm still puzzeled by the fact that Mozilla RC1 has been released. But I have yet to find an artical about it. Maybe that guy got his time machine working after all.

    2. Re:Whoops! by Anonymous Coward · · Score: 0

      There was an article about Mozilla 1.0RC1 on slashdot. Just not on the main page. So no one saw it.

      The article that talked about it's impending release made the front page. But when the actual release comes... the article is hidden from 99% of the users.

    3. Re:Whoops! by SoupIsGoodFood_42 · · Score: 1
      Yeah... I discovered that a few moments after I posted. Silly me.

      Since the /. editors have posted every point release of Mozilla on the front page. Why on earth decide to stop this trend at 1.0? I would have thought if people where complaining that much about all the Mozilla articals, that they would have atleast done one last one.. Esspecialy since it's 1.0....The version that they've been building up for over the last few years!

      But then again, they could just be waiting for the proper, 1.0 release....Which they probably are. I'll just shut up now.

    4. Re:Whoops! by Basje · · Score: 1

      Where are modpoints when I need them? I've only got one response: ROFL.

      --
      the pun is mightier than the sword
  27. What a useless post... by Anonymous Coward · · Score: 0

    What a useless slashdot post.

    1) That website provided little to no useful info for the average webmaster - who, if they haven't heard of JPG compression, don't deserve that title.

    2) Poor Tweaktown is trying to save bandwidth, so what we do... we SlashDot 'em. Poor bastards probably wish JPG2000 was out yesterday

    3) They'd save even more money if they lost the banner advertizements :P

    Well at least I get to write this lame post on Slashdot which will be loaded by hundreds of thousands of people each wasting exactly 560 bytes of Slashdot's bandwdith. Mwahaha

  28. Hmm... by weird+mehgny · · Score: 1

    In the conclusion, the author mentions GIF. But what about .PNG? Yes, I know that JPEG as a rule of thumb is better than PNG for photo-like images. But for many images... indeed for anything smaller than ~100x100 pixels, but also in random cases for bigger images, .PNG is better than JPEG. Even images that appear to be very complex, and images that don't do well at all as .GIF's, sometimes turn out EXCELLENT as .PNG's, way smaller than JPEGs and with perfect quality.

    This is not the case for their sample image, but, umm, I'd just like have said anyway that some people are way too quick to save their pics as blurry JPEGs without trying the alternatives.

    1. Re:Hmm... by Anonymous Coward · · Score: 0

      I think the author of that article will discover PNG about 6 or 7 years from now.

  29. Parent is more on-topic than you think by Anonymous Coward · · Score: 1, Insightful

    Yatta! We are the wad of dough! Who dong hide?

    Translation: "All right! We are the world! We just go to bed."

    These are lyrics from "Yatta!" by Happatai (the Japanese version of the Village People), as interpreted in "Irrational Exuberance", a popular Flash music video of the song.

    Surprisingly, the parent is somewhat on-topic because Flash videos use JPEG compression technology to save bandwidth.

  30. Come on..... by josh+crawley · · Score: 5, Insightful

    Now, I can understand if slashdot wants to put techie reviews or such other geek stuff. That's understandable, in the case of YRO, company product release (that april spoof about sponsoring products was true, wasnt it?), and software issues.

    HOWEVER, this is a geek site, which we talk as deeply as going about SMP on x86 systems and remodding systems into other cases (mechanics and engineering, lest that be software or hardware). However, that journalistic line (if there even was that line) has been crossed with this idiotic article. Let's re-read this again to see if it doesnt state the obvious. Also, I'm going to _assume_ that techie people on this website (most all) knows that jpeg is a compression....

    Compression - The Bandwidth Saver

    Hell, even non-techie people still know that if I zip that file, it doesnt take as long.... This article just insults our intelligence. Slashdot is becoming more and more like TechTV for the net.

    And as a last mote, moderators, pay attention to *important stuff* below every post. This article is anything but offtopic.

  31. Poontos - The fresh maker! by Typingsux · · Score: 1, Offtopic
    --
    The above post is an editorial, the poster cannot and will not be held responsible for all or in part for it's contents
  32. Old news. by Anonymous Coward · · Score: 0

    Come one, this is so stupid!

    I thought the JPEG vs GIF and later JPEG vs PNG thing had been resolved _years_ ago!

    How did this get into the front page?

    This should be "News for Nerds."; does the editor honestly think that an average geek (nerd) wouldn't know this stuff already? I bet a number of ./'s readers could actually _implement_ JPEG if they where given the standard.

    1. Re:Old news. by Anonymous Coward · · Score: 0

      This just in: Power Sauce is amazing!

  33. Choose your compression with care... by tjwhaynes · · Score: 5, Interesting

    While compressing your images should be right up there on the Web designer 101 course, sometimes I despair that the wrong types of compression are chosen.

    JPEG is an excellent compression method for photographic images, both colour and greyscales. The image distortion is not noticeable by most people even at high compression ratios and the resulting image is close enough to the original.

    JPEG is NOT an excellent compression method for line diagrams, maps and bitmaps featuring a limited colour palette - the artifacts created by the transforms used by the algorithms blur rapid changes in colour and can make text unreadable. Even worse, for most diagrams, PNG lossless compression yields smaller results because of the limited palette and large amount of redundancy inherent in the data.

    JPEG 2000 promises even better compression ratios with superior image quality. Wavelet compression methods tend to reduce the amount of blur caused by the discrete cosine transforms and are better at handling rapid changes in colours. But that doesn't mean that it is a blanket solution.

    I also look forward to the day when SVG is a widely available and widely supported browser option. We can all benefit when complex layouts can be described in terms of vectors and colour fills rather than overlarge and complex bitmaps for the classic web page touches like 3D colour balls and arrows. That will also save bandwidth while increasing the flexibility and variety of images on the web.

    Cheers,

    Toby Haynes

    --
    Anything I post is strictly my own thoughts and doesn't necessarily have anything to do with the opinions of IBM.
    1. Re:Choose your compression with care... by Anonymous Coward · · Score: 0

      Adding my emphasis:

      "Even worse, for most diagrams, PNG lossless compression yields smaller results..."

      Huh? I'm tired. Please explain how it's a worse thing for a PNG to produce a smaller result?

    2. Re:Choose your compression with care... by tjwhaynes · · Score: 2

      No no no! Thats not what I meant (mayb I'm tired too :-) )! JPEG compression of simple maps produces worse images and larger files than PNG. So choosing JPEG for a map is a worse decision than using PNG on all counts.

      Cheers,
      Toby Haynes

      --
      Anything I post is strictly my own thoughts and doesn't necessarily have anything to do with the opinions of IBM.
    3. Re:Choose your compression with care... by Tablizer · · Score: 1

      (* JPEG compression of simple maps produces worse images and larger files than PNG. *)

      But PNG is not supported well on some older editors and browsers, and GIF (the other line-friendly alternative) results in royalty payments to that greedbag Unisys.

      The problem with both types of compression is that images that have both lines/text *and* smooth gradiations come out crappy or fat regardless. Jpeg messes up the line edges, and GIF/PNG don't handle subtly changing gradiations very well. Some sites try to mix them, but it is like doing brain surgury to split an image into a bunch of tiles so that some can be Jpeg files and the others GIF/PNG.

      What is needed is a format in which you can select which *areas* in the image to optimize, both in terms of which compression technique to use and in terms of how much resolution/palette to devote to it. Many GIF tools have localized palette optimization so that you can, for example, keep facial colors relatively faithful, since that is where people tend to pay the most attention to (or at least notice if distorted). But, it still does not help much on the gradiation parts.

    4. Re:Choose your compression with care... by netsharc · · Score: 1

      The fact that PNG can do that magic makes the article worse because then the article becomes more misleading/inaccurate.

      --
      What time is it/will be over there? Check with my iPhone app!
    5. Re:Choose your compression with care... by Anonymous Coward · · Score: 0

      Look into DjVu/MrSid (www.lizardtech.com).

      Some good examples can be found at http://memory.loc.gov/ammem/gmdhtml/rrhtml/rrhome. html

    6. Re:Choose your compression with care... by Anonymous Coward · · Score: 0
      Huh? I'm tired. Please explain how it's a worse thing for a PNG to produce a smaller result?

      Sheesh. If it's too good the first time how are we going to get them to pay for the upgrade? -Billy G.

    7. Re:Choose your compression with care... by Tablizer · · Score: 1

      (* Look into DjVu/MrSid (www.lizardtech.com). ....
      Some good examples can be found at http://memory.loc.gov/ammem/gmdhtml/rrhtml/rrhome. html *)

      Maybe I am not looking at the right one, for they have a lot of products.

      But, it looks proprietary. I am thinking about an open standard.

    8. Re:Choose your compression with care... by stonecypher · · Score: 1

      > I also look forward to the day when SVG is a
      > widely available and widely supported browser
      > option. We can all benefit when complex layouts
      > can be described in terms of vectors and colour
      > fills rather than overlarge and complex bitmaps
      > for the classic web page touches like 3D colour
      > balls and arrows.

      (cough)

      It's called Flash, and it's been common since before *NG (the graphics that are cool because "network" is in the name.)

      PHP has been able to make Flash on the fly for a few years, IIRC.

      --
      StoneCypher is Full of BS
  34. JPEG is not appropriate for all images by Ryu2 · · Score: 4, Informative

    The article didn't discuss the merits of other formats vs. JPEG enough. Namely, non-photograhic images, with few colors and mostly large solid areas, such as icons, bullets, line drawings, diagrams, charts, etc. are not optimal for JPEG.

    In such cases, GIF and PNG will yield much better compression than JPEG, and also look nicer, since they're lossless. Compressing such images with JPEG will give you ugly "ringing" artifacts, since the lines are essentially infinite-frequency "spikes" which you can't capture completely.

    --
    There's 10 types of people in this world, those who understand binary and those who don't.
    1. Re:JPEG is not appropriate for all images by benwaggoner · · Score: 2

      You can also get smaller file sizes with GIF and PNG for many kinds of content, even though they're lossless.

      I've had full 800x600 MacOS 9 screen shots compress down to 20K, losslessly, with PNG. JPEG even at Q=0 couldn't make a file that small, and it still looked gawdawful.

      While the distinction is often described as natural images versus synthetic images, 3D rendered stuff should be treated as natural images.

      The real issue is whether there are large areas of EXACTLY the same color, and sharp edges. In a typical screen shot, you might have several 100x100 blocks of exactly the same color. PNG and GIF do a wonderful job with those. They also do a great job with sharp edges, while the Discreet Cosine Transformation of JPEG causes a lot of artifacts with those, or requires a lot of bits to encode them accurately. So something simple as a black line on a white background is quite mathematically complex for JPEG to render.

      Overall, PNG will give slightly smaller files, and more importantly provides for more than 256 colors. I look forward to when it is ubiquitously supported by all browsers.

    2. Re:JPEG is not appropriate for all images by stdPikachu · · Score: 1

      I quite agree; .gif and .png are far FAR better at compressing images with a limited colour table, such as button, banners etc, as well as producing no noticeable (to me anyway) artifacts.

      And yet the article makes sod all mention of any other method of compression other than .jpeg and (to a lesser extent) .jpeg2000, apart from the token mention of .gif on the last page.

      If I remember correctly, the .jpeg compression uses 16 million colours only, with gif and png using 1-128 with dithering options with which you can chop image sizes in half from jped sizes if you're clever enough.

      My Photoshop (5.5) has the excellent "save for web" utility where you're shown a preview of what the image (or up to three thumbs) will look like at a particular compression ratio, compared to the original - surely PSP has something similar?! This has made me able to get images as small as possible whilst still making them look good to the casual eye.

      Bah, silly silly article!

      --
      They have computers, and they may have other weapons of mass destruction.
    3. Re:JPEG is not appropriate for all images by the_olo · · Score: 1

      > Compressing such images with JPEG will give you
      > ugly "ringing" artifacts, since the lines are
      > essentially infinite-frequency "spikes" which you
      > can't capture completely.

      The occurence of those artifacts is called the Gibb's effect.

  35. But... by iONiUM · · Score: 1

    We should keep this quiet. If advertisers figure it out, we'll get even more pop up windows, crammed with more crap than ever before, because it'll be cheaper. Keep them using bitmaps! Or Gifs even!

  36. I wish we could moderate articles. by Anonymous Coward · · Score: 0

    Because this one would be (Score: -1, Redundant)!

  37. GIMP anyone? by Sean+Clifford · · Score: 2
    Uh, what about GIMP?

    Sure, PhotoShop is nice - if you're running a Mac or Microsoft Windows(TM) box and a grand laying around. Paint Shop Pro is pretty nice, does most of what PhotoShop does for a tenth the price - if you're suffering under a MS OS. But hey, you can download GIMP for FREE. Heck, they even have a Microsoft Windows(TM) port. Sure, you can't save GIFs or dick with TIFFs, nor can you do a lot of stuff you can do in PhotoShop.

    However, GIMP is great for most image manipulation needs.

    1. Re:GIMP anyone? by pdiaz · · Score: 1

      Of course you can save .gif/.tiff files with gimp: apt-get install gimp-non-free (or consult compilation options)

      --
      Make It Secret . Free JavaScript implementation of AES for your browser
    2. Re:GIMP anyone? by Sean+Clifford · · Score: 2

      Assuming you don't care about the patent issues, sure.

  38. Shenanigans? by Anonymous Coward · · Score: 0

    An article from www.tweaktown.com, submitted by Mr Tweak, who happens to be the webmaster of www.tweaktown.com. Next thing we know, we will be getting articles about stretching your anus from George Oatse, who happens to be the webmaster of goatse.cx

  39. Now if only... by ZoneGray · · Score: 3, Funny

    Now if only they could convince people to build pages that have fewer than 100 GETs, it might actually make a difference.

  40. Impeach Hemos by Anonymous Coward · · Score: 0

    As can be easily sdeen from this article, Hemos has no idea what a computer is and is currently on a tropical island approving stories by avain carrier(and not even ip, but Lan Mangaer 2.x). Therefore we must IMPEACH HEMOS

  41. Quality and depth of articles (lack thereof) by Anonymous Coward · · Score: 0

    Has ZDTV or CNET News.com bought out Slashdot or something? I seem to have missed the annoucement...

  42. How jpegs work. by furchin · · Score: 4, Informative

    I got trapped into clicking the link to the article, thinking it could be something useful about jpeg compression and how it works. The story certainly implied that. How disappointed I was, and I agree with most people that this is one of the dumbest stories ever. This kind of story belongs in a site for amateur wanna-be web designers, not geeks. Anyway, since I've gotten all caught up in this, and you're here too, maybe we can have a useful discussion on How JPEG Compression Works.

    I am by no means an expert, and I believe this is a gross simplification of the process, but here is what I think happens. The jpg alg breaks the image apart into 8 pixel by 8 pixel subimages. (Don't ask how it handles pictures that are not n*8 x m*8 in size). Then it treats each of those images with a process very similar to principal component analysis, where a set of representative images are given associated multipliers of how much of that image to add into the reconstructed original image the user is trying to get. These representative images are ordered from least to most detailed, and since they are known to both the compressor and the uncompressor (depressor? :), only the associated values need to be stored. I believe the first image deals with how much darker the left half is than the right half of the image, the second does the same thing horizontally, the third deals with how much darker the leftmost quarter of the image and the third quarter of the image are darker than the other two, and so on...

    So how does one adjust image quality / compression? Well every possible 8 x 8 picture can be represented with 64 of these representative images. However, since the 64th deals with *really* minute details, then you can get a decent reconstruction using just 63. It all depends on the image you are trying to compress, but can probably get away with even just the first 20 of the basis images. Oh, for the record, I'm talking about grayscale here. I think you'd need to ramp things up by a factor of 3 to do rbg.

    If someone wants to fill in any gaps or factual inaccuracies, certainly do so.

  43. Whoa there.. by toby360 · · Score: 1

    How'd something like this get slashdotted? Shouldn't a web site that deals with quantum mechanics, astrophysics, supercomputers, wireless networking standards, etc. be beyond "jpeg" compression? Thank you for wasting 5 minutes of my life and telling me that you can compress jpegs. Sorry if this seems like flame, but someones got to say something.

  44. Does GIF creation require Unisys license fee? by Anonymous Coward · · Score: 0

    If so, when will this bloody patent expire?
    I thought the patent expired last year, but I have read contradictory information all over the place.

  45. Re:*blinks* and this appears on the front page.. w by dr00g911 · · Score: 1

    FWIW: slight addendum.

    In PS7, choose "Save for Web-->Jpeg" and not "Save-->Jpeg"

    Why? The images come out significantly smaller / more optimized -- and, specifically for those of us on the Mac, don't have the extra 16k of resource fork / icon data.

    --dr00gy

  46. News for NERDS by eander315 · · Score: 1
    "If you own a website and don't yet have knowledge in the field of JPG compression, you should find this very interesting indeed..."

    If this statement is true, you probably aren't reading it on Slashdot.

  47. compress text too by lmd · · Score: 1

    This is slightly off topic but almost anyone can compress text, too. Of course, JPG compression is better than text compression but every little bit counts.

    You can download a copy of mod_gzip here for Apache.

    --


    Just my $0.04 (adjusted for inflation)
  48. Hail the king ! by tandr · · Score: 1

    MP3 compression !

    I cannot even imagine what would happens to bandwidth if all MP3 files will be uncompressed... Total slashdotting probably

  49. Seriously people... by quantax · · Score: 1

    Jesus, come on here Slashdot, why the hell would you post this as a frontpage item? This is like posting 'Newbies Guide to Webpages'. Lets use a little more discression when posting stuff, esp rediculous crap like this. If your reading slashdot and you do not have any knowledge of JPEG compression, you should probably kill yourself for the greater good of humanity. This is some basic stuff that even my little bros (who only know how to browse the web, talk with friends on AIM, and make basic webpages) are familiar with. Don't insult us with this sort of material.

    --
    "What can a thoughtful man hope for mankind on Earth, given the experience of the past million years? Nothing." -Bokonon
  50. There should be a law by rburkatpinkbike.com · · Score: 1

    As an ISP company I find it very offensive that such advents in technology will cost us money in lost sales revenues.
    Since reading about this revolutionary JPEG format I am appalled that the ISPs are not lobbying the government for an injunction on this technology. It says 25:1 reduction in bandwidth.....does this mean our revenues will fall by a factor of 25 if all our customers adapt this new technology? That is appalling. What can we do to stop this?
    - :) Sweet article!

  51. wow!! by Morgahastu · · Score: 1

    This just in: things that cost less save you money! Oh was I stating the obvious. Sound familiar though? Compression saves you bandwidth!

  52. Instead of GIF, use PNG or SWF by yerricde · · Score: 5, Informative

    Although jpg compression is definitely helpful, the article forgets to mention that two image formats are supported by all browsers. GIF being the second.

    In addition, 4.0 and newer browsers support Portable Network Graphics (PNG).

    GIFs should be used for vector based graphics

    No they shouldn't. Use PNG for still images. Use SWF (now an open format) or MNG (not much browser support yet but works in Mozilla and Konqueror) for animations.

    and provides a better overall quality/size advantage when done right.

    PNG can be 10% smaller than GIF when crushed properly.

    --
    Will I retire or break 10K?
    1. Re:Instead of GIF, use PNG or SWF by shobadobs · · Score: 1

      [...] 4.0 and newer browsers support Portable Network Graphics (PNG).

      Wrong. Iexplore still can't render any PNG image with the least bit of transparent decency.

      But everything else is so true.

    2. Re:Instead of GIF, use PNG or SWF by Anonymous Coward · · Score: 0

      IE doesn't render PNG properly, therefore PNG sucks?

      (shakes head)

    3. Re:Instead of GIF, use PNG or SWF by Anonymous Coward · · Score: 0

      Let's not argue from a "what's right" perspective, imagine yourself as a web designer. The vast majority of your audience is going to be using a particular browser. You want your website to be viewed by a lot of people. Therefore, you should use a format that most people are going to see correctly.

      It's necessity.

    4. Re:Instead of GIF, use PNG or SWF by SandSpider · · Score: 1
      In addition, 4.0 and newer browsers support Portable Network Graphics (PNG).


      I'm afraid this statement isn't true, at least on a Mac. A OS9 Macintosh uses the Quicktime plugin in order to render PNGs. An out-of-the-box configuration doesn't have everything linked up in order to view it properly. Granted, it doesn't affect a lot of people, but I want my web pages to be viewed by the highest possible audience. Not because I get a lot of traffic, but because the people who do visit are usually compatibility snobs. Heh.


      Of course, for the commercial web sites I work on, compatibility is definitely a top priority, so it'll continue to be JPG and GIF. "Don't see any pictures? Download Quicktime Here!" is a good way to lose traffic.


      =Brian

      --
      There is nothing so good that someone, somewhere, will not hate it.
    5. Re:Instead of GIF, use PNG or SWF by shobadobs · · Score: 1

      PNG doesn't suck, and I use it all the time instead of GIFs, but the fact is, IE still sucks at rendering PNG,

    6. Re:Instead of GIF, use PNG or SWF by PatSmarty · · Score: 1

      Your server should send pictures in a format that the browser says he understands - if you haven't found out yet, every time a browser asks for something from your webserver, it sends a list of formats it understands, including picture formats.

  53. aol recompresses your jpegs by Chaostrophy · · Score: 5, Informative

    At my last job, we wondered why our carefully tuned images looked like shit on AOL. We found they were recompressing our jpegs to make them much smaller (and thus lower quality). So we now send AOL really high quality jpegs so that our images don't get trashed as badly by AOL.

    --
    Plato seems wrong to me today
    1. Re:aol recompresses your jpegs by DocStoner · · Score: 1

      Are you talking about how aol converts jpg to *.art files? IIRC, this is an option you can turn off in aol's preferences for the web browser. It was one of the first things I discovered when I *cough* used to use aol.

    2. Re:aol recompresses your jpegs by nytmare · · Score: 1

      I believe this was the sole basis for AOL's claim that AOL loads web pages faster. Too bad it also makes web pages look crappier. AOL never explains this; you have to figure it out. I don't know if they still make this claim.

    3. Re:aol recompresses your jpegs by DrXym · · Score: 2
      AOL uses something called ART format and compresses and caches incoming images into that. I guess when you have 30 million users it saves a LOT of money, space and bandwidth to do this rather than fetch them from the net each time.


      I think AOL has a pref on the user side to disable this behaviour. You should search their site because they might have some way to disable it on the server as well, for example by inserting a meta tag or http header to data as its pushed out.

  54. I didn't know by Morgahastu · · Score: 1

    it was possible not to know about jpeg compression.

  55. Evil by t_allardyce · · Score: 1

    Lossy compression is evil, it is the polution of our time. But, like the polution of the real world, without it we would be held back, just as without cars and planes and factories we would be held back too.

    Bad compression artifacts and degredation after generations of compression and editing piss me off more than anything in the world.

    --
    This comment does not represent the views or opinions of the user.
    1. Re:Evil by Graspee_Leemoor · · Score: 2

      Yes, you're right- we live in a compressed age. Our digital TV is compressed, our movies are compressed, our music is compressed, our images are compressed.

      Where we used to get uncompresssed we now get compressed because although the quality is worse, we can fit more stuff on whatever medium comes on.

      I was just starting to really get pissed off about the world we live in, and then I discovered that Opera (which I only started using yesterday after using Mozilla for a while) hides the mouse pointer while you are typing- at last! Sanity! No more elbowing the mouse out of the way while typing in usernames on websites! Hoorah!

      graspee

  56. Spam... by Anonymous Coward · · Score: 0

    A story submitted by "Mr.Tweak" about a website called TweakTown. So those Slashvertisements weren't an April fool prank, hmm? If anyone would like to personally voice their disgust with Mr. Cameron "Tweak" Wilmot over this obvious co-opting of Slashdot, why don't you give him or a call or drop by? I'm sure he'd appreciate it.

    Wilmot, Cameron
    camwilmot@tweaktown.com
    295 Manifold Street
    Camperdown, VIC 3260 AU
    61355932666

  57. Re:Impeach George W. Bush @# +1 ; Patriotic @# by Anonymous Coward · · Score: 0

    I didn't read your message because it seemed dumb and off-topic but all I can say is I agree: I think we should use JPEG compression on Rumsfeld -- I think we'd get some good results.

    _
    WINDOWS USERS CLICK HERE!

  58. Re:*blinks* and this appears on the front page.. w by ZoneGray · · Score: 2

    Hey, the RIAA seems to have people trolling Slashdot now, so articles on the basics are necessary.

  59. JPG Compression... by OrangeHairMan · · Score: 2, Informative

    http://www.spinwave.com/crunchers.html is a great free website that can compress your JPEGs (and GIFs)...I use it all the time for the images on my site.

    Orange

  60. Huh? by xihr · · Score: 0, Offtopic

    Is this really supposed to be news?

  61. Nobody here seems to mention the DjVu format... by cengique · · Score: 1

    I thought this has become common knowledge, but there's a bitmap compression format called DjVu invented at the AT&T Labs in 1998 which has significant advantages over the currently popular formats (JPEG, PDF, etc.). They advocate that their format is best suited for scanned documents.

    1. Re:Nobody here seems to mention the DjVu format... by maggard · · Score: 2
      I thought this has become common knowledge, but there's a bitmap compression format called DjVu invented at the AT&T Labs in 1998 which has significant advantages over the currently popular formats (JPEG, PDF, etc.).
      Darling, there are literally hundreds of alternative image compression routines. Even discounting the really oddball ones there are still over 20 well known ones vith general appliciability (btw PDF is a file format; while it can contain objects compressed using a number of well recognized formats it isn't one itself.).
      They advocate that their format is best suited for scanned documents.
      Right, because DjVu attempts to differentiate an image foreground from the background and compress them differently. This is useful for situations where there is a high-contrast between a foreground and a background (assuming such can be identified), one is primarily interested in one layer over the other, and there's no problem with using an oddball format with only one implementation that has apparently been left to languish.

      While these constraints aren't an issue for folks attempting to document illuminated manuscripts and other like materials they are very much a problem for folks on the World Wide Web. Unless you're going to insist on sending hapless browsers to an English-only website for an obscure plugin that few servers even have MIME-mapping for anyway, insist they install this plugin to their browser & OS assuming they're even supported ( oh wait - the website is now dead! ) then come back to browse a website, well good luck.

      In the meantime the rest of us will lumber along using more general-applicability formats already widely supported by tools and browsers such as GIF, JPEG, increasingly PNG and somewhat TIFF. Let us know when you read another technology-of-the-future article from '98 though! Hey, check out IFF, another where-is-it-now (for good reason.)

      --
      I don't read ACs: If a post isn't worth so much as a nom de plume to its author then I wont bother either.
    2. Re:Nobody here seems to mention the DjVu format... by cengique · · Score: 1
      ... there's no problem with using an oddball format with only one implementation that has apparently been left to languish.

      Well, they have an open-source project at sourceforge, and they provide utilities to convert to other formats.

      While these constraints aren't an issue for folks attempting to document illuminated manuscripts and other like materials they are very much a problem for folks on the World Wide Web.

      I agree, but it is useful for people like me who needed a scientific article which was offered only in DjVu format (conference proceedings, which is very difficult to find normally on the web, due to their large volume). Check CiteSeer (a database for research papers) for example, and the conference proceedings I mentioned was NIPS.

      DjVu offers high rate of compression in the kind of documents you very well explained. Which is why it is useful for the people in the scientific community who is in need to communicate large volumes of research papers.

      Let us know when you read another technology-of-the-future article from '98 though!

      Gee, thanks.. That's a nice reply now. Whatever I've written was due to things I found out very recently, and somehow the DjVu web site is not down.

      However you may be right in saying the format will disappear soon, this is not a valid reason to disregard this format when it can be useful for some of us.

  62. You got it all wrong. by Anonymous Coward · · Score: 0

    Its new for idiot or geocities website builders now apparently.

  63. Not a terribly informative article by Mwongozi · · Score: 2

    He doesn't appear to know a lot about what he's talking about. He calls a jpeg saved at 25% compression "25:1", where in fact the quality setting has direct relationship with file sizes.

    Here are some tips I've found over the years of putting together web sites:

    • There's no difference between saving at 95% quality and 100% quality, other than file size. It's pointless to make jpegs at >95% quality.
    • 75% quality is what I call "print quality", because it's the highest compression you can get away with on paper before people start saying "Eww, jpeg".
    • 50% quality is usually the smallest you can make jpegs for viewing on the web before people start noticing.
    • Use 5% or 10% quality for ultra-ultra small files, although they will look pretty terrible. Anything less than 5% quality is pretty much unusable.
    1. Re:Not a terribly informative article by Superkind · · Score: 1
      Use 5% or 10% quality for ultra-ultra small files, although they will look pretty terrible. Anything less than 5% quality is pretty much unusable.
      Somewhere in the documentation for libppm (or libpbm? Don't know exactly) is stated: "Try --quality=2 (or so) for some amusing Cubist effects."
      --
      (In desperate search for a cool /. sig.)
  64. In other news by Anonymous Coward · · Score: 0

    Slashdot announces that selection of articles for publication has been contracted out the US Patent and Trademark Office.

  65. interesting article... by um...+Lucas · · Score: 4, Interesting

    It would be interesting, if it'd been written and posted in 1992, rather than 2002.

    I don't know who i'm most disappointed in.

    A - Tweaktown, for posting such an inane article in the first place
    B - MrTweak, for relaying it to slashot. Of course, he probably wrote it.
    C - Hemos for posting it.

    I mean really... the whole thing reeks of MrTweak wanting more site traffic and turning to slashdot with a story about anything to get it. Like "oh my god, i didn't know i could COMPRESS graphics?"

    Proposal to slash: never accept submissions from people with obvious links to the article in question...

    1. Re:interesting article... by libertynews · · Score: 2

      How about all 3? For some dumb reason I skimmed through the whole article, wondering where the meat was.

      Its a sad day when Slashdot starts posting trivial crap like this (not that the article per-se was crap, but it was written for a complete web-newbie).

      Anyone know of any geek sites with higher standards than Slashdot? I think its time to find a new place to get my nerd-news.

      Brian

      --
      Remember Lexington Green!
    2. Re:interesting article... by ealar+dlanvuli · · Score: 1

      I've been looking for a while, haven't found one yet =/

      if anyone does find something tell me!! please

      --
      I live in a giant bucket.
  66. JPG compressed? by ZaneMcAuley · · Score: 2

    Wasnt that originally the idea for Jpeg?

    --
    ----- Whats wrong with this picture? http://www.revoh.org:1234/whatswrong
  67. A better title for this... by rossz · · Score: 4, Funny

    would be "Stating the fucking obvious."

    Jeez. Why is this on slashdot?

    --
    -- Will program for bandwidth
    1. Re:A better title for this... by Anonymous Coward · · Score: 0

      I think your second sentence answers the first. I
      wonder if Cmdtaco jumped over any sharks lately. In
      anycase, I'm outta here.

    2. Re:A better title for this... by kubrick · · Score: 1

      Maybe the editors are doing their bit to encourage the 'Slashdot Blackout'? :)

      --
      deus does not exist but if he does
    3. Re:A better title for this... by sharkey · · Score: 2

      Because the editors can't remeber what stories they posted an hour ago, and repost them. How can you expect them to recognize that something is, has been, and will be obvious for the forseeable future?

      --

      --
      "Outlook not so good." That magic 8-ball knows everything! I'll ask about Exchange Server next.
  68. The pain of rejection by Sloppy · · Score: 4, Funny

    I submitted this story in 1990 and it was rejected. What gives?

    --
    As copyright owner of this comment, I authorize everyone to defeat any technological measure which limits access to it.
  69. I thought JPEG was self explanatory. by Morgahastu · · Score: 1

    from webopedia: "JPEG: Short for Joint Photographic Experts Group, and pronounced jay-peg. JPEG is a lossy compression technique for color images. Although it can reduce files sizes to about 5% of their normal size, some detail is lost in the compression."

  70. ummm by Anonymous Coward · · Score: 0

    Photoshop used to be available for IRIX, so its not REALLY the first *NIX version. The IRIX version used to be INSANELY expesive, though, relative to its PC/Mac counterparts. I think they discontinued it somewhere around the 3.0 rev.

  71. Just wanna than MS... by Anonymous Coward · · Score: 0

    Thank dimwits for "enabling" bmp images in your pos browser.. they are soooo fit for Net use...

  72. Re:Impeach George W. Bush @# +1 ; Patriotic @# by Anonymous Coward · · Score: 0
    all I can say is I agree: I think we should use JPEG compression on Rumsfeld -- I think we'd get some good results.


    Guiness Book of World records:
    Greatest efficiency in compression ever recorded June 2002, George Bush. A 1 to 0.0000000027 compression factor was observed as the former president was reduced to his fundamental signature. A dried out cow-chip smelling of tequila and angus.

    Previous record holder Donald Rumsfeld, 1 to 0.0000541423 factor observed. Compression revealed a transvestite midget chearleader with a law degree.


  73. just nuke the trash in the .jpg file by coyote-san · · Score: 3, Informative

    If you want to save bandwidth, just nuke the trash various image editing tools leave in the .jpg file. (E.g., use jpegtrans(1))

    Maybe you want to keep thumbnails in images on your development system, but all they do is burn bandwidth on the production system. You can usually reduce the size by a significant amount, even if you decide to add your own copyright messages, etc.

    --
    For every complex problem there is an answer that is clear, simple, and wrong. -- H L Mencken
  74. Old news by Calyth · · Score: 1

    I used to have a C&C:TS site, and there were many people who commented that my site loads like lightning comparing to other sites. Guess what kind of compression I used?

  75. Re:Where the FUCK are the KDE3 debs??? by Anonymous Coward · · Score: 0

    wake up sandbag.
    readme

  76. Who wants to bet Mr. Tweak is Hemos' pal? by Blaede · · Score: 2, Funny

    Mr. Tweak "submitting" a story about his own site, and Hemos going "yeah, now this is TECH!!!!!!!!!!"? Or is Tweaktown allied with /. in some way? No one reads this site anymore for the info, the reader comments are the most entertaining now. /. has become a joke regarding tech news.

  77. Re:Layne Staley-lead singer of Alice in Chains-dea by Anonymous Coward · · Score: 0

    I heard some details, for example that his body was partially decomposed. Slashdotters can certainly relate to being so friendless and unimportant that nobody would even notice if they keeled over dead some day. Heck, if RMS died in his apartment even the smell wouldn't tip off the neighbors since they wouldn't notice any difference from the usual stench.

  78. Saving Bandwidth? by ClickNMix · · Score: 1
    The article states: As a webmaster, I'm always looking for new ways to reduce the total amount of bandwidth (website data being requested by client and sent from server) our website uses to save money on what can be expensive monthly hosting bills.

    Strikes me as ironic the amount of EXTRA bandwidth is been used by having slashdot users flood over there...

    --
    I saw the light at the end of the tunnel... But it was just someone with a flashlight bringing more work.
  79. Re:*blinks* and this appears on the front page.. w by 56ker · · Score: 2

    If you do why not submit it to Web Monkey?

  80. Must be a security breach by Anonymous Coward · · Score: 0

    This is my only explanation for an article like this. Some got in and posted this article for fun.

  81. Wow a new format! by techstar25 · · Score: 1

    All this time I've been using .psd for all my images on my websites. Compression, what a novel idea!

  82. a few years too late by Anonymous Coward · · Score: 0

    Image sizes have no impact on surfing today. Back in the day when most people had a 56k or slower modem, 100k images were painful to deal with. These days it's large java applications, flash advertisements and streaming media that impact your bandwidth. JPG2000 would have been really interesting back in, say, 1997 or before.

  83. /. Slashdot /. by Anonymous Coward · · Score: 0

    Slashdot. News for Retards, Stuff that's Obvious.

  84. I'm always for by Jacer · · Score: 1

    FASTER LOADING pr0n!!!!

    --
    --fetch daddy's blue fright wig, i must be handsome when i release my rage
  85. What's JPG compression? by autopr0n · · Score: 2

    Did you mean JPEG?

    I once had a die-hard mac user tell me that "JPEG" pictures evolved on the mac, because they had a four letter name, and type and creator info on mac files was four letters long. Nevermind that it was named after the Joint Photographic Experts Group...

    --
    autopr0n is like, down and stuff.
  86. If you own a website and... by panck · · Score: 1

    If you own a website and don't yet have knowledge in the field of JPG compression...

    Then I'm happy to inform you that you have WON a FREE LIFETIME ACCOUNT on CCDoubler.com!!! Just enter your credit card number in the blank, and you will get your credit limit DOUBLED automatically FOREVER!!!!
    So cool, you should sign up now!
    And everything you charge to your credit card will get automatically refunded immediately!!! IT's so COOL you'd have to be CRAZY to not sign up!!!

    --
    "What thou shalt not, I shalt did!" -Bart Simpson
  87. news for nerds? by bilbobuggins · · Score: 1

    what on earth is going on?
    this is an article on how to move a slider. i would hope the fact that sliders are moveable is not news to any nerds.
    the only thing this article did for me was confirm that WinXP is ugly as hell which I don't think is really groundbreaking news either...

  88. Re:*blinks* and this appears on the front page.. w by Anonymous Coward · · Score: 0

    when i first saw this i though perhaps it was talking about zipping jpegs, which i just learned recently can save quite a bit of space (esp on ones created in photoshop)
    then i kept reading.. wtf is this doing on slashdot..
    doesnt everyone who has used the www more than twice know what a jpeg is?

  89. Re:*blinks* and this appears on the front page.. w by deleuze · · Score: 1

    You may also write an article for them about how to nest table-tags correctly.

    With my browser the article was somewhere south-east of the "vote for this site" ad.

    It's really annoying to have to use IE only because this special error condition isn't already handled by your alternative browser.

  90. What's with all the *.3 filenames!! by FrostedWheat · · Score: 1

    Why can't people use JPEG instead of JPG ... is it so hard to type that one extra letter?!

    It annoys me a lot when I see 'index.htm' or 'picture.jpg'.

    But then I'm easily annoyed ....

    1. Re:What's with all the *.3 filenames!! by Servo5678 · · Score: 1

      Back in 1996 when I was creating a website to be hosted on the now-defunct Prodigy personal webpages server, if I used a file extension that was not 3 letters, the system would gripe and insist that 4 letter extensions were not allowed. Apparently their server system only allowed 3 letter extensions. Perhaps other servers out there use a similar set up and forbid non-3-letter extensions.

    2. Re:What's with all the *.3 filenames!! by FrostedWheat · · Score: 1

      Oh please no!!! Tell me it's not true!! Someone has ported Apache to Win3.11 !!

    3. Re:What's with all the *.3 filenames!! by Keitarou · · Score: 1

      I miss w3.11 (and 9x too). Yes, they were stupid and crashed, but you could easily change the icons of their msgboxes, or their startup screens. If you try doing it on 2K and above, you need to circumvent their digital signature check and other messy stuff like that.

      And there was something nice and innocent in 3.11 - it also took it less time to boot and you could exit to DOS. Ah yea.

      (Damn, the window title is so pathethic.. "JPG Compression - The Bandwidth Saver". I demand a public apology from Hemos)

    4. Re:What's with all the *.3 filenames!! by psamuels · · Score: 1
      (Damn, the window title is so pathethic.. "JPG Compression - The Bandwidth Saver". I demand a public apology from Hemos)

      That's the title? My browser shows "JPG Compression * The Bandwidth Saver". I guess either my browser doesn't know what character #150 is, or someone forgot to run demoronizer.

      What browser do you use, anyway? I use links.

      --
      "How can you claim that you are anti-crack, while still writing a window manager?" — Metacity README
    5. Re:What's with all the *.3 filenames!! by Keitarou · · Score: 1

      I use IE5.5..
      Maybe they use a character which is available only in Windows. It's funny that you noticed that problem only because I was too lazy to do copy & paste.

      Thanks for the demoronizer link. I noticed the problem of quotes that turn into "?" under certain encodings and it's very annoying.

  91. NEXT ON SLASHDOT by cygnus · · Score: 4, Funny

    new headline: "Attracting user attention with the tag!"

    --
    Just raise the taxes on crack.
  92. Impressive by FrostedWheat · · Score: 1

    An article for webmasters and site owners showing how they can significantly reduce the amount of bandwidth they use by compressing JPG images, one of the most common formats for web images.

    There's a reason JPEG is one of the most common formats on the web, and that's ...

    Dang ... I forget now ... :/

  93. Re:Layne Staley-lead singer of Alice in Chains-dea by Anonymous Coward · · Score: 0

    Lol, ya.

  94. Save more - make your type _really small_?? by wytcld · · Score: 4, Insightful

    Smart site that, setting the style on their body text so that in Mozilla it's teeny-tiny. This form of compression saves the reader from time otherwise spent scrolling the screen. It saved me the time of even reading at all.

    What ever did happen to the idea that the Web is about letting the user set their browser's default type size to suit their eyes, and writing pages that honor the user's preference?
    ___

    --
    "with their freedom lost all virtue lose" - Milton
  95. Submitted by author by virtigex · · Score: 1

    Interesting that this article is submitted by its author. Obviously, by scouring the web looking for informative and interesting articles, we've been barking up the wrong tree. Instead, we should be slipping Hemos a few $$$'s to drive traffic to our website.

  96. How does the JPEG group make money? by zapfie · · Score: 2

    How does the JPEG group make their money? Do they enforce a MP3-style licencing scheme, or is it a group effort of companies and organizations who would mutually benefit?

    --
    slashdot!=valid HTML
  97. save bw by not writing the article. by Openadvocate · · Score: 1

    I guess that he could have saved a lot of bandwidth by not writing the article and not getting linked to by slashdot.
    There goes all his efforts to save bandwidth down the drain. All those hours for nothing. :)

    --
    my sig
  98. thanks by Anonymous Coward · · Score: 0

    thanks for this article.
    I was wondering why my .psd files were not so popular.
    Now I know it's because not many people are using the web browser plugin to photoshop.
    Also they must not have 100Mb/s internet access to view my 200MB+ 40960x40960 graphics.
    thanks again

  99. Re:*blinks* and this appears on the front page.. w by Anonymous Coward · · Score: 0

    Hopefully the web server knows enough not to send the resource fork to the client.

  100. Is this supposed to be a joke? by IAmSancho · · Score: 1

    Is this really as obvious as I think it is?

    --
    -------------------------

    Stupid people suck.

  101. Re:*blinks* and this appears on the front page.. w by Anonymous Coward · · Score: 0

    I'll bet you save lots of space by zipping your mp3s too. Damn, if you're saving space by zipping your jpegs, then you're making them wrong.

  102. A modern wonder by davinc · · Score: 1

    I hear that .gif format thingy does wonders too. Now if they could just invent something to compress datafiles and audio, we'd really be able to get cooking with this web thing.

    1. Re:A modern wonder by Anonymous Coward · · Score: 0

      I'm pretty sure it's only a short matter of time before .au hits critical mass

  103. Stating the blatantly obvious... by onallama · · Score: 1

    Come on...I thought I was reading Slashdot, not Duh Magazine...

  104. hey... where am i ? by __aahlyu4518 · · Score: 1

    Almost thought I made a typo...
    slashdot.org ... nope... right place.

    Can somebody compress this story the /dev/null way ??? Please...

    Or is Hemos just doing an experiment on us?
    "hmmm... let's see how I can get those geeks to rebel a little, get them to turn on something else than microsoft, or running into flamewars.. let's have a real community spirit, by all having the same opinion"...

    Ok Hemos... you succeeded... now get this thing out of here.

  105. JPEG Wizard by Garg · · Score: 1

    Yes, this article states the obvious... but since we're on the subject...

    If you want to compress your JPEG's but don't have Paint Shop Pro, go to the JPEG Wizard site. It has an online utility that lets you see different levels of compression on your picture, so you can pick the one that is smallest that still looks good enough.

    Garg

    --
    Garg
    Alumnus, Xavier's School for Gifted Youngsters
  106. Re:*blinks* and this appears on the front page.. w by Aanallein · · Score: 1

    when i first saw this i though perhaps it was talking about zipping jpegs, which i just learned recently can save quite a bit of space (esp on ones created in photoshop)

    I think the same result could be obtained by selecting the "exclude non-image data" option when saving jpeg files in photoshop.
    That's for photoshop 5.0 and 5.5 I think - In photoshop 6.0 just make sure not to check the "thumbnail" option. Don't have a clue about 7, but the pattern should be obvious.
    If you're already doing this then I don't see how zipping a jpeg file could save more space than perhaps 1-3%

  107. Image Compression by the+eric+conspiracy · · Score: 2

    Be careful - this sort of article might lead to designers replacing text with .jpg images of the text.

    DAMN! TOO LATE!

  108. Re:*blinks* and this appears on the front page.. w by Anonymous Coward · · Score: 0

    they were saved using save for web in photoshop 6
    i didnt realize that was the *wrong* way to do it
    i was zipping a whole website and just happened to notice that some of the jpegs were compressed up to 20%

  109. The April First Test by Paradise+Pete · · Score: 1

    I suggest adding a new criterion to the article screening process. Imagine that the article had been posted on April First. If seems like a lame April Fools joke then maybe it shouldn't be posted.

  110. oh oh, me too! by twitter · · Score: 2
    Yeah, the bit about needing a plug in for every one of the three pages they needlessly choped this article into was annoying. Three clicks of the cancel for x shockwave flash pluggin for one crummy article, it took almost as long to click as to read.

    Oh yeah, no mention was made of Portable Net Graphics (PNG) file format and it's lossless compression, or any of the fine free software that utilizes it, GIMP, Electric Eyes, etc.

    --

    Friends don't help friends install M$ junk.

    1. Re:oh oh, me too! by Anonymous Coward · · Score: 0

      Then why don't you install the plugin? It is seamlessly supported in Mozilla, Konqueror, Netscape, Galeon, and probably others.

  111. So what by Q2Serpent · · Score: 1

    Apache has the ability to serve up every page gzipped from disk, on the fly, and since most web browsers automatically gunzip data streams that don't end in .gz, this saves bandwidth all over the place.

    -Serp

  112. Re:Hmm ANIME by drink85cent · · Score: 1

    PNG is only for only for ANIME!
    Until porn sites start using PNG the public won't ever hear of it. DUH

  113. Hey its 4/20 by gad_zuki! · · Score: 3, Funny

    *Hemos and buds in a smoke filled room*

    "Dude, this image is only 20 fucking kilobytes big."

    "Whoa."

    "Damn."

    "You just blew my mind."

    "POST IT!"

  114. Re:*blinks* and this appears on the front page.. w by Anonymous Coward · · Score: 0

    PSP7 != PS7.

    PSP7 = Paint Shop Pro AFAIR

  115. sorry by Anonymous Coward · · Score: 0

    This is my last post....
    /. seems to suck more and more on topic choice.
    Are you paid by topic you publish?
    I was expecting a good 'technical' article about jpg ...and jpg 2000 to come but I find myself in front of a article showing how to compress an image with a stupid windows software.

    Hooo, and BTW, you have to name your image .jpg or .jpeg....ask your administrator which mime type to use.

  116. In other news... by bruns · · Score: 1

    In other news...

    * Disconnecting the ethernet cable from your computer cuts down bandwidth usage to 0.

    * Not posting a website cuts down your bandwidth to 0.

    * Turning off your computer saves power

    * Eating food reduces hunger

    I hope you get the drift... Come on, these are common sense things, why do they have to be slashdot articles?

    --
    Brielle
  117. JPEG Compression, please... by piotru · · Score: 1

    Joint Photographic Experts Group (http://www.jpeg.org/public/jpeghomepage.htm).

    JPG is the DOS filename extension, not the picture compression standard's name, I suppose.

    Better luck the next time, Slashdot :-(

    1. Re:JPEG Compression, please... by psamuels · · Score: 1
      Joint Photographic Experts Group (http://www.jpeg.org/public/jpeghomepage.htm).
      JPG is the DOS filename extension, not the picture compression standard's name, I suppose.

      And JPEG is the codec, not the file format. The file format is JFIF. Since we're talking about files here, better luck next time to you too. (:

      --
      "How can you claim that you are anti-crack, while still writing a window manager?" — Metacity README
  118. Really, get with it! by Ziviyr · · Score: 2

    All these uncompressed TIFFs are making my web browsing a really slow experience.

    --

    Someone set us up the bomb, so shine we are!
  119. you want compression for images? by themusicgod1 · · Score: 1

    dont care to lose some quality while your at it?
    convert to microsoft-GIF convert to ASCII...and you should end up with a 250*256 bit at most sized (unless i'm mistaken here) image...which can be resized by H(x) html tags or other things for web, or just plain compressed and left like that :)

    --
    GENERATION 26: The first time you see this, copy it into your sig on any forum and add 1 to the generation.
  120. i can't take much more of this..... by Anonymous Coward · · Score: 0

    Katz has started writing technical articles!

  121. Transparent PNGs in IE by yerricde · · Score: 2

    Iexplore still can't render any PNG image with the least bit of transparent decency.

    IE 6 on my machine handles indexed PNG images that use binary (not alpha) transparency just fine. This means that it will properly handle almost all PNGs converted from GIF, as GIF supports only binary transparency and only 255 colors per frame. (IE will not be able to handle PNGs converted from transparent high-color GIF images, that is, GIF images that use multiple frames, each with their own palettes, to draw 4,096 colors.)

    You're right that IE 6 will screw up any other transparent PNG image though. But why, on a web site with a solid-color background, do you really need a transparent image? Yes, I know about the "PNG on top of JPEG" hack for site logos, but that typically uses an indexed PNG, putting any drop shadow or halo in the JPEG.

    --
    Will I retire or break 10K?
  122. i understand now by discogravy · · Score: 2

    at first i wondered why this was posted to slashdot, but I slowly came to the realisation that this is a subtle bid to get rid of the recently added advertisements to slashdot.

  123. Infommercialpost by jrothlis · · Score: 1

    Ummm I'm pretty sure that a month or two ago when the new advertising policy was announced on /. there was also mention of having "advertisement posts" - i.e. fake posts that were actually paid customer content. I also recall there being a limit of one of these per day or per something (week?). So I reckon that is what this post is - our very first infommercialpost.

  124. jpeg?? come now - by Anonymous Coward · · Score: 0

    - everyone who works in your avarage office knows that pictures, such as bmp's and screen captures from the clipboard (in windoze) are much BETTER handled by pasting them into an ultra-efficient format such as DOC. This is then PERFECT for emailing, especially to work-at-home folks, connected at 28.8k via direct dial in lines...

    Don't say this is BAD, it keeps me EMPLOYED - explaining to folks what's 'wrong' with their email...

  125. er... by Sj0 · · Score: 2

    Why bother with inconveniencing web authors in any way(though I'll admit that using JPGs is hardly a huge inconvenience when most already use it) when you can just install mod_gzip on the web server, and use anything from a 8 bit GIF to a 24 bit BMP(sans compression at the file level) and get relatively good compression regardless?

    --
    It's been a long time.
  126. Can't be that beneficial ... they don't do it! by Anonymous Coward · · Score: 0

    Check out the source for the page: 14 gifs, a bit of flash, not a single jpeg image!

  127. SWF IS NOT AN OPEN FORMAT!!! by Anonymous Coward · · Score: 0

    SWF is owned and developed by Macromedia ... ming, libswf and all the other possibly open code projects are just a set of libs which can output flash player compatible "movies" ... flash is still very much so controlled by macromedia and therefore it is not "open"

  128. Maps Anoying in JPG format by luckymat · · Score: 1

    I find it very anoying when maps are converted to jpegs and loose important detail. Some intelligence is required when choosing a format to store images with.

  129. umm... by Anonymous Coward · · Score: 0

    What's a JPEG? That article goes a little over my head.

  130. Holy Shit by Anonymous Coward · · Score: 0

    This is the stupidest fucking story I've ever read on Slashdot.

  131. Re:Impeach George W. Bush @# +1 ; Patriotic @# by Anonymous Coward · · Score: 0

    If they couldn't impeach Clinton why would they even consider impeaching Bush. Clintons crimes were way worse than your mere distaste for Bush.

  132. Re:Impeach George W. Bush @# +1 ; Patriotic @# by TheOnlyCoolTim · · Score: 1, Offtopic

    Clinton may have commited more actual "crimes" but W. Bush is the greater scumbag...

    Tim

    --
    Omnia vestra castrorum habetur nobis.
  133. I have to add my voice by dsoltesz · · Score: 1
    This article was not intended to be read by experienced webmasters with knowledge in the area of JPG compression, but webmasters who don't know how to tweak images by compressing them...

    /. is for experienced webmasters (and maybe even web developers, too). This article, on the other hand, is for newbies hacking their first pages in Front Page, complete with flaming titles, blinking text, and loud backgrounds. These people are not web developers (let alone web masters, god forbid), no more than my mother's a computer scientist cuz she programmed her VCR to record Murder She Wrote reruns. These people sure as hell don't read /. This article does not belong anywhere on /., especially not the front page. It's insulting to the readership.

    Additionally, basic JPEG sucks and I don't condone singing its praises. It introduces artifacts and destroys the image. It might be fine for pretty graphics that GIF won't do justice to, or thumbnails in a photo gallery. But, to deliver high quality images (photos, wallpapers, or scientific imagery) it's a lousy choice, but the only one if you want your users to view the data in their browsers.

    As for JPEG 2000, wavelet technology is already in use (such as LizardTech's MrSid software, which is not unimpressive). Certainly a fun and interesting idea, but it takes longer to decode and doesn't compress near as well as PNG (90k PDF). Considering how long it's taken PNG to gain acceptance (I'm still not convinced there's enough browser support to use pure PNG on my sites), I'm not holding my breath for JPEG 2000 as a web medium, and looking at the numbers, I'll take PNG over JPEG in a heartbeat.

  134. GIF Compression is actually better in many ways by cbreaker · · Score: 1

    JPG is great for pictures and such, but GIF compression offers lossless compression and is much more widely used for general images and icons.

    The limitation for GIF of course is it's 256 color palette; however it is adaptive and on most web graphics or icons you won't use even the 256 color limit. However, because of the smaller palette, the images end up much smaller, and because of the lossless compression the images look just as intended.

    JPG images can always be spotted; you can see the artifacts in almost any JPG compressed image. However, because the palette can be millions of colors, you get better color representation suitable for full color pictures.

    I couldn't imagine a web site that didn't use compressed images these days. This article seems to assume that nobody knows about it or something =)

    --
    - It's not the Macs I hate. It's Digg users. -
  135. GIFs aren't lossless.... by TheOnlyCoolTim · · Score: 2

    GIFs have only 256 colors.

    While you can offset this somewhat by using a selective pallette, most of the time it is still noticeable.

    Tim

    --
    Omnia vestra castrorum habetur nobis.
  136. Re:*blinks* and this appears on the front page.. w by scrod · · Score: 1
    and, specifically for those of us on the Mac, don't have the extra 16k of resource fork / icon data.

    If you were uploading the image for a website, you wouldn't be transferring the resource fork anyway, so it would make almost no difference.
  137. Re:Impeach George W. Bush @# +1 ; Patriotic @# by Anonymous Coward · · Score: 0

    You're an asshole.

  138. But... by Anonymous Coward · · Score: 0

    for some people, loss of complexity is unacceptable. That's why we have C++.

  139. Almacom JPEG-2000 library by datrus · · Score: 1

    j2000.org A BSD-licensed JPEG-2000 library developped under the European Union PRIAM project. Documentation is underway.

  140. Pleb article? by Lawyer · · Score: 1

    Instead of saving bandwidth by wondering how to use Paintshop Pro to compress your JPGs, you can save even more bandwidth by not posting stupid pleb articles.

    By posting a stupid pleb article, and having a few thousand slashdot users wasting 5 minutes of their time each, that's like 50 days wasted when you add it all up.

  141. Compression? by Foofoobar · · Score: 1
    People are we forgetting that JPG is a loss form of compression? Your images begin to go to sh1t the second you compress it. And the more you play around with it, the more corrupt the image gets.

    For alot of graphics people, JPG is a bane and is only used when absolutely necessary as a result of this.

    --
    This is my sig. There are many like it but this one is mine.
  142. JPG compressioN!? by Anonymous Coward · · Score: 0

    is this a joke?? I thought this was NEWS FOR NERDS not NEWS FOR NOOBS !!!!

    what kind of luser lurks behind the slashdot writers, there used to be relevant technical info here now there's mostly hype and pop fluff! jon katz refuses to tackle anything of substance, probably why he doesn't show his email address anymore

  143. And if it doesn't understand any format you have? by yerricde · · Score: 1

    every time a browser asks for something from your webserver, it sends a list of formats it understands [w3.org], including picture formats.

    I'm aware of HTTP/1.1's Accept: header, but what if the user agent indicates that it doesn't understand any of the transparent image formats, audio formats, or video formats that your web authoring tools can generate? Deny the user the page because the advertisers won't pay for the bandwidth to send it?

    --
    Will I retire or break 10K?
  144. JPEG for Hard Drives! by billcopc · · Score: 1

    Format C:, the diskspace reaper!

    --
    -Billco, Fnarg.com
  145. Bandwidth conservation society by 4444444 · · Score: 3, Informative

    any webmaster that hasn't checked out the bandwidth conservation society should be slapped

    --

    http://Lenny.com
    4 great justice!
  146. Re:And if it doesn't understand any format you hav by PatSmarty · · Score: 1

    I would ask your advertisers for fallback media:
    - for audio/video go down to an image
    - for an image with 8bit transparency go down to an image with 1bit transparency - gif...