convert: missing an image filename

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
Martje

convert: missing an image filename

Post by Martje »

Hey!

In Python I execute the following code:

Code: Select all

dir = '/home/martijn/Documenten/Eclipse/ponycluboosterwolde/media/afbeeldingen/header/rectangles/'
commands.getstatusoutput('convert -background none %srect_temp.svg %srect_%s.png' % (dir, dir, kleur[1:]))
The following code gets executed on the system:

Code: Select all

convert -background none /home/martijn/Documenten/Eclipse/ponycluboosterwolde/media/afbeeldingen/header/rectangles/rect_temp.svg /home/martijn/Documenten/Eclipse/ponycluboosterwolde/media/afbeeldingen/header/rectangles/rect_39cc00.png
.

/home/mar......./rect_temp.svg exists, the last one (the png) does not. When I run the Python code, ImageMagick reports the following:

Code: Select all

Exit code:256
Message:"convert: missing an image filename `/home/martijn/Documenten/Eclipse/ponycluboosterwolde/media/afbeeldingen/header/rectangles/rect_39cc00.png' @ wand/convert.c/ConvertImageCommand/2710."
However, when I run the code from my terminal, everything goes fine! What's going on? :(
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: convert: missing an image filename

Post by fmw42 »

you may have to provide the full path to convert in your API call.
Martje

Re: convert: missing an image filename

Post by Martje »

Thanks for your suggestion. It doesn't help unfortunately :(.
Martje

Re: convert: missing an image filename

Post by Martje »

It seems some security service is standing in the way :). I suspect AppArmor, but it could be SELinux also.

Problem solved! :)
Post Reply