PNG Toolbar

"PNG Tools" is a toolbar for Directory Opus (GPSoftware) that provides single-click optimization and editing of PNG files, both individually, or as a batch process.

Functionality for "PNG Tools" is derived from several third-party applications, most of which are DOS-based (See included documentation for more info.)


Two versions of the toolbar are attached below:[ul][li]PNG_Tools.zip is the original version which works with Opus 8 and above.[/li]
[li]PNG_Tools_1-2-0.zip is an updated version for Opus 9.[/li][/ul]

Here is an excerpt from the included documentation describing what each of the buttons does:
[ul][li]PNG Tools
This "button" does not perform any function: simply hover over the button to get author/version information.
[/li]
[li]Select PNGs
Selects all PNGs in the current folder (and deselects any selected files that are not PNGs).
[/li]
[li]Tweak PNG
Opens all selected PNG files with TweakPNG.
[/li]
[li]PNGCrush (menu)
Optimizes the filesize of all selected PNG files using PNGCrush.

Default*
Optimizes the filesize of all selected PNG files using PNGCrush with default optimization.

Brute-Force
Optimizes the filesize of all selected PNG files using PNGCrush with brute-force optimization (114 different methods [11-124]).

* Pressing the PNGCrush button performs this action.
[/li]
[li]OptiPNG (menu)
Optimizes the filesize of all selected PNG files using OptiPNG.

Default (Level 2)*
Optimizes the filesize of all selected PNG files using OptiPNG with the default compression level (2).

Maximum (Level 7)
Optimizes the filesize of all selected PNG files using OptiPNG with the maximum compression level (7).

Note: Note: While OptiPNG at maximum compression (level 7) typically produces marginally smaller PNG files than PNCrush's brute-force method, it can take almost twice as long when optimizing large files (but can be almost twice as fast when optimizing small files).

Custom (0 - 7)
Optimizes the filesize of all selected PNG files using OptiPNG with a user-defined compression level between 0 and 7.

* Pressing the OptiPNG button performs this action.
[/li]
[li]Remove Chunk (menu)
Uses PNGCrush to remove specific colorspace information from all selected PNG files.

cHRM
Uses PNGCrush to removes the cHRM (chromaticity) chunk from all selected PNG files.

gAMA*
Uses PNGCrush to removes the gAMA (gama) chunk from all selected PNG files.

iCCP
Uses PNGCrush to removes the iCCP (ICC profile) chunk from all selected PNG files.

sRGB
Uses PNGCrush to removes the sRGB (standard RGB color space) chunk from all selected PNG files.

tEXt
Uses PNGCrush to removes the tEXt (textual information) chunk from all selected PNG files.

All Color Chunks
Uses PNGCrush to removes all colorspace information from all selected PNG files.

gAMA & tEXt
Uses PNGCrush to removes both the gAMA and tEXt chunks from all selected PNG files.

* Pressing the Remove Chunk button performs this action.
[/li]
[li]Replace Gamma (menu)
Replaces the embedded gamma of all selected PNG files with a browser-specific gamma value.

Windows Internet Explorer (gamma=1.93)*
Uses PNGCrush to replace the embedded gamma of all selected PNG files with a value of 1.93 (to correct for Internet Explorer).

Note: While this option "corrects" PNG files for display in Internet Explorer (up to version 7), it will make PNG files appear brighter in browsers that properly support PNG gamma (e.g., Mozilla Firefox, Opera, Safari 2.0, etc.). It's recommended that you remove the gAMA chunk instead, using the Strip Chunk button, which will correct PNG files for all browsers except for Safari 1.3.x.

Mac Safari (gamma=1.8)
Uses PNGCrush to replace the embedded gamma of all selected PNG files with a value of 1.8 (to correct for Mac Safari 1.3.x).

Note: Currently, this is the only known method to "correct" PNG files for display in Safari 1.3.x. To correct for Safari 2.0 (and higher), it's recommended that you remove the gAMA chunk instead, using the Strip Chunk button.

* Pressing the Replace Gamma button performs this action.
[/li]
[li]Label (sRGB)
Uses PNGCrush to label all selected PNG files with the sRGB color space (with absolute colorimetric rendering intent).
[/li]
[li]Embed sRGB Profile
Uses PNGCrush to embed the sRGB ICC Profile (sRGB IEC61966-2.1) into all selected PNG files.
[/li]
[li]Quantize (menu)
Converts all selected PNG files from 8-bpc (bits per channel) RGBA to 8-bit alpha-indexed using the selected dithering algorithm.

Floyd-Steinberg*
Converts all selected PNG files from 8-bpc RGBA to 8-bit alpha-indexed using Floyd-Steinberg dithering.

Ordered
Converts all selected PNG files from 8-bpc RGBA to 8-bit alpha-indexed using Ordered dithering.

* Pressing the Quantize button performs this action.
[/li]
[li]Remove "-suffix"
Renames all selected PNG files to remove "-suffix". (Run multiple times to remove multiple suffixes.)[/li][/ul]

[Toolbar and documentation by Trevor Morris]
PNG_Tools_1-2-0.zip (36.9 KB)
PNG_Tools.zip (25.1 KB)

A new version of Trevor's PNG Tools toolbar has been added to the root post.

The update adds new features and takes advantage of some of the new functionality in Opus 9. The new toolbar requires Opus 9 but I've also left the old toolbar so that Opus 8 users can still get it.

[quote="Claude Ciari"]Hi,
I don't see any link to download this plugin :unamused:

Do I miss something ? :wink:[/quote]
Scroll right. :slight_smile:

Super neat I will definatly use that toolbar.
Though it would have been nice if it used PngOut, or perhaps it does?

PngOut
advsys.net/ken/utils.htm

[quote="spline"]Super neat I will definatly use that toolbar.
Though it would have been nice if it used PngOut, or perhaps it does?

PngOut
advsys.net/ken/utils.htm[/quote]
It's trivial to add if it doesn't already.