Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caption no longer wrapping #2178

Closed
dianomi-mjs opened this issue Jun 20, 2020 · 5 comments
Closed

Caption no longer wrapping #2178

dianomi-mjs opened this issue Jun 20, 2020 · 5 comments

Comments

@dianomi-mjs
Copy link

Hi,

Since a recent upgrade of imagemagick on centos caption is no longer wrapping lines. Taking the example from the documentation with a couple of tweaks for height and font

convert -background lightblue -fill blue -font Helvetica-Narrow-Bold -pointsize 40 -size 320x320 -gravity Center caption:'ImageMagick Rules OK!' caption_centered_4.gif

gives

caption_centered_4

Version:

Version: ImageMagick 6.9.10-68 Q16 x86_64 2020-04-01 https://imagemagick.org
Copyright: © 1999-2019 ImageMagick Studio LLC

Is this a bug or has the usage changed?

@dlemstra
Copy link
Member

Can you reproduce this issue with the latest version of ImageMagick?

@dianomi-mjs
Copy link
Author

dianomi-mjs commented Jun 20, 2020

Hi, thanks for the feedback. I believe this is the latest version available on centos (7.8) through yum. Do you mean I should compile from source?

@dianomi-mjs
Copy link
Author

dianomi-mjs commented Jun 20, 2020

I installed a local copy

Version: ImageMagick 7.0.10-19 Q16 x86_64 2020-06-20 https://imagemagick.org

But same result. Pango does seem to line wrap successfully though

@urban-warrior
Copy link
Member

urban-warrior commented Jun 20, 2020

Thanks for the problem report. We can reproduce it and will have a patch to fix it in the GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ https://www.imagemagick.org/download/beta/ by sometime tomorrow.

urban-warrior pushed a commit to ImageMagick/ImageMagick6 that referenced this issue Jun 20, 2020
@dianomi-mjs
Copy link
Author

Thanks, for anyone who comes here looking for a solution, a work-around is to use pango
https://www.imagemagick.org/Usage/text/#pango_markup

remicollet added a commit to remicollet/ImageMagick6 that referenced this issue Jun 24, 2020
remicollet added a commit to remicollet/ImageMagick6 that referenced this issue Jun 24, 2020
urban-warrior pushed a commit that referenced this issue Jun 24, 2020
* Revert "ImageMagick/ImageMagick6#85"

This reverts commit d01b72c.

* Revert "#2178"

This reverts commit d91c43f.

* Fix regression in DrawSetTextInterlineSpacing
netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this issue Jul 29, 2020
Clean up pkglint while here.

2020-07-18  7.0.10-24  <quetzlzacatenango@image...>
  * Release ImageMagick version 7.0.10-24 GIT revision 17483:d11a2ec03:20200718

2020-07-18  7.0.10-24 Dirk Lemstra <dirk@lem.....org>
  * To preserve compression of input image with the tiff encoder use:
    -define tiff:preserve-compression=true.

2020-07-05  7.0.10-24  <quetzlzacatenango@image...>
  * Add support for the -white-balance command-line option.
  * Discover hidden files when globbing (e.g. *.jpg) (reference
    ImageMagick/ImageMagick#2239).
  * New inverse-log evaluate operator.

2020-07-04  7.0.10-23  <quetzlzacatenango@image...>
  * Release ImageMagick version 7.0.10-23 GIT revision 17437:894231bc3:20200704

2020-06-28  7.0.10-23  <quetzlzacatenango@image...>
  * Ensure that float is valid in ClampToQuantum() (reference
    ImageMagick/ImageMagick#2219).
  * New pseudo-image format, ashlar, e.g.
    convert *.jpg -resize 320x320 ashlar:canvas.png).

2020-06-27  7.0.10-22  <quetzlzacatenango@image...>
  * Release ImageMagick version 7.0.10-22 GIT revision 17415:5318a3e0a:20200627

2020-06-24  7.0.10-22  <quetzlzacatenango@image...>
  * Fix wrapping of caption (reference
    ImageMagick/ImageMagick#2178).
  * Sanity check of affine matrix when drawing.

2020-06-22  7.0.10-21  <quetzlzacatenango@image...>
  * Release ImageMagick version 7.0.10-21 GIT revision 17395:af81c28c9:20200622

2020-06-21  7.0.10-21  <quetzlzacatenango@image...>
  * New image property, %N, only report the # of frames in an image sequence,
    just once rather than on a per frame basis
  * Problems converting CMYK to RGB regression (reference
    ImageMagick/ImageMagick6#83)

2020-06-21  7.0.10-21 Dirk Lemstra <dirk@lem.....org>
  * Added support for 32 bit zip with prediction format to the PSD decoder
    (reference ImageMagick/ImageMagick#455).

2020-06-20  7.0.10-20  <quetzlzacatenango@image...>
  * Release ImageMagick version 7.0.10-20 GIT revision 17372:d91c43f3b:20200620

2020-06-14  7.0.10-20  <quetzlzacatenango@image...>
  * Fix out-of-bounds vulnerability when reading sixel images (reference
    ImageMagick/ImageMagick#2143).
  * Fix incorrect parsing of font family list (reference
    ImageMagick/ImageMagick#2153).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

3 participants