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 \
-background none \
-pointsize 500 \
-gravity center \
-fill black \
-interline-spacing -30 \
-blur 0x16 \
label:"${utility.addBreaks('This is my super duper cool title that is long', 5)}" \
${shared.dirFiles}${shared.dirCover}title.png
What would be the best way to avoid the blur from being cut off?
mhulse wrote:What would be the best way to avoid the blur from being cut off?
First thing I'd try there is adding a border of at least the size of your blur, maybe even a few pixels more. Add that border after you make the label, and do your blur operation after that.
mhulse wrote:What would be the best way to avoid the blur from being cut off?
First thing I'd try there is adding a border of at least the size of your blur, maybe even a few pixels more. Add that border after you make the label, and do your blur operation after that.
mhulse wrote:Here's my complete example (please let me know if this could be optimized or if I am doing something wrong/oddly):
I think both of your "-border" operations should come immediately after creating each label. It might work the way you have it, but normally you'd want to put that border around something that already exists. A version update, adding other operations to the label, or migrating to IM7 could possibly break your code the way you have it.
GeeMack wrote:
I think both of your "-border" operations should come immediately after creating each label. It might work the way you have it, but normally you'd want to put that border around something that already exists. A version update, adding other operations to the label, or migrating to IM7 could possibly break your code the way you have it.
Ah, great catch! I moved the -border operation to after the label and it works exactly the same. Thank you for the tip(s), I greatly appreciate it!!!!