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
>
>
Hum I am not a jasper expert I mostly use OpenJPEG and/or Kakadu. I'll
try to find another J2K file to check.
$ ./kdu_expand -i D_CLUNIE_CT1_J2KI.j2k -o toto.pgm -record bla.txt
$ cat bla.txt
Sprofile=PROFILE2
Scap=no
Sextensions=0
Ssize={512,512}
Sorigin={0,0}
Stiles={512,512}
Stile_origin={0,0}
Scomponents=1
Ssigned=yes
Sprecision=16
Ssampling={1,1}
Sdims={512,512}
Cycc=no
Cmct=0
Clayers=1
Cuse_sop=no
Cuse_eph=no
Corder=LRCP
Calign_blk_last={no,no}
Clevels=5
Cads=0
Cdfs=0
Cdecomp=B(-:-:-)
Creversible=no
Ckernels=W9X7
Catk=0
Cuse_precincts=no
Cblk={64,64}
Cmodes=0
Qguard=1
Qderived=no
Qabs_steps=0.000115,0.000114,0.000114,0.000114,0.000229,0.000229,0.000227,0.000
467,0.000467,0.000470,0.000978,0.000978,0.001009,0.001931,0.001931,0.001877
>> New attributes for tile 0:
Thanks
--
Mathieu
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users