Convert JP2 Aborted

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
xelvet
Posts: 4
Joined: 2014-09-04T00:46:54-07:00
Authentication code: 6789

Convert JP2 Aborted

Post 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..
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Convert JP2 Aborted

Post 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"?
snibgo's IM pages: im.snibgo.com
xelvet
Posts: 4
Joined: 2014-09-04T00:46:54-07:00
Authentication code: 6789

Re: Convert JP2 Aborted

Post 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..
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Convert JP2 Aborted

Post 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
snibgo's IM pages: im.snibgo.com
xelvet
Posts: 4
Joined: 2014-09-04T00:46:54-07:00
Authentication code: 6789

Re: Convert JP2 Aborted

Post 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.
Last edited by xelvet on 2014-09-04T07:16:24-07:00, edited 1 time in total.
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Convert JP2 Aborted

Post by dlemstra »

What is your libpng version? Maybe you need to upgrade?
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
xelvet
Posts: 4
Joined: 2014-09-04T00:46:54-07:00
Authentication code: 6789

Re: Convert JP2 Aborted

Post 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?
Post Reply