Hello!
Im having a bit of a problem, and I cant seem to figure out why. Im running ImageMagick ImageMagick 6.8.9-9 on a Raspberry Pi, OS Raspbian GNU/Linux 8 (jessie).
convert -size 800x120 -background yellow -font DejaVu-Sans -pointsize 40 \
-fill red -stroke black -strokewidth 1 \
label:"Album: This is a test!" -trim +repage album.png
This code was used to make multiple images, and it works fine on shorter strings, but once they reach a certain length it just stops in its tracks. Ive changed the colors to make it easier to see. The image needs to be dynamically sized to the text length.
Changing the text to ABCDEFGHIJKLMNOP results in:
What am I missing???
Thanks in advance!
Problem with outlining text
Problem with outlining text
Last edited by Thndr on 2017-09-02T14:40:05-07:00, edited 1 time in total.
Re: Problem with outlining text
I would test it on a desktop as the Pi hardware could be the problem.
Also try a Q8 version if you are currently using a Q16 one?
Also try a Q8 version if you are currently using a Q16 one?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Problem with outlining text
Your IM version is about 100 versions old. I suggest you upgrade.
It works fine on my Mac OS XSierra with IM 6.9.9.10 Q16. But my system objects to un-escaped slashes. So I had to escape it as:
Also upgrade your version of freetype, if it is not current. My freetype is 2.8_0
It works fine on my Mac OS XSierra with IM 6.9.9.10 Q16. But my system objects to un-escaped slashes. So I had to escape it as:
Code: Select all
convert -size 800x120 -background yellow -font /Library/Fonts/DejaVuSans.ttf -pointsize 40 \
-fill red -stroke black -strokewidth 1 \
label:"Album: This is a test\!" -trim +repage album.png
Also upgrade your version of freetype, if it is not current. My freetype is 2.8_0
Re: Problem with outlining text
Update: I built IM from source on the RaspberryPi and all is well! Thanks for the guidance everyone!