Forum Moderators: coopster
I'd like to create scale thumbnails with the same name as original and then delete the original graphic. I should end up with graphic files that have approximately the same xy dimensions (scaled from orig) and filesize.
Hoping you might get me going in the right direction for this.
Thanks,
mc
It is installed by default on most *nix machines these days as it ships with most *nix distros, but it is not difficult to install the binaries in *nix or Win. Then you make a system call to ImageMagick from within PHP, so you need permissions to do that. It's very simple, though. Literally just a couple of lines of code (only one line for the resize itself).
If you get stuck, lots of people here can help.
If you can't use ImageMagick, it's just a tiny bit more complicated to do it wth GD.
good luck.-
please tell us about your results.-
----------------
(i hope don't be opposite with the rules of the site, than suggest: "try doing by your self"
if it is, please someone tell me)
You'll notice that most gallery scripts(Gallery, Coppermine) prefer ImageMagick or NetPBM. If you're doing a lot with images, it's worth finding out whether they're on you system.
Basically, ImageMagick is completely separate from PHP, so it won't show in phpinfo(). You need to issues system call. There are three easy ways to find out whether or not it's installed on your system
1. Ask support if it's there and what the path to access is.
2. Try it and see if it works.
3. Look at your path and see if something like ImageMagick is in your path.