My company's web server uses the command below to upload images to $argAsset->path
. The image file name is a random number followed by '.' followed by another random number.
exec('/usr/bin/convert ' . $argAsset->path . ' ' . $argAsset->path . '.png');
I'm currently testing image upload with the exact same image each time. Sometimes this command generates a single image, and sometimes it generates multiple images. How does one make sure that ImageMagick only generates a single image for this command?