On Mon, Dec 8, 2008 at 7:27 PM,
<[EMAIL PROTECTED]> 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
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to