I've been trying to recreate this image with the space between lines where the undercolor separates (arrows for emphasis). Is this possible ImageMagick? I've searched for solutions but it appears if I increase the interline-spacing it just spreads the undercolor to fill the space. The text length often varies so I'm utilizing caption to autofill the space.
Undercolor spacing between lines in a caption
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Undercolor spacing between lines in a caption
Use label: to create each line as a separate image, then composite them as desired with space between them. Or write text with -annotate, one annotate at a time with spacing adjusted using the offset arguments.
Caption make one image from all text. So the underfloor will be under all of it even with interline-spacing.
Caption make one image from all text. So the underfloor will be under all of it even with interline-spacing.
Re: Undercolor spacing between lines in a caption
Thank you, I had hoped there might be solution via caption since, in my tests - a thin line does appear within the undercolor. The text will vary regularly so the auto formatting of caption is being leveraged - I had just hoped to capture that aspect of the aesthetic.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Undercolor spacing between lines in a caption
If you are willing to use new lines, such as, caption:"Some Text\n\n Some Text", then you can have spaces between lines that do not have the undercolor.
Re: Undercolor spacing between lines in a caption
Thanks, that's a great idea, though I'm likely going to settle for not having it exact to make it simpler to depend on the simple processing that caption allows. I'm taking variable length titles and generating images to be used as thumbnails. Sadly I discovered that caption isn't available via the path I'd hoped to use via this library wrapper: https://cran.r-project.org/web/packages ... ing_magick