Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
<?php
// With this code you can automaticaly add the \n to every character in the string.
// The last character will not have a \n
// You could use a form to set the $string value
$string="TEXT";
for ($pos = 0; $pos < strlen($string); $pos++)
if ( $pos != strlen($string)-1 ){
$modified .= substr($string, $pos, 1)."\\n"; }
else $modified .= substr($string, $pos, 1);
exec("convert -pointsize 20 -gravity center label:$modified label_vertical1.gif");
?>
I have done a similar thing using images of the letters and -append
I think you could do it with Pango which can be used with later versions of Imagemagick on a Linux platform. Pango usage.
<?php
// With this code you can automaticaly add the \n to every character in the string.
// The last character will not have a \n
// You could use a form to set the $string value
$string="TEXT";
for ($pos = 0; $pos < strlen($string); $pos++)
if ( $pos != strlen($string)-1 ){
$modified .= substr($string, $pos, 1)."\\n"; }
else $modified .= substr($string, $pos, 1);
exec("convert -pointsize 20 -gravity center label:$modified label_vertical1.gif");
?>
I have done a similar thing using images of the letters and -append
I think you could do it with Pango which can be used with later versions of Imagemagick on a Linux platform. Pango usage.
Hi Bonzo, Thanks a lot for the code and pointing me to Pango, it's very helpful. Cheers