Tag: compression

  • JPEG, JPEGXL, WEBP, AVIF Comparison Test

    With Google just announcing it would be releasing full support for JPEGXL in Chrome version 155, I thought I’d give JPEGXL a try. Here are the results compressing a 16-bit 24 megapixel JPEG. The original is an 8-bit JPEG from a Nikon D3200. Original image dimensions is 6016 x 4000 pixels. AI enhanced to 9024 x 6000 pixels. To judge the image quality fairly, I tried to keep the target sizes roughly the same.

    WARNING: These are HUGE FILES. So may take a while to download or choke your Internet browsing experience. Hold tight.

     


    The test image is from an 8-bit JPEG from a Nikon D3200 that was converted to 16-bit, then AI enhanced (sharpened and upscaled). Filesize: 52.2MB

     


    Converted to JPEGXL format via ImageMagick. Note JPEGXL retains the 16-bit color depth. Settings used was effort = 9 and distance = 3. Filesize: 2.62MB

     


    Converted to WEBP format via FFmpeg. Note WEBP reverted back to 8-bit color. Settings used was quality = 50. Filesize: 2.29MB

     


    Converted to AVIF format via FFmpeg. Note AVIF supports max of 12-bit color. Default settings. Filesize: 2.79MB

     

    I dunno bout you, but the results are AMAZING. JPEGXL looks vastly superior over WEBP at around the same filesize. The only problem is it isn’t supported universally and not on older Android systems. You can install the JPEGXL codec for free through Microsoft Store for Windows 10 and 11, but viewing it in Windows Photos app is still clunky. Even on a relatively modern powerful machine, it takes a few seconds to decompress/decode before you see the first pixels. Womp womp. It does load relatively fast in Google Chrome though on a live page.

    But if you’re a web designer worth your salt and have done the benchmarks, you’ll know the best format for general images meant for web viewing is still JPEG. But if you must post a higher resolution image, WEBP is the next best because it decodes faster than AVIF and has the most support of the next-gen web image formats. AVIF quality might be better than WEBP, but very slow to decode and power hog. JPEGXL most superior quality, fast to decode, but no universal support. Thems the beans, folks.

  • Using Now Patent-Free MP3 Audio Format For Your Indie Games

    Originally published on December 12, 2020

    I’m super late posting this, as the news happened THREE YEARS AGO and the media didn’t spread the word. Anyway, as of 2017, the MP3 audio format is now patent-free. It doesn’t mean that you can now pirate all the commercial songs you want. What it actually means is now that the audio format is patent-free, you can implement an MP3 encoder/decoder into your game engine! That’s sweet! (more…)

  • More efficient Internet Image Format

    More efficient Internet Image Format

    JPEG is king. For now. But Google’s got their WebP image format. Microsoft’s got their JPEG-XR. BUT, as images get more high-rez, and users become less patient with downloading more content at high speeds (although higher bandwidth is becoming more household and hopefully more affordable), what needs to be done with the Internet “image” in order to make it a little more efficient? (more…)

  • PNGcrush and JPEGtran image compression tests

    Lossless Image Compression with PNGcrush and JPEGtran, What Fun!

    By Chongchen Saelee
    www.eastfist.com
    Originally published Nov. 12, 2009

    While working on my own website, I was doing research on increasing the speed of webpage downloads and naturally the topic of image optimization came into play. Like most graphic designers who have easy access to Photoshop, I’ve found it sufficient to use it’s "Save For Web" feature to optimize images for the Internet. However, after reading some claims by more reputable web designers (I assume they are) that two programs could greatly reduce the filesizes of images while retaining lossless quality, I had to see it for myself. Here are the results:

    (more…)