Menu

#734 No decode delegate for this image format (build from source)

v1.0_(example)
closed-invalid
None
5
2024-03-10
2024-03-10
Clark
No

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

Discussion

  • Clark

    Clark - 2024-03-10

    Strange.. After re-installing (build) it works!?

    I have not installed anything in the meantime

    # 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                       yes
      JPEG-2000                  no
      JPEG                       yes
      JPEG XL                    no
      Little CMS                 no
      Loadable Modules           no
      Solaris mtmalloc           no
      Google perftools tcmalloc  no
      OpenMP                     yes (201511 "4.5")
      PNG                        yes
      TIFF                       yes
      TRIO                       no
      Solaris umem               no
      WebP                       yes
      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     = -ljbig -lwebp -lwebpmux -ltiff -ljpeg -lpng16 -llzma -lz -lzstd -lm -lpthread
    
     
    • Bob Friesenhahn

      Bob Friesenhahn - 2024-03-10

      On 3/10/24 09:49, Clark wrote:

      Strange.. After re-installing (build) it works!?

      I have not installed anything in the meantime

      Your experience is very strange, and nothing I have observed (or heard
      of) before.  I would associate an experience with this like a simple
      human error such as working with multiple hosts at the same time, and
      accidentally typing commands on a different host.

      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

       
  • Bob Friesenhahn

    Bob Friesenhahn - 2024-03-10

    Are you dealing with just one system? Is it possible that some commands were executed on a different system?

     
  • Clark

    Clark - 2024-03-10

    I only had one putty terminal open

    But it works now :)

     
  • Bob Friesenhahn

    Bob Friesenhahn - 2024-03-10
    /usr/local/bin/gm convert: No decode delegate for this image
    format (/var/vector_01.png.png)
    

    The above is strange due to the use of ".png.png" as a file extension.
    This could be forced to work (if it does not already work) by specifying
    "png:/var/vector_01.png.png".  But this assumes that the GraphicsMagick
    used does include support for the PNG format. :-)

    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

     
  • Clark

    Clark - 2024-03-10

    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
  • Clark

    Clark - 2024-03-10

    in the .png.png file I think I run it through opencv and do some optimization before OCR

     
  • Bob Friesenhahn

    Bob Friesenhahn - 2024-03-10
    • status: open --> closed-invalid
    • assigned_to: Bob Friesenhahn
     
  • Bob Friesenhahn

    Bob Friesenhahn - 2024-03-10

    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.

     

Log in to post a comment.

MongoDB Logo MongoDB