Compress image with ImageMagick?
[There may be a better forum for this post so feel free to move it]
I've looked but I just can't grasp it! How can I compress the image IMAGE.JPG so that it is a smaller filesize?
Thanks... hopefully this is such a simple question that I will get the answer quickly (and then feel stupid!)
(Using ImageMagick on the server side of course)
SonicMailer Pro
The best mailing list manager has just gotten better!
Click here for a full list of features!
ROB posted this at 00:24 — 12th September 2003.
They have: 447 posts
Joined: Oct 1999
well to reduce the image size you'd need to reduce the colors, reduce the resolution, or shrink the image
sometimes you can just do:
mogrify image.jpg
which may or may not reduce the image size.
otherwise, resize:
mogrify -geometry {$sizex}x{$sizey}! image.jpg
colors:
mogrify -colors 256 image.jpg
resolution:
not sure, i think -density may do it.
KandieMan101 posted this at 00:37 — 12th September 2003.
They have: 140 posts
Joined: Jan 2003
Right now I am using this (PHP):
system("/usr/local/imagemagick/mogrify -quality 25 file.jpg");
adn that is in test.php, which is in the same directory as file.jpg...
SonicMailer Pro
The best mailing list manager has just gotten better!
Click here for a full list of features!
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.