convert: missing an image filename
Posted: 2009-08-01T08:49:24-07:00
Hey!
In Python I execute the following code:
The following code gets executed on the system:
.
/home/mar......./rect_temp.svg exists, the last one (the png) does not. When I run the Python code, ImageMagick reports the following:
However, when I run the code from my terminal, everything goes fine! What's going on?
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:]))
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."