Page 1 of 1

error/jp2.c/WriteJP2Image/877. under windows XP

Posted: 2010-04-16T03:26:46-07:00
by mandragora
Hi.

I have a small problem.
i want convert a .bmp file to a .jp2 file

i`m in a domain with userrights.
with my admin account the convert of my .bmp file works without an error.

unter main userrights i will receive this error message

convert: unable to create image `sss.jp2' @ error/jp2.c/WriteJP2Image/877.

can anybody tell me why it works with admin acount and not with a user account ?

thank you very much

best regards
mandragora

Re: error/jp2.c/WriteJP2Image/877. under windows XP

Posted: 2010-04-18T23:11:26-07:00
by mandragora
Good morning

Has nobody any idea what`s wrong ?

thank you very much

best regards
mandragora

Re: error/jp2.c/WriteJP2Image/877. under windows XP

Posted: 2010-04-19T06:28:23-07:00
by snibgo
I have no idea. It would help if you told us your platform, IM version, exact IM command, and link to the image that gives the problem.

Re: error/jp2.c/WriteJP2Image/877. under windows XP

Posted: 2010-04-19T06:43:20-07:00
by mandragora
Hi sbibgo,

My Platform is Windows Xp Prof. x86
ImageMagick-6.6.1-Q16

I use the command

for %%b in (*.bmp) do convert %%b %%~nb.jp2

in a batch file.
the image is local on my computer. so i can`t give you a link.

with admin privilegs it works perfectly but with main user rights i will receive this error message
i hope this helps

thank you very much

best regards
mandragora

Re: error/jp2.c/WriteJP2Image/877. under windows XP

Posted: 2010-04-19T11:15:14-07:00
by fmw42
do you have the Jasper delegate library installed?

convert -list configure

Look at line starting with DELEGATES, does it contain jp2?

Re: error/jp2.c/WriteJP2Image/877. under windows XP

Posted: 2010-04-19T11:46:54-07:00
by snibgo
Have you checked that you can (as ordinary user) create files in that directory?

Does convert work for other file types? Eg:

convert logo: logo.png
convert logo: logo.jpg
convert logo: logo.jp2

Re: error/jp2.c/WriteJP2Image/877. under windows XP

Posted: 2010-04-20T03:00:37-07:00
by mandragora
hi and good morning.

the jasper delegate libraries seems to be installed.

this is what i get

DELEGATES bzlib freetype jpeg jp2 lcms png tiff x11 xml wmf zlib

and yes, i can create files in this directory.

and i think the problem is by converting to a .jp2 file.

i`ve tested with other extensions and it will work good.

C:\Programme\ImageMagick-6.6.1-Q16>
C:\Programme\ImageMagick-6.6.1-Q16>for %b in (*.bmp) do convert %b %~nb.jpg

C:\Programme\ImageMagick-6.6.1-Q16>convert 11111.bmp 11111.jpg

C:\Programme\ImageMagick-6.6.1-Q16>
C:\Programme\ImageMagick-6.6.1-Q16>for %b in (*.bmp) do convert %b %~nb.png

C:\Programme\ImageMagick-6.6.1-Q16>convert 11111.bmp 11111.png

C:\Programme\ImageMagick-6.6.1-Q16>for %b in (*.bmp) do convert %b %~nb.jp2

C:\Programme\ImageMagick-6.6.1-Q16>convert 11111.bmp 11111.jp2
convert: unable to create image `11111.jp2' @ error/jp2.c/WriteJP2Image/877.

C:\Programme\ImageMagick-6.6.1-Q16>

any ideas why it doesnt work with .jp2 `?

thank you

best regards
mandragora

Re: error/jp2.c/WriteJP2Image/877. under windows XP

Posted: 2010-04-20T09:00:56-07:00
by fmw42
try

convert image.bmp JP2:image.jp2

Re: error/jp2.c/WriteJP2Image/877. under windows XP

Posted: 2010-04-20T13:35:32-07:00
by snibgo
I dusted off my Windows XP machine, installed IM 6.6.1-4 Q16 and tried (in an ordinary user account):

convert logo: logo.bmp
convert logo.bmp logo.jp2

It works fine, as it also does under IM 6.5.4-0 Q8.

Sorry, I don't know what else to suggest.

Re: error/jp2.c/WriteJP2Image/877. under windows XP

Posted: 2010-04-20T13:50:01-07:00
by fmw42
update/reinstall your Jasper library and recompile IM (is the only suggestion I can make if it works for snibgo)

Re: error/jp2.c/WriteJP2Image/877. under windows XP

Posted: 2010-04-20T14:04:00-07:00
by snibgo
I just installed the pre-built Windows binary, without compiling anything. I think it has Jasper built-in, but I'm not sure. I don't think I've ever installed Jasper, as a separate chunk of software, on that machine.