Page MenuHomeSolus

graphicsmagick cannot find decode delegates for any image format.
Closed, ResolvedPublic

Description

No graphicsmagick command line callings seem to work correctly. For example:

william@william-solus ~/Documents/Test/gm $ gm convert Lenna.png Output.jpg
gm convert: No decode delegate for this image format (Lenna.png).

Compiling an updated (1.3.26) version does not yield any differences (though does resolve the currently patched CVEs).

Curiously, the program seems to think it has support for these features.

$ gm version
GraphicsMagick 1.3.25 2016-09-05 Q16 http://www.GraphicsMagick.org/
Copyright (C) 2002-2016 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                     yes
  DPS                      no
  FlashPix                 no
  FreeType                 yes
  Ghostscript (Library)    no
  JBIG                     no
  JPEG-2000                no
  JPEG                     yes
  Little CMS               yes
  Loadable Modules         yes
  OpenMP                   yes (201511)
  PNG                      yes
  TIFF                     yes
  TRIO                     no
  UMEM                     no
  WebP                     yes
  WMF                      no
  X11                      yes
  XML                      yes
  ZLIB                     yes

[...]

This issue likely slipped through the cracks due to testing using convert and identify, rather than gm convert and gm identify, which resulted in ImageMagick binaries being used.

Revisions and Commits

Event Timeline

This explicitly searches for the *.la files which are stripped from build (because they shouldn't actually be needed by anything). Unfortunately, this uses a very......seemingly bash like file searching explicitly for the .la files, rather than the .so's

sunnyflunk triaged this task as Unbreak Now! priority.Jan 24 2018, 11:35 AM
sunnyflunk moved this task from Backlog to Package Fixes on the Software board.

So I tried to integrate an lastrip into ypkg to stop it from stripping the *.la files but failed miserably.

But this probably needs to get sorted out as it breaks some scanning functionality

Hello, is there any chance to fix this annoying old issue before the soon coming Solus 4 that promises to be a fantastic release?

I noticed that Solus use graphicsmagick 1.3.27 while the latest available version is 1.3.28 (released on 20 January 2017).
I reported this bug at graphicsmagick website:
https://sourceforge.net/p/graphicsmagick/bugs/550/

Why did this need to be reported upstream..? If there is an issue with our package its hardly their fault

ikey changed the task status from Open to In Progress.Feb 23 2018, 11:25 AM
ikey claimed this task.

Hi ikey,
sorry but since i'm not a technician - I don't have a clue if the cause of the problem lies somewhere in Solus or in program itself. kyrios and sunnyflunk have started to help me in October 2017 through the Solus forum - but unfortunately without success. Sorry once again if I made any mistake by reporting this problem upstream.

In T4163#106427, @crom5 wrote:

Hi ikey,
sorry but since i'm not a technician - I don't have a clue if the cause of the problem lies somewhere in Solus or in program itself. kyrios and sunnyflunk have started to help me in October 2017 through the Solus forum - but unfortunately without success. Sorry once again if I made any mistake by reporting this problem upstream.

Fairly sure I've told you what the issue is here and in the forums, including providing you a working version (one that cannot be shipped in the repo, as I can't destroy ypkg on the server). But perhaps that's my bad memory

 ✓  ikey@kraken  ~/IMGTEST  /usr/bin/gm version
GraphicsMagick 1.3.28 2018-01-20 Q16 http://www.GraphicsMagick.org/
Copyright (C) 2002-2018 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                     yes
  DPS                      no
  FlashPix                 no
  FreeType                 yes
  Ghostscript (Library)    no
  JBIG                     no
  JPEG-2000                no
  JPEG                     yes
  Little CMS               yes
  Loadable Modules         yes
  OpenMP                   yes (201511)
  PNG                      yes
  TIFF                     yes
  TRIO                     no
  UMEM                     no
  WebP                     yes
  WMF                      no
  X11                      yes
  XML                      yes
  ZLIB                     yes

Host type: x86_64-solus-linux-gnu

Configured using the command:
  ./configure  '--prefix=/usr' '--build=x86_64-solus-linux' '--libdir=/usr/lib64' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var' '--libexecdir=/usr/lib64/graphicsmagick' '--disable-static' '--enable-shared=yes' '--with-modules' '--with-quantum-depth=16' 'build_alias=x86_64-solus-linux' 'CC=x86_64-solus-linux-gcc' 'CFLAGS=-mtune=generic -march=x86-64 -g2 -O2 -pipe -fPIC -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param ssp-buffer-size=32 -fasynchronous-unwind-tables -ftree-vectorize -feliminate-unused-debug-types -Wall -Wno-error -Wp,-D_REENTRANT' 'LDFLAGS=-Wl,--copy-dt-needed-entries -Wl,-O1 -Wl,-z,relro -Wl,-z,now -Wl,-z,max-page-size=0x1000 -Wl,-Bsymbolic-functions' 'CXX=x86_64-solus-linux-g++' 'CXXFLAGS=-mtune=generic -march=x86-64 -g2 -O2 -pipe -fPIC -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param ssp-buffer-size=32 -fasynchronous-unwind-tables -ftree-vectorize -feliminate-unused-debug-types -Wall -Wn

Final Build Parameters:
  CC       = x86_64-solus-linux-gcc
  CFLAGS   = -fopenmp -mtune=generic -march=x86-64 -g2 -O2 -pipe -fPIC -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param ssp-buffer-size=32 -fasynchronous-unwind-tables -ftree-vectorize -feliminate-unused-debug-types -Wall -Wno-error -Wp,-D_REENTRANT -Wall -pthread
  CPPFLAGS = -I/usr/include/freetype2 -I/usr/include/libxml2
  CXX      = x86_64-solus-linux-g++
  CXXFLAGS = -mtune=generic -march=x86-64 -g2 -O2 -pipe -fPIC -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param ssp-buffer-size=32 -fasynchronous-unwind-tables -ftree-vectorize -feliminate-unused-debug-types -Wall -Wno-error -Wp,-D_REENTRANT -pthread
  LDFLAGS  = -Wl,--copy-dt-needed-entries -Wl,-O1 -Wl,-z,relro -Wl,-z,now -Wl,-z,max-page-size=0x1000 -Wl,-Bsymbolic-functions
  LIBS     = -llcms2 -lfreetype -lX11 -llzma -lbz2 -lz -lltdl -lm -lgomp -lpthread
 ✓  ikey@kraken  ~/IMGTEST  /usr/bin/gm convert Athlone-Shannon-1920x1080.png lol.jpg
 ✓  ikey@kraken  ~/IMGTEST  ls
Athlone-Shannon-1920x1080.png  lol.jpg
 ✓  ikey@kraken  ~/IMGTEST  file lol.jpg 
lol.jpg: JPEG image data, JFIF standard 1.01, resolution (DPCM), density 28x28, segment length 16, baseline, precision 8, 1920x1080, frames 3