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

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
mandragora

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

Post 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
mandragora

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

Post by mandragora »

Good morning

Has nobody any idea what`s wrong ?

thank you very much

best regards
mandragora
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

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

Post 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.
snibgo's IM pages: im.snibgo.com
mandragora

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

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post by fmw42 »

do you have the Jasper delegate library installed?

convert -list configure

Look at line starting with DELEGATES, does it contain jp2?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

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

Post 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
snibgo's IM pages: im.snibgo.com
mandragora

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

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post by fmw42 »

try

convert image.bmp JP2:image.jp2
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

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

Post 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.
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post by fmw42 »

update/reinstall your Jasper library and recompile IM (is the only suggestion I can make if it works for snibgo)
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

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

Post 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.
snibgo's IM pages: im.snibgo.com
Post Reply