No decode delegate for this image format (build from source)
Swiss army knife of image processing
Brought to you by:
bfriesen
Error:
/usr/local/bin/gm convert: No decode delegate for this image format (/var/vector_01.png.png)
Installation:
# cd /var/bin && wget https://downloads.sourceforge.net/project/graphicsmagick/graphicsmagick/1.3.42/GraphicsMagick-1.3.42.tar.xz && tar -xvf GraphicsMagick-1.3.42.tar.xz
# cd GraphicsMagick-1.3.42 && ./configure --with-frozenpaths && make -j $(nproc) && make install
As I can see jpeg is already installed?
# apt install libjpeg-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libjpeg-dev is already the newest version (1:2.1.5-2).
libjpeg-dev set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
It doesn't seem like any image formats are supported!?
gm version
# gm version
GraphicsMagick 1.3.42 2023-09-23 Q8 http://www.GraphicsMagick.org/
Copyright (C) 2002-2023 GraphicsMagick Group.
Additional copyrights and licenses apply to this software.
See http://www.GraphicsMagick.org/www/Copyright.html for details.
Feature Support:
Native Thread Safe yes
Large Files (> 32 bit) yes
Large Memory (> 32 bit) yes
BZIP no
DPS no
FlashPix no
FreeType no
Ghostscript (Library) no
HEIF/HVEC ("HEIC") no
JBIG no
JPEG-2000 no
JPEG no
JPEG XL no
Little CMS no
Loadable Modules no
Solaris mtmalloc no
Google perftools tcmalloc no
OpenMP yes (201511 "4.5")
PNG no
TIFF no
TRIO no
Solaris umem no
WebP no
WMF no
X11 no
XML no
ZLIB yes
Host type: x86_64-pc-linux-gnu
Configured using the command:
./configure '--with-frozenpaths'
Final Build Parameters:
CC = gcc
CFLAGS = -fopenmp -g -O2 -Wall
CPPFLAGS =
CXX = g++
CXXFLAGS =
LDFLAGS =
LIBS = -lz -lm -lpthread
Strange.. After re-installing (build) it works!?
I have not installed anything in the meantime
On 3/10/24 09:49, Clark wrote:
Bob
--
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
Public Key, http://www.simplesystems.org/users/bfriesen/public-key.txt
Are you dealing with just one system? Is it possible that some commands were executed on a different system?
I only had one putty terminal open
But it works now :)
Bob
--
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
Public Key, http://www.simplesystems.org/users/bfriesen/public-key.txt
I do that because I optimize the image in steps. I just add the new extension so it's easy to get a grasp of the whole "chain" when debugging
The file could also be something like:
file.pdf.png.tif
Last edit: Clark 2024-03-10
in the .png.png file I think I run it through opencv and do some optimization before OCR
This is a test to see if email makes it into the issue tracker.
Bob
--
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
Public Key, http://www.simplesystems.org/users/bfriesen/public-key.txt
I expect that what happened is that GraphicsMagick configure/build was done first, then used to discover that there was an issue, the development packages were installed, and then the configure/build was done again. Regardless, there is no bug here.