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 trying to place the contents of a text file on top of a image. I am using caption because the documentation said it will add the necessary line breaks to match the dimension of the image.
"Best Fit Caption
As of IM v6.3.2, if you provide both the width and the height of the final image, but do not define the "-pointsize" of the font (or turn off the pointsize with "+pointsize"), IM will attempt to automatically adjust the size of the font so as to best fill the "-size" of the image you requested. "
convert-im6.q16: not authorized `@-' @ error/property.c/InterpretImageProperties/3516.
convert-im6.q16: no images defined `caption.png' @ error/convert.c/ConvertImageCommand/3258.
lindylex wrote:It creates two images and none have the text caption.
You create three images, all with "xc:". Then "-fx" modifies the first and removes the others, so you have one image. Then you add a secoond image with "caption:". So your output has two images.
The second image contains your caption. But the text is small, and white on a white background.
lindylex wrote:It creates two images and none have the text caption.
You create three images, all with "xc:". Then "-fx" modifies the first and removes the others, so you have one image. Then you add a secoond image with "caption:". So your output has two images.
The second image contains your caption. But the text is small, and white on a white background.
What are you expecting the output to look like? Please describe in detail regarding the size of the 3 images and how they should look when combined?
Please, always provide your IM version and platform when asking questions, since syntax may differ. Also provide your exact command line and if possible your images.
See the top-most post in this forum "IMPORTANT: Please Read This FIRST Before Posting" at viewtopic.php?f=1&t=9620
I don't know what you want. The following makes a graduated image, a text image with transparent background, composites the text over the graduation, and puts a gray border around the result.
But since you did not provide your text file, it is hard to test the text wrapping. If you have line breaks in your text file, then things will not look correct.
You may also want to trim your text image result to its bounding box, since your text may not fill the entire height of the image.