EXR bounding box and convert hang

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?".
Post Reply
User avatar
timurhai
Posts: 11
Joined: 2014-02-19T05:33:58-07:00
Authentication code: 6789
Location: Russia, Korolev

EXR bounding box and convert hang

Post by timurhai »

Hi.
I have convert tool hang operating with EXR which bounding box is larger than resolution.
Process (convert) just hangs event if i only want to "-identify -verbose" an image.

I think (and expect) that without any options for data behind the resolution, image should be just cropped to the resolution.

Here is a normal exr file (no data out of resolution):
http://cgru.info/rules/rules_root/test/ ... orbars.exr

Here i just scaled the image by 10% within the same format (resolution is not changed, bouding box is larger than resolution):
http://cgru.info/rules/rules_root/test/ ... scaled.exr

Code: Select all

$ convert -identify -verbose colorbars_scaled.exr /dev/null
*** Error in `convert': free(): invalid next size (normal): 0x00000000015c56e0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x80996)[0x7f62fa8b5996]
/lib/x86_64-linux-gnu/libz.so.1(inflateEnd+0x3b)[0x7f62fb665e6b]
/lib/x86_64-linux-gnu/libz.so.1(uncompress+0xc1)[0x7f62fb6699f1]
convert[0x6eb7f7]
convert[0x70de81]
.....
ps
I just want to generate a thumbnail from an image file and do not need any data out of resolution.
Last edited by timurhai on 2014-04-04T13:36:15-07:00, edited 1 time in total.
Timur Hairulin
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: EXR bounding box and convert hang

Post by fmw42 »

Does this work?

Code: Select all

identify -verbose colorbars_scaled.exr
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: EXR bounding box and convert hang

Post by magick »

The fault is in the EXR library. The bug is either in the EXR ImfInputSetFrameBuffer() library call or we're calling it incorrectly.
User avatar
timurhai
Posts: 11
Joined: 2014-02-19T05:33:58-07:00
Authentication code: 6789
Location: Russia, Korolev

Re: EXR bounding box and convert hang

Post by timurhai »

Code: Select all

identify -verbose colorbars_scaled.exr
- the same error
Timur Hairulin
User avatar
timurhai
Posts: 11
Joined: 2014-02-19T05:33:58-07:00
Authentication code: 6789
Location: Russia, Korolev

Re: EXR bounding box and convert hang

Post by timurhai »

IM was compiled with OpenEXR library version 2.1.0
Timur Hairulin
Post Reply