convert gives exit code 11

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Zimrilim

convert gives exit code 11

Post by Zimrilim »

I get "exit code 11" returned whenever I try this command:
convert 'temp/something' -resize 1100x1100\> -quality 95 'name.png'

If someone can tell me what an exit code 11 means I would really appreciate it.

It is not in the manpages or any of the others files in the doc directory on sourceforge.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: convert gives exit code 11

Post by fmw42 »

I have no idea what exit code 11 means. But if you are on Windows, then you need to use ^ rather than \ as escapes

-resize 100x100^>

see
http://www.imagemagick.org/Usage/api/#windows


If you are not on Windows, then I am not sure what the problem might be. I tried something similar and it works fine.

convert './zelda3.jpg' -resize 110x110\> -quality 95 'test.png'


Is your input really in temp/ and not tmp/?
Zimrilim

Re: convert gives exit code 11

Post by Zimrilim »

I am pretty sure it isn't in tmp, although the settings might have changed since the hosting service migrated us. Maybe they migrated us from linux to windows, because it used to work. I could always try that, thanks.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: convert gives exit code 11

Post by fmw42 »

Definitely check where you ISP is placing images and also which OS you are using!
Zimrilim

Re: convert gives exit code 11

Post by Zimrilim »

Well I define where the images are placed myself and the OS I have verified is linux.

Could it be related that the same commands on my local machine the created files are usually half the size or smaller than when executed on the remote server?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: convert gives exit code 11

Post by fmw42 »

What IM version are you using?

identify -version

Where was it installed?

Are you using Q16 or Q8 IM?

Do you have permissions for the image directories?

Does IM know about your temp directory? Is it in your home path or the path where IM knows you work?

Try your command with input and output images in your home directory
Zimrilim

Re: convert gives exit code 11

Post by Zimrilim »

identify -version returns:
Version: ImageMagick 6.3.5 08/01/07 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2007 ImageMagick Studio LLC

We have full access to the image directory and we define the temp directory ourselves and show that in our command.

However because the code we use it with is complex, it would help a lot if we knew what exit code 11 means. Then it would is easier to debug. I have already tried the man pages on the sourceforge page and found nothing.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: convert gives exit code 11

Post by fmw42 »

post a link to this message in the Bugs forum. perhaps someone there can tell you what that is. it might not be an IM error but your shell error or some other error on your system
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: convert gives exit code 11

Post by el_supremo »

I think that if the Linux versions exits with code 11 then the program had a segmentation fault which means it is trying to access a location outside its address space. This is generally caused by a bug in the program. A (much) less likely cause is that the ram is going bad.

Pete
Zimrilim

Re: convert gives exit code 11

Post by Zimrilim »

Thank you for the reply, I will post a message about this in the bugs forum.

If it is really a bug in the software or an error in the ram then I can get the appropriate support from my webhost.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: convert gives exit code 11

Post by fmw42 »

I suggest you modify your post on the Bugs forum to put a link back to this topic in the Users forum, so that whomever can follow the thread.
Post Reply