I see where you're going; however, I'm struggling to correctly reference that using PHP:fmw42 wrote:In command line IM, you can use -write to output multiple images.
convert input <some processing> -write result.jpg result.tiff
or
convert input <some processing> -write result.tif result.jpg
Code: Select all
$cmd = "$original_image -font C:/Windows/Fonts/ARIAL.TTF -fill rgba(0,0,0,0.5) -pointsize 100 -gravity Center -annotate 40x40+0+0 \"$text_submitted\" -write $original_image " ;
Code: Select all
// Temporary upload image name
$original_image = $_FILES['filename']['tmp_name'];
$alternative_image = $_FILES['filename']['tmp_name'];
$filePath = realpath($_FILES["filename"]["tmp_name"]);
Code: Select all
$cmd = "$original_image -font C:/Windows/Fonts/ARIAL.TTF -fill rgba(0,0,0,0.5) -pointsize 100 -gravity Center -annotate 40x40+0+0 \"$text_submitted\" -write $original_image $alternative_image " ;
Code: Select all
echo "<img src=\"$alternative_image\"><br>";
echo "Graded image saved as: <a href=\"$new_image\">$new_image</a>";
Not entirely sure how to do it.
Thoughts?
A.