convert EXR to DWAA/DWAB compression Fails with no Error

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
weirdizum
Posts: 6
Joined: 2019-11-28T10:09:30-07:00
Authentication code: 1152

convert EXR to DWAA/DWAB compression Fails with no Error

Post by weirdizum »

Hi,
I'm trying to convert a zip compressed .exr to a dwaa compressed .exr using

Code: Select all

code : magick convert input.exr -compress DWAA output.exr
>
It converts it to a uncompressed .exr with no error message.
All the other compression options work e.g Piz,B44 ...
I'm running CENTOS 7 OS and I've checked the compression list(see Below) and it would seem the DWAA/DWAB is available.
I have also checked this on the same version on windows and it works.. I'm guessing it something in the build.

I have included version and OS details below.

Many Thanks

Weirdizum

code :

Code: Select all

magick convert input.exr -compress DWAA output.exr
>

code : magick identify -version
Version: ImageMagick 7.0.9-6 Q16 x86_64 2019-11-26 https://imagemagick.org
Copyright: © 1999-2019 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenMP(3.1) 
Delegates (built-in): bzlib cairo djvu fftw fontconfig freetype gslib jng jp2 jpeg lcms ltdl lzma openexr pangocairo png ps rsvg tiff webp wmf x xml zlib
>

magick convert -list compress
B44A
B44
BZip
DWAA
DWAB
DXT1
DXT3
DXT5
Fax                                                                                                                                                         
Group4                                                                                                                                                      
JBIG1                                                                                                                                                       
JBIG2                                                                                                                                                       
JPEG2000                                                                                                                                                    
JPEG                                                                                                                                                        
LosslessJPEG                                                                                                                                                
Lossless                                                                                                                                                    
LZMA
LZW
None
Piz
Pxr24
RLE
RunlengthEncoded
WebP
ZipS
Zip
Zstd
>

code : cat /etc/os-release
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"
>


code : uname -r
3.10.0-327.el7.x86_64
>

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

Re: convert EXR to DWAA/DWAB compression Fails with no Error

Post by fmw42 »

In IM 7 use magick, not magick convert.

User avatar
dlemstra
Posts: 1610
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: convert EXR to DWAA/DWAB compression Fails with no Error

Post by dlemstra »

This is probably related to the version of OpenExr that you have. You will need at least version 2.4.0.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate

weirdizum
Posts: 6
Joined: 2019-11-28T10:09:30-07:00
Authentication code: 1152

Re: convert EXR to DWAA/DWAB compression Fails with no Error

Post by weirdizum »

@fmw42

Thanks for the response .. I tried just 'magick' but had the same responce

weirdizum
Posts: 6
Joined: 2019-11-28T10:09:30-07:00
Authentication code: 1152

Re: convert EXR to DWAA/DWAB compression Fails with no Error

Post by weirdizum »

@ dlemstra

Isn't openEXR 2.4.x already compiled as a delegate of imagemagick, or else the DWAA wouldn't show up in the available compressions?

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

Re: convert EXR to DWAA/DWAB compression Fails with no Error

Post by fmw42 »

does it show up as a delegate when you do

Code: Select all

magick -version
If not, then you have to install separately.

Also check the version from the EXR line when doing

Code: Select all

magick -list format

User avatar
dlemstra
Posts: 1610
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: convert EXR to DWAA/DWAB compression Fails with no Error

Post by dlemstra »

DWAA is in the list of compression methods because that is built in our internal list. We don't check if the delegates support it.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate

weirdizum
Posts: 6
Joined: 2019-11-28T10:09:30-07:00
Authentication code: 1152

Re: convert EXR to DWAA/DWAB compression Fails with no Error

Post by weirdizum »

@ fmw42
Hi, yes "openexr" shows up in the version delegates and "EXR" shows up in the format list.
Is there a way to find out what version of "openexr" imagemagick is actuality using?

weirdizum
Posts: 6
Joined: 2019-11-28T10:09:30-07:00
Authentication code: 1152

Re: convert EXR to DWAA/DWAB compression Fails with no Error

Post by weirdizum »

@dlemstra
Hi,
why would you add add DWAA to the list of compression if imagemagick did not contain a version of openexr that supported it.
and like i said the windows version works ( would the windows version and the linux version have different openexr version ?)

Im a bit lost

User avatar
magick
Site Admin
Posts: 11216
Joined: 2003-05-31T11:32:55-07:00

Re: convert EXR to DWAA/DWAB compression Fails with no Error

Post by magick »

The OpenEXR delegate library must define IMF_DWAA_COMPRESSION in ImfCRgbaFile.h for ImageMagick to support DWAA compression. Earlier releases of the OpenEXR did not support DWAA compression.

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

Re: convert EXR to DWAA/DWAB compression Fails with no Error

Post by fmw42 »

The version number should be listed at the end of the line for EXR when you do

Code: Select all

magick -list format

iucounu
Posts: 1
Joined: 2019-12-06T07:20:13-07:00
Authentication code: 1152

Re: convert EXR to DWAA/DWAB compression Fails with no Error

Post by iucounu »

Hi,

FYI: I managed to get this to work with ilmbase-2.3.0 (there is no version 2.4.0 for this), openexr-2.4.0 (as mentioned by dlemstra above, 2.4.0 is needed, 2.3.0 won't work), and ImageMagick-7.0.9-7. I compiled on CentOS 7.6, using cmake3-15, and devtoolset-7. It was a bit of a fiddly process, and there's probably better ways of doing this than mine.

-Cam

weirdizum
Posts: 6
Joined: 2019-11-28T10:09:30-07:00
Authentication code: 1152

RESOLVED : convert EXR to DWAA/DWAB compression Fails with no Error

Post by weirdizum »

Resolved By iucounu

Post Reply