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

Does not overlay text on image with latest GraphicsMagick versions #877

Open
grisov opened this issue Jan 26, 2025 · 0 comments
Open

Does not overlay text on image with latest GraphicsMagick versions #877

grisov opened this issue Jan 26, 2025 · 0 comments

Comments

@grisov
Copy link

grisov commented Jan 26, 2025

To overlay text on image I use the following code:

  import * as gmagick from "gm";

  const gm = gmagick.subClass({ imageMagick: false });

  gm(200, 200, "#ffaca2")
    .region(200, 200, 0, 0)
    .gravity("Center")
    .font("../fonts/OpenSans-Regular2.ttf", 22)
    .fill("#000000")
    .drawText(0, 0, "AB")
    .setFormat("png")
    .quality(4);

Operating system: Alpine Linux 3.21

  apk add libwebp libwebp-tools freetype graphicsmagick

gm==1.25.0

The text is missing on image if installed GraphicsMagick == 1.3.43-1.3.45.

With older versions of GraphicsMagick up to 1.3.42, this code works correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant