Compress png file

Nautilus Scripts

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
Score 46.0%
Description:

This is simple script which compress losslessly your selected png file(s). If none file is selected it compress all png file from folder. I did write it about two years ago,but I didn't publish it because I thought that it is to simple, but then I realized that someone can don't know bash or about optipng. There are three scripts in package. Default one use default optipng flag, o5 is slower but can give smaller file, o7 is even slower. Usually default is enoughm but for a logo of website etcm you may want to optimize it as much as you can. You can find more flags in man optipng. To use them in script simple change line:
flag = ""

IMPORTANT: You need to install package optipng (for example for Debian/Ubuntu sudo aptitude install optipng)

How to use: Unpack and copy or link it to ~/.gnome2/nautilus-scripts
Last changelog:

10 years ago

1.01 check for optipng added, files with o5 and o7 flags added to package

LFD

10 years ago

Thank You !!!!! Now I can convert on the fly. I would like it to crunch more. But it rocks as is as well.Thanks again !!!!

Report

liquidgik

10 years ago

have error when run your script : "There was an error creating the child process for this terminal". Help me please !
My system: Ubuntu Intrepid.

Report

liquidgik

10 years ago

Oh, I need add package optpng :)

Report

C

Nait

10 years ago

I modified the script to give a info when you don't have optipng installed. I hope that it works:D

Report

C

Nait

10 years ago

Using xterm instead of zenity was probably overkill from my side, by didn't want to check another package :D

Report

jesterthejedi

10 years ago

There is an alternate way to do the same thing in Gimp which creates a smaller image. Just uncheck all the defaults when you save the image, no checks will create a standard PNG and it will be smaller in size.

Report

C

Nait

10 years ago

Yeap, Gimp can optimize png, but not as much as optipng. You can still compress what you get from gimp using optipng.

Report

10 years ago

1.01 check for optipng added, files with o5 and o7 flags added to package

12345678910
1
product-maker I4C Feb 19 2013 3 bad
product-maker Count: 4 Rating: 5.0
File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
1.01
updated Nov 21 2008
added Nov 17 2008
downloads 24h
0
page views 24h 3
System Tags addon