Menu

#67 gravity center not functioning on GraphicsMagick 1.3.36 20201226

open
nobody
None
3
2023-09-06
2021-09-10
No

I've noticed when running a command like:
gm convert -background lightblue -fill blue -font Times-Roman -pointsize 40 -size 320x -gravity Center caption:'GraphicsMagick Rules OK!' caption_centered.jpg

The text is not centered but still default with gravity NorthWest setting. When running the same exact command using ImageMagick the caption text is correctly centered.

Discussion

  • Bob Friesenhahn

    Bob Friesenhahn - 2021-12-24

    The GraphicsMagick CAPTION has no support for gravity at this time. More significantly, the ability to capture the '-gravity Center' request so that it can be used later when CAPTION is invoked to create the image does not exist. Internally this would be done by recording settings in an ImageInfo structure which is then passed in the caption coder when creating the image. A possible way to accomplish this would be to store it as an image attribute (existing 'attributes' list in ImageInfo).

     
  • Bob Friesenhahn

    Bob Friesenhahn - 2023-09-06

    Ticket moved from /p/graphicsmagick/bugs/651/

    Can't be converted:

    • _milestone: v1.0_(example)
     

Log in to post a comment.

MongoDB Logo MongoDB