IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
ahh thank you that makes sense. i could convert one file, but it it would change the name to "*.jpg" and stop. the last bit of code seems to work great. i'll have to pick that apart more and play with it. thank you very much.
Yes, "convert" needs an input filename and output filename. The output filename would need to end with ".jpg".
"convert" usually operates on one file per invocation, so needs to be in a shell loop.
For this job, "mogrify" is the obvious tool. It needs an input filename (often with wildcard). IM will build each output filename from the path, the name of the input file, and the format.
"mogrify" can process one file per invocation, inside a shell loop. Or you can use wildcards, so there is no need for a shell loop.