Changes on printing text over an image

Started by marciano, January 25, 2020, 09:13:54 AM

Previous topic - Next topic

marciano

Hello,

This is a part of a code I'm using for serveral years.
It prints text over a semitransparent rectangle in the upper right corner of a photo.
After switching from Centos 6/php5 to Centos 7/php7 only the semitransparent rectangle is printed but the text.

$n = "A number";
$tama = getimagesize($foto);
$width = $tama[0] ;
$height = $tama[1] ;
$a = $width - 13;
$b = $width - 2; 
$L = 140;
$A1 = "convert -size {$width}x{$height} xc:transparent \
-draw \"fill black fill-opacity 0.3 rectangle {$a},0 {$width},{$L} \
font Helvetica  font-size 13   \
fill white  \
translate {$b},{$L} rotate -90 text 0,0 'Some Text Here/{$n}' \" \
draw_mvg.png";
exec("$A1") ;
$A2 = "composite -gravity Center draw_mvg.png {$foto} {$foto}";
exec("$A2");


The text is not printed, only the rectangle

StarGeek

Your question seems more appropriate for the ImageMagick Forums since it doesn't include any calls to exiftool.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

marciano