Image reduce and convert

Paint programs, vector editors, 3d modelers, animation editors, etc.
Post Reply
Message
Author
Peterm321
Posts: 411
Joined: Thu 29 Jan 2009, 14:09
Location: UK

Image reduce and convert

#1 Post by Peterm321 »

Greetings forum readers:

My attempts to post a few programs I have compiled recently:

pngquant:

The best tool to my knowledge to convert 24 bit RGB(A) png images to 8-bit palette. (The second best in my experience is the GIMP). The GIMP also has a posterize tool that can reduce colors to more than 256 whereas pngquant's maximum is 256. pngquant offers the choice of dithering and the number of colours in the final image. For example choose 15 colours for a 4 bit palette, 7 for a 3 bit palette etc for big filesize reduction.

Image worsen:

Mostly I use as a commandline to resize images. Has various other options to change colourspace, dithering and so on.

partinfo.awk

Why awk? Smaller than Perl, is typically configured with busybox so near universal availability. The version of awk known as mawk posted elesewhere in this forum is by a few magnitudes faster than a shell script. mawk does not support IGNORECASE=1 so the case insensitive index function was included so that mawk can be used.

partinfo.awk relies on the output of fdisk and blkid to list the sd device partitions, their partition filetypes and labels if any. Some versions of blkid do not output the filesystem type so this awk script will not work as intended on some systems.

pngquant and imageworsen (imagew) were compiled on upup-raring and should work on most fairly recent systems not so sure about others such as wary that may use older versions for example of libpng.
Attachments
IMAGEW.ZIP
(235.82 KiB) Downloaded 116 times
PNGQUANT.ZIP
(65.72 KiB) Downloaded 115 times

rodocop
Posts: 43
Joined: Wed 16 Nov 2011, 11:29
Location: Saint-Petersburg, Russia

#2 Post by rodocop »

Great stuff!

Thank you for sharing!

And the best tool I know for this purposes is XnConvert

Post Reply