Package: graphicsmagick
Version: 1.4+really1.3.40-4
Severity: normal
X-Debbugs-Cc: [email protected]
Dear Maintainer,
*** Reporter, please consider answering these questions, where appropriate ***
* What led up to the situation?
* What exactly did you do (or not do) that was effective (or
ineffective)?
* What was the outcome of this action?
* What outcome did you expect instead?
I ran `gm convert -pointsize 40 label:"lorem ipsum" test.png`, command return
with error:
gm convert: Unable to get type metrics (lorem ipsum) [No such file or
directory].
I expect PNG image to be generated.
Since I use stable, I tried pulling Docker image of debian:experimental using
Podman with the following one-liner, same result:
podman run -it debian:experimental bash -c 'apt-get update && apt-get -y
install graphicsmagick && gm convert -debug All -font "Helvetica" -pointsize 40
label:"lorem ipsum" test.png && ls -al test.png'
I tried Ubuntu, it works:
podman run -it ubuntu bash -c 'apt-get update && apt-get -y install
graphicsmagick && gm convert -debug All -font "Helvetica" -pointsize 40
label:"lorem ipsum" test.png && ls -al test.png'
I ran with `-debug All` and it produced the followig output:
20:06:40 0:0.000283 0.000u 552121 log.c/SetLogEventMask/1520/Configure:
Set log event mask: All
20:06:40 0:0.000329 0.000u 552121 constitute.c/ReadImage/1553/Blob:
Magick=LABEL, Filename=lorem ipsum
20:06:40 0:0.000342 0.000u 552121 static.c/OpenModule/317/Configure:
Magick "LABEL"
20:06:40 0:0.000357 0.000u 552121 static.c/OpenModule/347/Configure:
Loaded static module "LABEL"
20:06:40 0:0.000370 0.000u 552121 constitute.c/ReadImage/1676/Coder:
Invoking "LABEL" decoder (Image label) subimage=0 subrange=0
20:06:40 0:0.000451 0.000u 552121 type.c/ReadTypeConfigureFile/633/Configure:
File path="type.mgk", recursion depth=0
20:06:40 0:0.000480 0.000u 552121 blob.c/GetConfigureBlob/2112/Configure:
Searching for file "type.mgk" in path
"/usr/share/GraphicsMagick-1.3.40/config/:/usr/lib/GraphicsMagick-1.3.40/config/"
20:06:40 0:0.000596 0.000u 552121 blob.c/GetConfigureBlob/2157/Configure:
Tried: /usr/share/GraphicsMagick-1.3.40/config/type.mgk [No such file or
directory]
20:06:40 0:0.000620 0.000u 552121 blob.c/GetConfigureBlob/2135/Configure:
Found: /usr/lib/GraphicsMagick-1.3.40/config/type.mgk
20:06:40 0:0.000647 0.000u 552121 type.c/ReadTypeConfigureFile/633/Configure:
File path="/usr/lib/GraphicsMagick-1.3.40/config/type-ghostscript.mgk",
recursion depth=1
20:06:40 0:0.000907 0.000u 552121 utility.c/IsAccessible/2900/Configure:
Tried: monospace [No such file or directory]
20:06:40 0:0.001001 0.000u 552121 annotate.c/RenderFreetype/1174/Type:
Unable to read font (/usr/share/fonts/type1/gsfonts/n019003l.pfb)
20:06:40 0:0.001035 0.000u 552121 label.c/ReadLABELImage/149/Type:
Unable to get type metrics (lorem ipsum)
20:06:40 0:0.001051 0.000u 552121 pixel_cache.c/DestroyCacheInfo/3664/Cache:
destroy cache
20:06:40 0:0.001063 0.000u 552121 blob.c/DestroyBlob/1169/Blob:
Destroy blob (ref counted): image 0x55cb453fad40, blob 0x55cb453f7720, ref 1,
filename "lorem ipsum"
20:06:40 0:0.001073 0.000u 552121 blob.c/DestroyBlob/1184/Blob:
Destroy blob (real): image 0x55cb453fad40, blob 0x55cb453f7720, ref 0,
filename "lorem ipsum"
20:06:40 0:0.001083 0.000u 552121 constitute.c/ReadImage/1702/Coder:
Returned from "LABEL" decoder, returned image is NULL!
gm convert: Unable to get type metrics (lorem ipsum) [No such file or
directory].
20:06:40 0:0.001109 0.000u 552121 magick.c/DestroyMagick/173/Configure:
Destroy Magick
*** End of the template - remove these template lines ***
-- System Information:
Debian Release: 12.5
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.1.0-18-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages graphicsmagick depends on:
ii libc6 2.36-9+deb12u4
ii libgraphicsmagick-q16-3 1.4+really1.3.40-4
graphicsmagick recommends no packages.
Versions of packages graphicsmagick suggests:
ii graphicsmagick-dbg 1.4+really1.3.40-4
-- no debconf information