I have a php script that will receive a bunch of images uploaded.
What I need to do is create a small thumbnail of each, on the fly using imagemagick.
I can do that easy enough but I also need to crop it so that the thumbnail is always 100×100.
the images supplied won’t be the same proportions so simply downsizing won’t work.
Can I downsize, crop to 100×100 and save to jpeg all in one step?
I believe this should do what you want:
resizewill downsize,extent(in combination withgravity) will crop, and the rest takes care of saving with a modified name, in JPEG format, in a different directory.