Announcement

Collapse
No announcement yet.

the ultimate tool for PNG compression optimisation

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Hi, add these lines in place of the ones at the top of the file to add single file drag and drop support to the batch file. This will work for XP, untested on Vista/w7.

    Code:
    @echo off
    setlocal enabledelayedexpansion
    set PNGOptiDir=%~dp0
    PATH %PNGOptiDir%;C:\Program Files\ImageMagick\;%PATH%
    %~d1
    CD %~p1
    cls
    set currentcolors=0
    So this replaces the current top of the file which is:
    Code:
    @echo off
    setlocal enabledelayedexpansion
    PATH C:\Program Files\ImageMagick\;%PATH%
    cls
    set currentcolors=0
    Makes it a lot easier to use than having to open a dosbox, hopefully someone will find this of some use.

    Edit: And i'll also add this link to a brute force PNG slimmer, be warned though it can take HOURS(about 1 hour on my E8500 C2D for 1024x1024-ish images) on big images but will save quite a lot more(relatively speaking) compared to this one but at the expense of time. I only use it on small stuff, as an example an image i did just now @ 320x240 took just under 7 mins.
    Last edited by Guest; 07.12.2009, 12:54 PM.

    Comment


      #17
      Compression of all kinds of files is important for countless reasons and boarder's paradise, its nice of you to share your efforts!

      Jaff, your efforts at running tests and sharing the results are welcome. Not many people make that kind of effort! Well done, hope to see more of you in here!
      Last edited by WellOiledPC; 08.12.2009, 05:11 PM.
      Download IrfanView Help Manual from:
      IrfanView Website - Here
      Sam_Zen's Website - Here
      Author's Website - Here

      Comment


        #18
        the ultimate tool for PNG compression optimisation updated (2010.03.27)

        Updated:

        PNGout
        latest - (23.03.2010) - DDL

        OptiPNG
        - latest 0.6.4 (14.03.2010) - DDL

        PNG crush
        - latest available for download v1.7.9 Win (07.03.2010) - DDL
        - latest v1.7.10 (13.03.2010) (no binary available at this moment)

        External programs:
        ImageMagick
        - latest version v6.6.0-10 (26.03.2010) - DDL HTTP / FTP


        Download "Ultimate tool for PNG compression optimisation" updated 26.09.2009:
        .ZIP attachment / .ZIP @MIDI MANiACS/Xhost / .7Z attachment / .ZIP @ MIDI MANiACS / .7Z @ MIDI MANiACS

        * Note: pngopti.cmd changes:
        - various version tools have been updated
        ________________
        *Archive Note:
        - 866.521 - 7Zip (type: .ZIP / Compression level: Ultra / method: deflate / dictionary: 32kb / word size 256 bytes)
        + 866.520 - AdvZip (-z -4)
        + 866.282 - DeflOpt (/bd)

        versus other .ZIP compressed archives
        - 898.205 - TotalCommander 6.55 (internal, max 9)
        - 899.576 - KGB Archiver 2
        - 900.320 - WinRAR 3.93 (best)

        - 579.970 - 7Zip (type: .7Z / Compression level: Ultra / method: LZMA / dictionary: 2MB / word size 256 bytes / solid block 2MB)
        - 578.867 - 7Zip (type: .7Z / Compression level: Ultra / method: LZMA2 / dictionary: 2MB / word size 256 bytes / solid block 2MB)
        Attached Files
        Last edited by Jaff; 28.03.2010, 04:46 PM. Reason: added mirrors
        Imi este indiferent ce cred ceilalti despre mine, caci oricum fiecare crede ce-i convine lui si nu ceea ce e real,
        doar ca mi-ar fi placut sa ma vada asa cum sint de fapt, nu asa cum poate le-ar placea lor sa creada. Ei au ales deja...

        ··÷¦÷·· ·· · · · ·· ··÷¦÷·· ·· · · · ·· ··÷¦÷·· ·· · · · ·· ··÷¦÷·· ·· · · · ·· ··÷¦÷··
        ·· · ·M· · ·I· · ·D· · ·I· · ·· ·· ·M· · ·A· · ·N· · ·I· · ·A· · ·C· · ·S· · ··
        ··÷¦÷·· ·· · · · ·· ··÷¦÷·· ·· · · · ·· ··÷¦÷·· ·· · · · ·· ··÷¦÷·· ·· · · · ·· ··÷¦÷··

        Comment


          #19
          For reduce the size of PNG image file, this tool is the best I think...

          Comment


            #20
            Originally posted by jamesliam View Post
            For reduce the size of PNG image file, this tool is the best I think...
            With the first image that I tested, I got better results saving it from IrfanView than I did from pdfinsider.com

            IrfanView 4.57 = 660.69 KB (676,548 Bytes)
            pdfinsider.com = 683.38 KB (699,776 Bytes)
            PNGOUT plugin = 619.91 KB (634,783 Bytes) (very slow, but may be worth it for some users)

            Attached Files
            Last edited by Bhikkhu Pesala; 05.04.2021, 11:32 AM.
            Before you post ... Edit your profile • IrfanView 4.62 • Windows 10 Home 19045.2486

            Irfan PaintIrfan View HelpIrfanPaint HelpRiot.dllMore SkinsFastStone CaptureUploads

            Comment


              #21
              Did you try TinyPNG? I used a lot of PNG optimizers but this website gives always the best compression results:
              Free online image compressor for faster websites! Reduce the file size of your WEBP, JPEG, and PNG images with TinyPNG’s smart lossy compression engine.


              Fabio

              Comment


                #22
                TinyPNG reduces PNGs to 256 colors, that's unacceptable for many cases.
                My system: IrfanView 4.62 64bit, Windows 10 22H2, Intel Core i5-3570, 16GB RAM, NVidia GTX 1050Ti 4GB

                Comment


                  #23
                  IrfanView 4.58 now uses OptiPNG, which is similar to PNGOut. The default setting of 2 performs eight passes, and gets decent results without being too slow. Compression is lossless.
                  Before you post ... Edit your profile • IrfanView 4.62 • Windows 10 Home 19045.2486

                  Irfan PaintIrfan View HelpIrfanPaint HelpRiot.dllMore SkinsFastStone CaptureUploads

                  Comment


                    #24
                    OptiPNG is a pretty good choice. It produces slightly bigger files than PNGOut, but it's much faster and simple to use. PNGOut requires some labour to get the best results, notably it's up to the user to test all the filtering options.

                    I was also looking into other lossless options in modern image formats. WebP is a good example. Lossless WebP produces smaller files than PNGOut in most cases and it's much faster. However I'm looking forward to JPEG-XL, its lossless compression seems to be superior to competing image formats. I believe JPEG-XL support will be added to IrfanView when it's ready for common use.

                    My system: IrfanView 4.62 64bit, Windows 10 22H2, Intel Core i5-3570, 16GB RAM, NVidia GTX 1050Ti 4GB

                    Comment

                    Working...
                    X