WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Imagemagick, no decode delegate for this image format `JPEG'  (Read 7932 times)

Offline puppybyte!

  • Jr. Member
  • **
  • Posts: 91
Imagemagick, no decode delegate for this image format `JPEG'
« on: March 01, 2022, 04:46:41 PM »
I am using the 32bit version on my TC13.  With command of convert sample.jpg -rotate 5 out.jpg  I get an error with

Code: [Select]
tc@box:~/pictures/P4$ convert sample.jpg -rotate 5 out.jpg
convert: no decode delegate for this image format `JPEG' @ error/constitute.c/ReadImage/562.
convert: no images defined `out.jpg' @ error/convert.c/ConvertImageCommand/3273.

on terminal convert -version I get,
Code: [Select]
tc@box:~/pictures/P4$ convert -version
Version: ImageMagick 7.0.9-21 Q16 i686 2020-02-03 https://imagemagick.org
Copyright: �� 1999-2020 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules
Delegates (built-in): bzlib cairo fontconfig freetype jng jpeg lcms ltdl lzma pangocairo png rsvg tiff webp x xml zlib

there was a similar problem here:  http://forum.tinycorelinux.net/index.php/topic,23622.msg148069.html#msg148069

is there a solution for this?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11629
Re: Imagemagick, no decode delegate for this image format `JPEG'
« Reply #1 on: March 01, 2022, 05:18:26 PM »
Hi puppybyte!
Are you really looking to rotate 5 degrees? Or are you looking to rotate in 90 degree increments?

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 713
Re: Imagemagick, no decode delegate for this image format `JPEG'
« Reply #2 on: March 01, 2022, 05:38:57 PM »
You could try to see if convert need some library's that you don't have on the system.
If you don't have correct library you could see that the arrow that point to the correct file says something about file missing.

Execute this command to list the application's needed library's:
Code: (bash) [Select]
ldd $(which convert)
Something like this as result(this is small of my result):
Code: (bash) [Select]
libc.so.6 => /usr/lib/libc.so.6 (0x00007f436bad9000)
liblcms2.so.2 => /usr/lib/liblcms2.so.2 (0x00007f436ba73000)
libraqm.so.0 => /usr/lib/libraqm.so.0 (0x00007f436ba6b000)
liblqr-1.so.0 => /usr/lib/liblqr-1.so.0 (0x00007f436ba5b000)
libxml2.so.2 => /usr/lib/libxml2.so.2 (0x00007f436b8cf000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00007f436b87f000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007f436b7b4000)

And if ImageMagic don't works, you could try ffmpeg, to do transpose a image.
Like this:
Code: (bash) [Select]
ffmpeg -y -i 'sample.jpg' -vf transpose=2 'out.jpg'
« Last Edit: March 01, 2022, 05:49:51 PM by patrikg »

Offline puppybyte!

  • Jr. Member
  • **
  • Posts: 91
Re: Imagemagick, no decode delegate for this image format `JPEG'
« Reply #3 on: March 01, 2022, 07:11:37 PM »
Hi puppybyte!
Are you really looking to rotate 5 degrees? Or are you looking to rotate in 90 degree increments?

I entered 5 degrees as a test...

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11629
Re: Imagemagick, no decode delegate for this image format `JPEG'
« Reply #4 on: March 01, 2022, 07:54:03 PM »
Hi puppybyte!
If you only want to rotate in 90 degree increments, resize, and convert between formats (jpg, png, bmp, etc), then
maybe this will be of interest:
http://forum.tinycorelinux.net/index.php/topic,24900.0.html

Offline puppybyte!

  • Jr. Member
  • **
  • Posts: 91
Re: Imagemagick, no decode delegate for this image format `JPEG'
« Reply #5 on: March 01, 2022, 08:17:58 PM »
Hi puppybyte!
If you only want to rotate in 90 degree increments, resize, and convert between formats (jpg, png, bmp, etc), then
maybe this will be of interest:
http://forum.tinycorelinux.net/index.php/topic,24900.0.html

I actually need about 10 degrees..., wanted to see what 5 degrees look like.

Offline puppybyte!

  • Jr. Member
  • **
  • Posts: 91
Re: Imagemagick, no decode delegate for this image format `JPEG'
« Reply #6 on: March 08, 2022, 10:48:29 AM »
any suggestion on how to fix this error in 32bit IMagick?

convert: no decode delegate for this image format `JPEG' @ error/constitute.c/ReadImage/562.


Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11629
Re: Imagemagick, no decode delegate for this image format `JPEG'
« Reply #7 on: March 08, 2022, 11:33:02 AM »
Hi puppybyte!
Run this command:
Code: [Select]
identify -list format > formats.txtThen open the file  formats.txt  and paste the contents into your next post using code tags.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11629
Re: Imagemagick, no decode delegate for this image format `JPEG'
« Reply #8 on: March 08, 2022, 11:49:54 AM »
Hi puppybyte!
Also, attach a copy of:
/usr/local/etc/ImageMagick-7/policy.xml
to your next post.

Offline puppybyte!

  • Jr. Member
  • **
  • Posts: 91
Re: Imagemagick, no decode delegate for this image format `JPEG'
« Reply #9 on: March 08, 2022, 02:18:41 PM »
Hi Rich.

formats.txt is created but empty.
policy.xml attached.

thanks

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11629
Re: Imagemagick, no decode delegate for this image format `JPEG'
« Reply #10 on: March 08, 2022, 04:10:05 PM »
Hi puppybyte!
If you run:
Code: [Select]
identify -list formatDo you get any response?

Hide the policy file:
Code: [Select]
sudo mv /usr/local/etc/ImageMagick-7/policy.xml /usr/local/etc/ImageMagick-7/policy.xml.offSee if the convert command works then.

Offline puppybyte!

  • Jr. Member
  • **
  • Posts: 91
Re: Imagemagick, no decode delegate for this image format `JPEG'
« Reply #11 on: March 08, 2022, 05:55:20 PM »
Hi puppybyte!
If you run:
Code: [Select]
identify -list formatDo you get any response?

Hide the policy file:
Code: [Select]
sudo mv /usr/local/etc/ImageMagick-7/policy.xml /usr/local/etc/ImageMagick-7/policy.xml.offSee if the convert command works then.

1.  no response to identify -list format
2.  I hid the policy file
3.  convert command with same result.
Code: [Select]
tc@box:~/pictures/P4$ convert sample.jpg -rotate 5 out.jpg
convert: no decode delegate for this image format `JPEG' @ error/constitute.c/ReadImage/562.
convert: no images defined `out.jpg' @ error/convert.c/ConvertImageCommand/3273.
tc@box:~/pictures/P4$

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14817
Re: Imagemagick, no decode delegate for this image format `JPEG'
« Reply #12 on: March 14, 2022, 02:23:19 AM »
The problem was the missing files:

/usr/local/lib/ImageMagick-7.0.9/modules-Q16HDRI/coders/*la
/usr/local/lib/ImageMagick-7.0.9/modules-Q16HDRI/filters/*la

..presumably required by libltdl to load the convert libs

Refactored imagemagick/imagemagick-dev posted.