Re: [SLUG] OT: image file reduction batch tool

2008-09-07 Thread Sridhar Dhanapalan
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

[SLUG] OT: image file reduction batch tool

2008-08-29 Thread Ben Donohue

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?

Tia
Ben

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] OT: image file reduction batch tool

2008-08-29 Thread Alex Samad
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 {} \;




 Tia
 Ben

 -- 
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


-- 
I knew it might put him in an awkward position that we had a discussion before 
finality has finally happened in this presidential race.

- George W. Bush
12/02/2000
Crawford, TX
describing a phone call to Sen. John Breaux.


signature.asc
Description: Digital signature
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Re: [SLUG] OT: image file reduction batch tool

2008-08-29 Thread Daniel Pittman
Ben Donohue [EMAIL PROTECTED] writes:

 anyone have a favourite tool that they use for reducing image file
 size?

convert, from imagemagick, is my usual tool of choice where quality is
not the overriding concern; it sounds like ...

 Not necessarily reducing image size on the page but the amount it
 takes up on storage.

... that is the case for you.  Typically, compressing to JPEG or another
lossy format with a higher discarded data level should do.

Alternately, I have used optipng and pngcrush with reasonable effect to
produce significantly smaller PNG images without image data loss[1], but
that is CPU intensive and has a vastly smaller return on investment.

 I need something that would crawl the network and attack files over a
 certain size in target directories.

 Is there such a beast?

On a Unix machine?  No, because as another poster pointed out, you would
assemble this yourself from component parts using find(1) and whatever
command line image conversion tools you like.

Regards,
Daniel

Footnotes: 
[1]  They strip metadata, so watch out if you care about that portion of
 the image file for any reason, and check your options.

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] OT: image file reduction batch tool

2008-08-29 Thread Marghanita da Cruz

Alex Samad 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 {} \;




then perhaps use the gimp in batch mode to open and save files with lower 
compression.

http://www.gimp.org/tutorials/Basic_Batch/

Marghanita
--
Marghanita da Cruz
http://www.ramin.com.au
Phone: (+61)0414 869202

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html