On Fri, 29 Aug 2008 at 20:08, Alex Samad <[EMAIL PROTECTED]> wrote: > On Fri, Aug 29, 2008 at 07:08:09PM +1000, Ben Donohue wrote: > > Hi Slugs, > > > > anyone have a favourite tool that they use for reducing image file size? > > > > Not necessarily reducing image size on the page but the amount it takes > > up on storage. > > > > I need something that would crawl the network and attack files over a > > certain size in target directories. > > > > Is there such a beast? > > not sure exactly what you mean, but it sounds like find is your friend > > find <dir> -size +100M -exec <do something> "{}" \;
There are a few tools you can use for that <do something>. For PNGs, I use optipng to optimise the format, then advpng to enhance the compression. The beauty of this is that it's entirely lossless. I've found optipng to be a little better than pngcrush. You can find advpng on Debian/Ubuntu as is part of the advancecomp package. Advancecomp is quite handy, and can work on a number of different file types besides PNG (including plain old ZIP). Some years ago I hacked together a KDE service menu to automate this: http://kde-look.org/content/show.php/Optimise+Compression?content=17552 Also, it can help a lot to index your PNGs and GIFs before you save them. For JPEGs, you can try jpegoptim. I haven't used it so I can't vouch for it. -- "Sadly, a kernel by itself gets you nowhere. To get a working system you need a shell, compilers, a library etc. These are separate parts and may be under a stricter (or even looser) copyright. Most of the tools used with linux are GNU software and are under the GNU copyleft." - Linus Torvalds, 'Notes for linux release 0.01', 1991
signature.asc
Description: This is a digitally signed message part.
-- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html