Page 1 of 2

Caption no longer works

Posted: 2011-11-18T17:54:58-07:00
by Snowman
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.

Re: Caption no longer works

Posted: 2011-11-18T18:15:40-07:00
by fmw42
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

Re: Caption no longer works

Posted: 2011-11-18T18:41:30-07:00
by magick
The command worked fine for us with and without Pango support. We'll investigate further once we can reproduce the problem.

Re: Caption no longer works

Posted: 2011-11-18T19:12:13-07:00
by fmw42
I believe I have pango installed.

/opt/local/lib/pango/1.6.0

Re: Caption no longer works

Posted: 2011-11-18T20:00:40-07:00
by magick
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))

Re: Caption no longer works

Posted: 2011-11-19T10:46:56-07:00
by fmw42
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.

Re: Caption no longer works

Posted: 2011-11-19T11:15:39-07:00
by magick
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.

Re: Caption no longer works

Posted: 2011-11-19T12:43:25-07:00
by fmw42
would installing pango-devel 1.29.4 help? I can try it.

Re: Caption no longer works

Posted: 2011-11-19T14:05:29-07:00
by magick
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.

Re: Caption no longer works

Posted: 2011-11-19T15:07:24-07:00
by fmw42
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

Posted: 2011-11-19T17:27:43-07:00
by Auguste
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.

Re: Caption no longer works

Posted: 2011-11-19T18:38:09-07:00
by fmw42
FYI Problem persists in IM 6.7.3.7 Q16 Mac OSX Tiger (same as reported above with 6.7.3.6)

Re: Caption no longer works

Posted: 2011-12-01T23:46:00-07:00
by anthony
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.
Image

UPDATE: The file that produced this is
https://dl.dropbox.com/u/9500683/pango_test.txt

Re: Caption no longer works

Posted: 2011-12-02T11:00:48-07:00
by fmw42
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

Re: Caption no longer works

Posted: 2012-01-27T13:05:13-07:00
by matt32
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?