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 am an amateur to ImageMagick, please forgive me if this is a rookie mistake.
I am now working on using IM to generate formated text to an image, and after reading the IM docs, I think using Pango Markup could be the suitable solution to it. (Tell me if there's a better way for it.)
convert -background lightblue pango:"Anthony Thyssen" pango.gif
convert: unable to open image `Anthony Thyssen': No such file or directory @ error/blob.c/OpenBlob/2617.
convert: no decode delegate for this image format `Anthony Thyssen' @ error/constitute.c/ReadImage/544.
convert: no images defined `pango.gif' @ error/convert.c/ConvertImageCommand/3032.
@fmw42, I think you are correct, how could I fix this? Do I need to set some specific options when installing ImageMagic?
larryzhao
If you have installed PANGO properly and it does not show. Then try reinstalling IM adding --with-pango to your ./configure command. However, it should have enabled it automatically last I recall if Pango was installed properly. But adding --with-pango will not hurt to be sure that is not the issue.
@fmw42, I think you are correct, how could I fix this? Do I need to set some specific options when installing ImageMagic?
larryzhao
If you have installed PANGO properly and it does not show. Then try reinstalling IM adding --with-pango to your ./configure command. However, it should have enabled it automatically last I recall if Pango was installed properly. But adding --with-pango will not hurt to be sure that is not the issue.
@fmw42, I tried compiling on my IM using --with-pango on my Mac, after the confirgure process, I get the following result:
It would seem that Pango is not installed properly or most likely not where IM can find it.
(Check your Pango install and see if there are any errors. Perhaps some other delegate is needed before installing Pango.)
How did you install Pango and your other delegates such as tiff, png, jpg? Did you use MacPorts? How did you install IM? From binary or source? Did you use MacPorts?
What version of Pango did you install? What version of IM?
Type the following
convert -list configure
What DELEGATES do you have installed that IM recognizes? I am not sure if Pango will show or not. Just want to be sure you do have minimum delegates.
Where is IM and where is Pango located on your system?
type -a convert
On my system it is at:
convert is /usr/local/bin/convert
Be sure you have installed the latest version of Pango and recompile IM afterwards. It may be that the version you have is incompatible. You could also try adding --with-pango to your ./configure command. If it fails, look at the config.log file to see what the issue is for the error. Pango may need other support libraries itself.
If compiling ImageMagick to add pango, you not only need pango, but the pango devlopment package. That is the header files that define the pango library interface. This are often not included in the normal package as it is only needed when compiling new programs to use the library, and packages typically already have that done.
However as 'pango' is listed, it was probably already compiled into imagemagick, in which can it just needs to find the pango dynamic libraries, without needing the development headers. It would then just need to knwo where the libraries are at run time.
I am not certain about this aspect with MacOSX as I do nt use that OS, but the default package installed version of IM on my Fedora system worked with pango out of the box, but then pango is part ofgnome 3 which is standard on fedora systems. again not moh help specifically for MacOSX.
I do not believe that =yes is acceptable format. just leave it off as --with-freetype. However, I am not sure this will cause you problems with pango. Pango must be installed where IM can find it.
Perhaps your Pango installation had problems. Or perhaps you do not have a current enough Pango?
As the 'coder' module was built, it must have found the header files and library when it was built, But as it is not initialising at run time, it is not finding the pango library the coder needs on the run time library path.
It may be your LD_LIBRARY_PATH (or equivelent) is nto set right, or the pango library is different (or differnt location) to when the coder was built.
There are a number of thing that could be wrong, especialy if the system or actual machine is different to when the the coder was built.