Hi, all.
Apparently the command line interface of Inkscape is not working properly. I usually export PNG files from command line because is much more quickly than open every single SVG to export in the GUI interface. After the upgrade to the 0.47 version I cannot export the PNG this way anymore. There is no error message. It simply output nothing. I use Inkscape on a Windows XP Service Pack 3. The command line that I usually use to export the files is:
inkscape -f file.svg -e file.png -h 64 -w 64
I review the options in the WEB about the command line and appears to me that nothing was changed from the older version.
Someone has a clue?
Best regards, Alessandro Antonello
On 11/30/2009 05:16 PM, Alessandro Antonello wrote:
Apparently the command line interface of Inkscape is not working properly. I usually export PNG files from command line because is much more quickly than open every single SVG to export in the GUI interface. After the upgrade to the 0.47 version I cannot export the PNG this way anymore. There is no error message. It simply output nothing. I use Inkscape on a Windows XP Service Pack 3. The command line that I usually use to export the files is:
inkscape -f file.svg -e file.png -h 64 -w 64
I review the options in the WEB about the command line and appears to me that nothing was changed from the older version.
Someone has a clue?
Works for me, but I still run a pre4 version on Linux.
On 30/11/09 16:16, Alessandro Antonello wrote:
Apparently the command line interface of Inkscape is not working properly. I usually export PNG files from command line because is much more quickly than open every single SVG to export in the GUI interface. After the upgrade to the 0.47 version I cannot export the PNG this way anymore. There is no error message. It simply output nothing. I use Inkscape on a Windows XP Service Pack 3. The command line that I usually use to export the files is:
inkscape -f file.svg -e file.png -h 64 -w 64
I review the options in the WEB about the command line and appears to me that nothing was changed from the older version.
Someone has a clue?
Have you tried to use absolute path names for both the SVG and PNG file?
You could use the 'inkscapec.exe - A Command Line Wrapper for Win32' described in http://kaioa.com/node/63 to see any related error messages of Inkscape that could indicate why the export fails.
~suv
running Windows XP and Inkscape 0.47 r22583 (Nov 21 2009), the following command worked well for me: D:\Program Files\Inkscape>inkscape -f c:\windows\temp\bad4_2.svg -e c:\windows\temp\bad4_2.png -h 64 -w 64
if there is any doubt as to what is wrong, then probably the best thing is to run inkscapec.exe as suggested above.
Hi, guys.
Thanks for the ideas and support.
I tried the 'inkscapec.exe', as you can see below. And appears to me that the inkscape isn't find the file. But the file is in the current directory. The command line I copied below has an "." in front of the file name to specify that it is in the current directory. I also tried "./" (Unix way) and it show the same errors. It works fine only if I set the complete path.
$ inkscapec.exe .\connection.svg -w 64 -h 64 -e 64x64.png
** (inkscape.exe:3304): CRITICAL **: Inkscape::XML::Document* sp_repr_read_file( const gchar*, const gchar*): assertion `Inkscape::IO::file_test( filename, G_FIL E_TEST_EXISTS )' failed
** (inkscape.exe:3304): CRITICAL **: Inkscape::XML::Document* sp_repr_read_file( const gchar*, const gchar*): assertion `Inkscape::IO::file_test( filename, G_FIL E_TEST_EXISTS )' failed
** (inkscape.exe:3304): WARNING **: Specified document .\connection.svg cannot b e opened (does not exist or not a valid SVG file)
This below worked:
$ inkscapec.exe D:\plx\ihouse\src\SmartServer\web-1.3\docs\layout\icons\connection\connection.svg -w 64 -h 64 -e D:\plx\ihouse\src\SmartServer\web-1.3\docs\layout\icons\connection\64x64.png Background RRGGBBAA: ffffff00 Area 0:0:128:128 exported to 64 x 64 pixels (45 dpi) Bitmap saved as: D:\plx\ihouse\src\SmartServer\web-1.3\docs\layout\icons\connect ion\64x64.png
I fill sorry because the behavior of the last version was better. But still I am able to export the images in command line again. Export hundreds of images in the GUI interface takes too long.
Thanks again, Alessandro
participants (4)
-
Alessandro Antonello
-
Alvin Penner
-
Nicu Buculei
-
~suv