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?".
I want to do a website page you may see following:
As you can see in the image, the generated text has got different font (DecoTech) and the text-color is white.
I have read some topics in forum but couldnt find how to do this in website platform. Can I do this in my website with using imagemagick? If so can someone show me the some example?
Imagemagick will write the selected text to whatever image is selected. But it cannot do the web viewing and selecting from menus. That will require PHP. The appropriate imagemagick command to do the writing of text can be done using PHP exec(). See Bonzo's web site for numerous examples of PHP and Imagemagick
Actually it worked. It generates a new image with same name of image file also it writes a text I want to write on. But I can not change the font type and can not set the coordinates.
After I click to submit button it gives me this error:
Array ( [0] => convert.exe: unable to open image `rgba\(0,0,0,0.4\)': No such file or directory @ error/blob.c/OpenBlob/2617. [1] => convert.exe: no decode delegate for this image format `rgba\(0,0,0,0.4\)' @ error/constitute.c/ReadImage/544. [2] => convert.exe: unable to read font `arial.ttf' @ warning/annotate.c/RenderType/871. )
There were some errors during the Imagemagick conversion:
You need the font you are going to use in the same folder as the code. If the arial font is built into your version of Imagemagick you would just need Arial or what ever your font is called.
Are you on a Windows or Linux server? If Windows use -fill rgba(0,0,0,0.4) instead of -fill rgba\(0,0,0,0.4\)