
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
This collection of KDE service menus allows you to *losslessly* optimise the sizes of various files. Possible use includes:
* creating smaller e-mail attachments
* speeding up your Web site (since the files will download faster)
The service menu files are as follows:
* optimise_png.desktop - for PNG files
* optimise_mng.desktop - for MNG files
* optimise_zip.desktop - for Zip-based files, including
- OpenOffice.org/StarOffice documents and templates (.sx?, .st?)
- OASIS OpenDocument (.od?, .ot?)
- Java archive (.jar)
- Mozilla extensions (.xpi)
* optimise_gzip.desktop - for GZip-based files, including
- AbiWord documents (.abw.gz, .zabw)
- DVI (.dvi.gz)
- PostScript (.ps.gz)
- bitmap fonts (.bdf.gz, .pcf.gz, .snf.gz)
- Tar (.tar.gz, .tgz)
- SVG (.svgz)
- VRML (.wrl.gz)
AdvanceCOMP [http://advancemame.sourceforge.net/comp-readme.html] is required to be installed for this functionality. In addition, PNG files may be optimised using OptiPNG [http://www.cs.toronto.edu/~cosmin/pngtech/optipng/]. Most PNG files are best optimised by running OptiPNG followed by AdvanceCOMP, but some are better optimised after using only one of these tools. Results will vary depending on the file.
Note that these processes are extremely CPU-intensive. If you have a slow system or are optimising many files at once you might prefer the "default" over the "maximum" optimisation options. The difference at the end is likely to be nominal. The processes run in the background, so you should be able to carry on with other tasks in the meanwhile.
In some cases, the AdvanceCOMP tools may deliver a CRC error and refuse to optimise the file. This does not damage the file.
To install, copy the .desktop files to ~/.kde4/share/kde4/services/ServiceMenus/
The service menus have been tested with KDE 4.1, but I believe they should work with earlier versions that support service menus.
NB: This project was formerly known as "Optimise PNG".
11 years ago
2009-01-31
Version 1.6
* Compatible with KDE4 (thanks to Pierre Buard)
* French translation (thanks to Pierre Buard)
2005-05-22
Version 1.5
* Better visual feedback:
- Output is displayed inside a konsole window
- A passive pop-up lets the user know that the process has commenced
2005-05-08
Version 1.4
* Added support for GZipped AbiWord (.abw.gz and .zabw), DVI (.dvi.gz), bitmap
fonts (.bdf.gz, .pcf.gz, .snf.gz), Tar (.tar.gz, .tgz), VRML (.wrl.gz),
OpenOffice.org/StarOffice documents and templates (.sx?, .st?), OASIS
OpenDocument documents and templates (.od?, .ot?), Java archive (.jar) and
Mozilla extensions (.xpi)
* split optimise_compression.desktop into optimise_gzip.desktop and
optimise_mng.desktop
2005-05-01
Version 1.3
* Added support for GZipped SVG (.svgz) files
* Performance enhancements:
- files are now processed sequentially rather than in parallel
- files are now processed in the background
2004-11-08
Version 1.2
* Renamed project to "Optimise Compression" to reflect feature enhancements
* Added support for Zip (.zip), GZip (.gz, including .tar.gz), and MNG (.mng)
files
2004-11-03
Version 1.0
* Named "Optimise PNG"
* Optimise PNG files only
11 years ago
2009-01-31
Version 1.6
* Compatible with KDE4 (thanks to Pierre Buard)
* French translation (thanks to Pierre Buard)
2005-05-22
Version 1.5
* Better visual feedback:
- Output is displayed inside a konsole window
- A passive pop-up lets the user know that the process has commenced
2005-05-08
Version 1.4
* Added support for GZipped AbiWord (.abw.gz and .zabw), DVI (.dvi.gz), bitmap
fonts (.bdf.gz, .pcf.gz, .snf.gz), Tar (.tar.gz, .tgz), VRML (.wrl.gz),
OpenOffice.org/StarOffice documents and templates (.sx?, .st?), OASIS
OpenDocument documents and templates (.od?, .ot?), Java archive (.jar) and
Mozilla extensions (.xpi)
* split optimise_compression.desktop into optimise_gzip.desktop and
optimise_mng.desktop
2005-05-01
Version 1.3
* Added support for GZipped SVG (.svgz) files
* Performance enhancements:
- files are now processed sequentially rather than in parallel
- files are now processed in the background
2004-11-08
Version 1.2
* Renamed project to "Optimise Compression" to reflect feature enhancements
* Added support for Zip (.zip), GZip (.gz, including .tar.gz), and MNG (.mng)
files
2004-11-03
Version 1.0
* Named "Optimise PNG"
* Optimise PNG files only
Vewyn
9 years ago
I haven't used the zip optimization until now, but the problem only presents itself with the zip and gzip.desktop files because these are the only ones using multiple mimetypes.
You may want to update these files... or the user can modify the two files themselves.
Report
pbuard
11 years ago
Report
martosurf
10 years ago
Report
Vewyn
15 years ago
Report
Vewyn
15 years ago
Report
phxguy
15 years ago
nice: optipng: No such file or directory
Any Ideas....
Report
Yama
15 years ago
Report
jstaniek
15 years ago
Report
Yama
15 years ago
Report
asdex
16 years ago
OptiPNG shows really bad results while AdvancedComp shows results comparable to the older and reliable PNGCrush.
I don't know why I should use those programs.
Just save your large PNGs with "compression=9" (when using Gimp).
Report
Yama
16 years ago
OptiPNG is a (superior) replacement for (the seemingly unmaintained) Pngcrush. AdvanceCOMP is something completely different -- it converts the Ziv-Lempel compression to 7-Zip, thereby squeezing things even more.
Obviously nobody is forcing you to use these tools. If you don't have the patience to use these tools, don't use them. But it would be ridiculous to deny that they are capable of creating significantly smaller file sizes. They don't always (that depends on the properties of the file you are working on), but often they do.
Report
Vewyn
15 years ago
The conclusion I come to is that each utility has it's strengths an weaknesses dependant upon which type of input you choose. AdvanceCOMP IS significantly faster than the other tools that go through the trial-and-error sequence to get the best file size possible.
For the other users speaking of other tools - pngcrush IS unfortunately outdated. I have been getting the same or better results out of OptiPNG and pngout. I'm not saying it's not good...I'm saying it's not the only good one.
Report
Yama
15 years ago
Report
Vewyn
15 years ago
Report
asdex
16 years ago
Report
Yama
15 years ago
Report
eusonig
16 years ago
The minimum will be a message box with the text "Process finish", as you can see in "Mount ISO image" service menu.
Report
Yama
16 years ago
My initial hope was to display the advpng output in a terminal, but the "Terminal=true" option doesn't seem to work in service menus.
I'll see what I can do.
Report
Vewyn
15 years ago
Exec=konsole -T "OptiPNG Max Compression" --noclose --nomenubar --notoolbar -e nice -n18 optipng -preserve -o7 %F
For AdvanceCOMP-max:
Exec=konsole -T "AdvanceCOMP Max Compression" --noclose --nomenubar --notoolbar -e nice -n18 advpng -z -4 %F
For the user that was griping about using OptiPNG - Why don't you look at the command lines and just modify them, subbing in your own preferred tools instead of complaining about the authors choices? It's really not that difficult. I hope this info helps the author and users.
Report
Yama
15 years ago
Report
Sebien
16 years ago
A Finished dialog woun't be good for usbility because:
- You don't know it was started
- You are bored of the message needing a click
I propose you to put a progress dialog like Ark do.
Try it: right click an archive file and choose Actions -> Uncompress here.
A dialog with "animated progresbar" is shown during the uncompresing. And closed after!
Would be very good.
And no: showing the output of the Terminal is not very user friendly in a GUI environment
Report
nuka
16 years ago
Report