Results 1 to 8 of 8

Thread: Using OptiPNG with Irfanview; already have a .BAT file

  1. #1
    IV Beginner dazed's Avatar
    Join Date
    Mar 2008
    Posts
    31
    OS
    64-bit Win 7 Ultimate/Enterprise
    CPU Cores
    1

    Question Using OptiPNG with Irfanview; already have a .BAT file

    I would like to ask: How do I integrate OptiPNG's executable with Irfanview, so that when I save PNG files, it will automatically call OptiPNG to do the compression?

    ]I have already created a .BAT file that I use when recompressing PNG files. Here's the contents of the .BAT file using OptiPNG: (It put it in Windows' 'Send to' menu. Also, the script is designed for single PNG files [I use another script for folders containing .PNG files])

    Code:
    @echo off
    
    :compressFile
    "C:\Program Files\Compression Scripts\OptiPNG\optipng.exe" -zc9 -zm9 -zs0-3 -f0-5 -preserve %1%
    echo.
    echo.
    SHIFT
    if exist %1% goto compressFile
    PAUSE
    Note: I do not use Irfanview's PNGOut plugin because it is very slow. OptiPNG gives out a good balance between speed and compression size. Also, it's free, open source software.

  2. #2
    IV Beginner
    Join Date
    Jul 2006
    Posts
    31
    Version
    IrfanView 4.51
    OS
    64-bit Win 10
    CPU Cores
    4

    Default

    Hi Dazed
    Others will be able to help you better, but can I suggest the RIOT Plugin for IrfanView v.0.4.1 (see first sticky thread in this section) may be just what you require. In v.0.4 it states that - Improved PNG compression (The internal PNG "best compression" was substantially improved.) - new: ability to easily use well known external PNG optimizers like optiPNG, PNGOut.
    Hope that helps - Al
    Last edited by Al; 11.06.2010 at 07:53 AM.

  3. #3
    IV Beginner dazed's Avatar
    Join Date
    Mar 2008
    Posts
    31
    OS
    64-bit Win 7 Ultimate/Enterprise
    CPU Cores
    1

    Default

    Quote Originally Posted by Al View Post
    Hi Dazed
    Others will be able to help you better, but can I suggest the RIOT Plugin for IrfanView v.0.4.1 (see first sticky thread in this section) may be just what you require. In v.0.4 it states that - Improved PNG compression (The internal PNG "best compression" was substantially improved.) - new: ability to easily use well known external PNG optimizers like optiPNG, PNGOut.
    Hope that helps - Al
    Thanks. I have the RIOT plugin installed. I would like to know if it already includes OptiPNG when saving. Or should I configure it first? If yes, how do I do this?

  4. #4
    Moderator Laurent's Avatar
    Join Date
    May 2007
    Location
    Brussels, Belgium
    Posts
    881
    Version
    IrfanView 4.25
    OS
    32-bit Win XP Pro SP3
    CPU Cores
    2

    Default

    Hi dazed,

    Another PNG optimizer -- pngout -- is already available with IrfanView.

    Laurent
    Before you post ... fill in your OS and IV version in your profile.

  5. #5
    IV Beginner
    Join Date
    Jul 2006
    Posts
    31
    Version
    IrfanView 4.51
    OS
    64-bit Win 10
    CPU Cores
    4

    Default

    Hi Dazed
    You need the optipng.exe executable in the plugins subdirectory of irfranview and suspect that you need the "heavy" version of the RIOT plugin from the RIOT website. Al

  6. #6
    IV Beginner dazed's Avatar
    Join Date
    Mar 2008
    Posts
    31
    OS
    64-bit Win 7 Ultimate/Enterprise
    CPU Cores
    1

    Thumbs up

    Quote Originally Posted by Laurent View Post
    Hi dazed,

    Another PNG optimizer -- pngout -- is already available with IrfanView.

    Laurent
    I prefer OptiPNG because of the good balance between speed and compression ability. Also, it's open source with a permissive free software license.

    Quote Originally Posted by Al View Post
    Hi Dazed
    You need the optipng.exe executable in the plugins subdirectory of irfranview and suspect that you need the "heavy" version of the RIOT plugin from the RIOT website. Al
    Thanks. I'll try this...

    Edit: I just tried it. Is there a way to make it preserve the time stamp (like Irfanview's option when saving images)? OptiPNG also has the preserve timestamp option but I don't know how to enter the command line argument for OptiPNG in the RIOT plugin.
    Last edited by dazed; 12.06.2010 at 12:50 PM.

  7. #7
    Plugin Author
    Join Date
    Apr 2008
    Location
    Romania
    Posts
    249

    Default

    To keep file date/time in RIOT you need to use the Batch Optimizer and check that option.
    Normal Save does not keep original date/time.

    optiPNG can be downloaded and installed automatically by RIOT when you first try to use it.
    Further more, an optimized version of optipng is used in RIOT, smaller and faster.

  8. #8

    Default

    There is a version of open source (sourceforge) OptiPNG from 2017 that works with RIOT. I simply downloaded the ZIP file (windows version) and put the optipng.exe file into the Irfanview Plugins folder. When I used the RIOT option in Irfanview and picked OptiPNG, it used the optipng I had added. Location is http://optipng.sourceforge.net/

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •