Search found 6 matches
- 2013-04-09T01:04:40-07:00
- Forum: Bugs
- Topic: error/jp2.c/ReadJP2Image/403.
- Replies: 10
- Views: 13150
Re: error/jp2.c/ReadJP2Image/403.
Ah. so the latest version of libjasper does in fact use tmpnam(), so I assume the one included with Imagemagick is well out of date.
- 2013-04-09T00:38:58-07:00
- Forum: Bugs
- Topic: error/jp2.c/ReadJP2Image/403.
- Replies: 10
- Views: 13150
Re: error/jp2.c/ReadJP2Image/403.
It's not obvious to me why tmpnam() isn't used.
So i've replaced
with
in jas_stream_tmpfile()
and we're cooking with gas now.
So i've replaced
Code: Select all
_snprintf(obj->pathname, L_tmpnam, "%stmp.XXXXXXXXXX", P_tmpdir);
Code: Select all
tmpnam(obj->pathname);
and we're cooking with gas now.
- 2013-04-08T05:51:06-07:00
- Forum: Bugs
- Topic: error/jp2.c/ReadJP2Image/403.
- Replies: 10
- Views: 13150
Re: error/jp2.c/ReadJP2Image/403.
Having looked at it a bit more, I wouldn't bother :) jas_image_decode does that for you when you pass -1 in as the fmt, so I don't think it's relevant. What is relevant is your original response - this seems to be a problem with JasPer, specifically, jas_stream_tmpfile(). It seems to create a temp ...
- 2013-04-08T01:49:26-07:00
- Forum: Bugs
- Topic: error/jp2.c/ReadJP2Image/403.
- Replies: 10
- Views: 13150
Re: error/jp2.c/ReadJP2Image/403.
that is to say, instead of hard coding the format to -1 there, should it not do something like this? /* Initialize JPEG 2000 API. */ jp2_stream=JP2StreamManager(image); if (jp2_stream == (jas_stream_t *) NULL) ThrowReaderException(DelegateError,"UnableToManageJP2Stream"); fmt = jas_image_getfmt(jp2 ...
- 2013-04-08T01:39:13-07:00
- Forum: Bugs
- Topic: error/jp2.c/ReadJP2Image/403.
- Replies: 10
- Views: 13150
Re: error/jp2.c/ReadJP2Image/403.
OK, that's interesting. So I had a look at jas_image_decode(jas_stream_t *in, int fmt, char *optstr) and there's this: /* Is it possible to decode an image represented in this format? */ if (!(fmtinfo = jas_image_lookupfmtbyid(fmt))) goto error; And in imagemagick, jp2.c: jp2_image=jas_image_decode ...
- 2013-04-05T08:23:19-07:00
- Forum: Bugs
- Topic: error/jp2.c/ReadJP2Image/403.
- Replies: 10
- Views: 13150
Re: error/jp2.c/ReadJP2Image/403.
Confirmed for me, example file here https://github.com/openplanets/jpylyzer ... alloon.jp2