Caption no longer works

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Snowman
Posts: 6
Joined: 2009-11-15T16:01:16-07:00
Authentication code: 8675309

Caption no longer works

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Caption no longer works

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Caption no longer works

Post by magick »

The command worked fine for us with and without Pango support. We'll investigate further once we can reproduce the problem.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Caption no longer works

Post by fmw42 »

I believe I have pango installed.

/opt/local/lib/pango/1.6.0
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Caption no longer works

Post 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))
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Caption no longer works

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Caption no longer works

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Caption no longer works

Post by fmw42 »

would installing pango-devel 1.29.4 help? I can try it.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Caption no longer works

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Caption no longer works

Post 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
Auguste
Posts: 2
Joined: 2011-11-18T21:37:56-07:00
Authentication code: 8675308

Re: Caption no longer works

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Caption no longer works

Post by fmw42 »

FYI Problem persists in IM 6.7.3.7 Q16 Mac OSX Tiger (same as reported above with 6.7.3.6)
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Caption no longer works

Post 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
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Caption no longer works

Post 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
matt32
Posts: 1
Joined: 2012-01-27T12:58:41-07:00
Authentication code: 8675308

Re: Caption no longer works

Post 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?
Last edited by matt32 on 2012-01-27T13:22:57-07:00, edited 1 time in total.
Post Reply