Page 1 of 1

Convert JP2 Aborted

Posted: 2014-09-04T00:56:55-07:00
by xelvet
Not for every but for some
jp2 files from the same scan batch
with no particular reason i'm getting..

Code: Select all

convert mokshawritingson00aldo_0006.jp2 mokshawritingson00aldo_0006.png
convert mokshawritingson00aldo_0006.jp2 mokshawritingson00aldo_0006.tif
Aborted
GNU/Linux LAVE 3.15.5-2-ARCH
ImageMagick 6.8.9-7 Q16 x86_64 2014-08-2
local/openjpeg2 2.1.0-1

The nasty file >> http://rghost.net/57842366

Edit: it seems graphicsmagick 1.3.20-1 is doing fine..

Re: Convert JP2 Aborted

Posted: 2014-09-04T04:14:04-07:00
by snibgo
It converts without complaint with IM v6.8.9-5 on Windows 8.1.

Where has the "Aborted" message come from? Not from IM, I think. Or perhaps there is some resource limit. What happens when you run it with "-verbose" or "-debug all"?

Re: Convert JP2 Aborted

Posted: 2014-09-04T06:11:28-07:00
by xelvet
Hmm have no idead where from..

Code: Select all

convert -verbose mokshawritingson00aldo_0006.jp2 mokshawritingson00aldo_0006.png
mokshawritingson00aldo_0006.jp2 JP2 2074x3406 2074x3406+0+0 8-bit sRGB 239KB 3.000u 0:03.039
Aborted

Code: Select all

convert -debug all mokshawritingson00aldo_0006.jp2 mokshawritingson00aldo_0006.png
http://pastebin.com/0WmMWYY5

Can't decypher debug all output yet..

Re: Convert JP2 Aborted

Posted: 2014-09-04T06:39:00-07:00
by snibgo
I can't find the string "Aborted" in the IM source code.

When there is a problem, "-debug all" sometimes provides a clue. The last entry is:

Code: Select all

2014-09-04T16:04:57+03:00 0:03.370 3.350u 6.8.9 Policy convert[32711]: policy.c/IsRightsAuthorized/574/Policy
  Domain: Path; rights=Write; pattern="mokshawritingson00aldo_0006.png" ...
I expect that shouldn't be a problem, but it is worth checking, eg:

Code: Select all

convert logo: mokshawritingson00aldo_0006.png

Re: Convert JP2 Aborted

Posted: 2014-09-04T07:08:24-07:00
by xelvet
The last entry is:
Actually the very last line: Aborted
Goes right after. Just as in the previous post.
snibgo wrote:I can't find the string "Aborted" in the IM source code.
That's really weird and puzzling then.
Can there be something wrong with that particular jp2 file then? How that can be checked?
While at the same time:

Code: Select all

gm convert mokshawritingson00aldo_0006.jp2 1.png
Does the trick. Wtf..
snibgo wrote:I expect that shouldn't be a problem, but it is worth checking, eg:
Yeah, the logo has been rendered fine.

Re: Convert JP2 Aborted

Posted: 2014-09-04T07:15:47-07:00
by dlemstra
What is your libpng version? Maybe you need to upgrade?

Re: Convert JP2 Aborted

Posted: 2014-09-04T07:19:18-07:00
by xelvet
extra/libpng 1.6.12-1 [installed]

The same for .jpg or .tif. So i'm pretty sure there's something
not quite right with the source raster file. Or who knows what else.

How to do the same with IM 7.x.x.x?