Facing issue while comparing image using personal setup on CentOS Linux

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Locked
shahire
Posts: 14
Joined: 2019-12-04T17:51:30-07:00
Authentication code: 1152

Facing issue while comparing image using personal setup on CentOS Linux

Post by shahire »

I have created personal binary setup as mentioned on following page https://www.imagemagick.org/Usage/api/#building
However have been facing below mentioned issue while comparing image.

Command
---------------

Code: Select all

magick compare -highlight-color magenta -metric RMSE -fuzz 3% text_field_baseline.png text_field_checkpoint.png  -compose exclusion text_field_diff.png
Error
---------------
no decode delegate for this image format `PNG' @ error/constitute.c/ReadImage/562.
IM version
---------------

Code: Select all

ImageMagick-7.0.9-8.x86_64
OS version
---------------

Code: Select all

NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

snibgo
Posts: 13034
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Facing issue while comparing image using personal setup on CentOS Linux

Post by snibgo »

shahire wrote:no decode delegate for this image format `PNG'
I suspect you had not built delegates before building IM. What is the text output of "magick -version"? Expect something like:

Code: Select all

Version: ImageMagick 7.0.8-64 Q16 x64 2019-09-08 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2018 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Visual C++: 180040629
Features: Cipher DPC HDRI Modules OpenCL OpenMP(2.0)
Delegates (built-in): bzlib cairo flif freetype gslib heic jng jp2 jpeg lcms lqr
 lzma openexr pangocairo png ps raw rsvg tiff webp xml zlib
snibgo's IM pages: im.snibgo.com

shahire
Posts: 14
Joined: 2019-12-04T17:51:30-07:00
Authentication code: 1152

Re: Facing issue while comparing image using personal setup on CentOS Linux

Post by shahire »

thanks for quick reply.
I am seeing below text when ran given command,

Version: ImageMagick 7.0.9-8 Q16 x86_64 2019-12-16 https://imagemagick.org
Copyright: © 1999-2020 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI OpenMP(3.1)
Delegates (built-in): zlib

snibgo
Posts: 13034
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Facing issue while comparing image using personal setup on CentOS Linux

Post by snibgo »

Compare your list of delegates (just "zlib") with mine. You should re-build IM after building whatever delegates you need (png, etc).
snibgo's IM pages: im.snibgo.com

shahire
Posts: 14
Joined: 2019-12-04T17:51:30-07:00
Authentication code: 1152

Re: Facing issue while comparing image using personal setup on CentOS Linux

Post by shahire »

Could please guide me how i can pass delegates to configure command?

User avatar
fmw42
Posts: 26383
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Facing issue while comparing image using personal setup on CentOS Linux

Post by fmw42 »

You do not pass them to the configure command. You configure, make, make install them separately and before you run the Imagemagick configure. But some delegates will need others to be built before that delegate installs properly. So check the config.log file from each delegate to be sure it has no errors.

See a list of many delegates at https://imagemagick.org/download/delegates/. Install the ones you need or want.

shahire
Posts: 14
Joined: 2019-12-04T17:51:30-07:00
Authentication code: 1152

Re: Facing issue while comparing image using personal setup on CentOS Linux

Post by shahire »

Do you have any document which will guide me to install png delegates?

I have gone through the couple of guides from internet but no luck. getting same error.

User avatar
fmw42
Posts: 26383
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Facing issue while comparing image using personal setup on CentOS Linux

Post by fmw42 »

I do not use Linux, so have no guides for doing that. Sorry.

Locked