[magick-users] J2K (JPEG 2000 codestream) support
Mathieu Malaterre
mathieu.malaterre at gmail.com
Mon Dec 8 10:48:56 PST 2008
On Mon, Dec 8, 2008 at 7:27 PM,
<duc.sequere.aut.de.via.decede at imagemagick.org> wrote:
>> Does imagemagick support j2K codestream (technically jasper does).
>
> Even jasper chokes on your test image:
>
> -> jasper --input D_CLUNIE_CT1_J2KI.j2k --output test.ras
> The RAS format cannot be used to represent an image with this geometry.
> error: cannot encode image
>
> ImageMagick supports JP2 images but a limited subset. If any of the following
> conditions are met, ImageMagick bails:
>
> if ((((long) (jas_image_cmptwidth(jp2_image,components[i])*
> jas_image_cmpthstep(jp2_image,components[i])) != (long) image->columns)) ||
> (((long) (jas_image_cmptheight(jp2_image,components[i])*
> jas_image_cmptvstep(jp2_image,components[i])) != (long) image->rows)) ||
> (jas_image_cmpttlx(jp2_image,components[i]) != 0) ||
> (jas_image_cmpttly(jp2_image,components[i]) != 0) ||
> (jas_image_cmptsgnd(jp2_image,components[i]) != MagickFalse))
> // bail
>
>
As a side note pnm seems to be working. What is RAS file format ? Is
there some restriction on bit depth ?
Using jasper's imginfo:
$ imginfo -f D_CLUNIE_CT1_J2KI.j2k
jpc 1 512 512 16 524288
--
Mathieu
More information about the Magick-users
mailing list