Caption no longer works
Caption no longer works
In imagemagick 6.7.3-1:
$ convert -size 100x -pointsize 24 caption:test miff:- | display -
was working as expected but, with the newer versions (tested with 6.7.3-4 and 6.7.3-6), it doesn't work anymore. There is no label. I suspect it is due to the "Use Pango to improve the caption coder." change that was done in the 6.7.3-3 release. Please ask if I need to provide more details.
Thanks.
$ convert -size 100x -pointsize 24 caption:test miff:- | display -
was working as expected but, with the newer versions (tested with 6.7.3-4 and 6.7.3-6), it doesn't work anymore. There is no label. I suspect it is due to the "Use Pango to improve the caption coder." change that was done in the 6.7.3-3 release. Please ask if I need to provide more details.
Thanks.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Caption no longer works
I can confirm on IM 6.7.3.6 Q16 Mac OSX Tiger, I get a completely white image from:
convert -size 100x -fill black -stroke black -pointsize 24 caption:"test" tmp.png
Whereas: label: works fine.
convert -size 100x -fill black -stroke black -pointsize 24 label:"test" tmp.png
convert -size 100x -fill black -stroke black -pointsize 24 caption:"test" tmp.png
Whereas: label: works fine.
convert -size 100x -fill black -stroke black -pointsize 24 label:"test" tmp.png
Re: Caption no longer works
The command worked fine for us with and without Pango support. We'll investigate further once we can reproduce the problem.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Caption no longer works
I believe I have pango installed.
/opt/local/lib/pango/1.6.0
/opt/local/lib/pango/1.6.0
Re: Caption no longer works
If you have Pango support built in you should get the version number for the caption format with convert -list format. We get
- CAPTION* CAPTION r-- Caption ((Pangoft2 1.29.4))
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Caption no longer works
I have
CAPTION* CAPTION r-- Caption ((Pangoft2 1.28.4))
MacPorts show:
pango 1.28.4
Framework for the layout and rendering of i18n text
Maintained by: ryandesign openmaintainer
Categories: x11
Platforms: darwin
Dependencies: cairo glib2 pkgconfig Xft2
Variants: builtin_modules no_x11 quartz universal x11
pango-devel 1.29.4
Framework for the layout and rendering of i18n text
Maintained by: ryandesign openmaintainer
Categories: x11
Platforms: darwin
Dependencies: cairo glib2 pkgconfig Xft2
Variants: builtin_modules no_x11 quartz universal x11
Are you suggesting that caption: with pango only works if one installs pango-devel 1.29.4
It seems to me that I tested caption right after the pango upgrade and it worked then.
CAPTION* CAPTION r-- Caption ((Pangoft2 1.28.4))
MacPorts show:
pango 1.28.4
Framework for the layout and rendering of i18n text
Maintained by: ryandesign openmaintainer
Categories: x11
Platforms: darwin
Dependencies: cairo glib2 pkgconfig Xft2
Variants: builtin_modules no_x11 quartz universal x11
pango-devel 1.29.4
Framework for the layout and rendering of i18n text
Maintained by: ryandesign openmaintainer
Categories: x11
Platforms: darwin
Dependencies: cairo glib2 pkgconfig Xft2
Variants: builtin_modules no_x11 quartz universal x11
Are you suggesting that caption: with pango only works if one installs pango-devel 1.29.4
It seems to me that I tested caption right after the pango upgrade and it worked then.
Re: Caption no longer works
Until we can identify a fix, you can configure ImageMagick with --without-pango to revert to caption using just Freetype. We added Pango support for improved support for left-to-right languages.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Caption no longer works
would installing pango-devel 1.29.4 help? I can try it.
Re: Caption no longer works
If ImageMagick validated Pango, which it did, that means you have the all the dependencies required for caption: to work properly. However, perhaps caption: only works with Pango 1.29 and above or perhaps its a Mac OS X problem. We'll need to investigate.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Caption no longer works
magick wrote:If ImageMagick validated Pango, which it did, that means you have the all the dependencies required for caption: to work properly. However, perhaps caption: only works with Pango 1.29 and above or perhaps its a Mac OS X problem. We'll need to investigate.
I can try to install pango-devel 1.29.4, if that would help. Or do I need the non-devel pango 1.29.4?
Just trying to help you track things down.
Fred
Re: Caption no longer works
i have the same problem on archlinux. i am using the repo version, 6.7.3-4.
$ convert -list format | grep -i caption
CAPTION* CAPTION r-- Caption ((Pangoft2 1.29.4))
and when it is packaged, i am sure it passed all make check.
$ convert -list format | grep -i caption
CAPTION* CAPTION r-- Caption ((Pangoft2 1.29.4))
and when it is packaged, i am sure it passed all make check.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Caption no longer works
FYI Problem persists in IM 6.7.3.7 Q16 Mac OSX Tiger (same as reported above with 6.7.3.6)
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Caption no longer works
I thought pango was going to be added as a separate input image formatting type! that is keep it as a separate entity so that things don't suddenly change such as when 'pango' is not available, and thus the coder is not installed. EG; windows!
Pango for example allows the use of extended text formatting (change of color, font size, style, justification, etc).
For example this was a single 'pango' text image, I used for testing purposes.
UPDATE: The file that produced this is
https://dl.dropbox.com/u/9500683/pango_test.txt
Pango for example allows the use of extended text formatting (change of color, font size, style, justification, etc).
For example this was a single 'pango' text image, I used for testing purposes.
UPDATE: The file that produced this is
https://dl.dropbox.com/u/9500683/pango_test.txt
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Caption no longer works
It still does not work in IM 6.7.3.10 Q16 SNOW LEOPARD
using CAPTION* CAPTION r-- Caption (Pangoft2 1.28.4)
which is the latest from MacPORTS
using CAPTION* CAPTION r-- Caption (Pangoft2 1.28.4)
which is the latest from MacPORTS
Re: Caption no longer works
I just installed imageMagick to generate images with auto-wrapping text, and I can't seem to get the basic "caption:" examples to work. I just get a blank image (background color with no text). Other examples (e.g. label stuff) all works fine. I installed via macports on OSX lion. Thanks for any help/advice/workarounds.
Looking through the suggestions above, how might I go about installing the 1.29.4 version (dev or not?) of Pango, or configuring IM without pango, using macports?
Looking through the suggestions above, how might I go about installing the 1.29.4 version (dev or not?) of Pango, or configuring IM without pango, using macports?
Last edited by matt32 on 2012-01-27T13:22:57-07:00, edited 1 time in total.