in reply to imagemagick file size reduction
This reduced a 40 Kbytes jpeg-image to a 4 Kbytes image.use strict; use Image::Magick; my $p = new Image::Magick; $p->Read('c:/data/eps/cookie.jpg'); $p->Resize(geometry=>'100x80'); $p->Write('c:/data/eps/cookie_new.jpg');
Update: I tried your command line and it does reduce the file size. Maybe we have different (versions of) ImageMagick programs running? I run "ImageMagick 6.3.4 06/14/07 Q16" on Windows XP Pro
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: imagemagick file size reduction
by Anonymous Monk on Mar 22, 2008 at 17:32 UTC | |
by zentara (Cardinal) on Mar 22, 2008 at 18:09 UTC | |
by CountZero (Bishop) on Mar 22, 2008 at 22:36 UTC |