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?".
convert -size 1366x768 -background black -fill white -gravity center -pointsize 100 label:"Text here" image.png
This successfully creates a black image with centered white text. I want to move the text to be offset from the center. However, I'm not able to move the label around with -geometry. Why is this not possible? Is there any way to position text over a background without using something like xc:black or overlaying it -- and why do they work while this doesn't?
Thanks for the '-annotate' setting. Substituting the 'label:' command for a correctly-formed '-annotate' command doesn't work, however. I think '-annotate' only works when you're annotating an image: I'm making an image rather than overlaying a label on a pre-existing one. (I know I could do it the other way, but I want to know why I can't the first way.)
raehik wrote:Thanks for the '-annotate' setting. Substituting the 'label:' command for a correctly-formed '-annotate' command doesn't work, however. I think '-annotate' only works when you're annotating an image: I'm making an image rather than overlaying a label on a pre-existing one. (I know I could do it the other way, but I want to know why I can't the first way.)
You need to create a canvas with "xc:". Try something like this...
I think '-annotate' only works when you're annotating an image: I'm making an image rather than overlaying a label on a pre-existing one. (I know I could do it the other way, but I want to know why I can't the first way.)
Anything ending with a colon (:) creates a new image. So "xc:", "label:", "caption:" each create a new image. When creating a new image, "-geometry" has no meaning.
Operations start with "-", so "-annotate" is an operation that modifies an image that must already exist.