bypassing excessive dialog boxes with a default action

Post questions on how to use or achieve an effect in Inkscape.
VanGoGhetMeSumCoffee
Posts: 2
Joined: Thu Dec 29, 2011 2:49 am

bypassing excessive dialog boxes with a default action

Postby VanGoGhetMeSumCoffee » Thu Dec 29, 2011 3:20 am

i'm going to be importing 1000+ png images into inkscape (in 10-20 images at a time), and the "jpg GDK pixbuf Input" (embed vs link) dialog box is starting to hurt my enter finger, is there some way to bypass this dialog box when importing a bunch of images?

then after that i'm planning on saving to pdfs (again thousands of times), to bypass the "portable document format" dialog and just use the default action when saving to a pdf would save me ever more thousands of finger clicks and seconds of my life.

also is there a way to automatically count up each successive save file, (1.pdf, 2.pdf, 3.pdf, 4.pdf, etc.) so i don't have to type the number myself?

anyone know how to do these things? i couldn't find any info on it, and didnt see any options under inkscape preferences.

User avatar
Inkspots
Posts: 232
Joined: Sat Dec 03, 2011 3:16 am

Re: bypassing excessive dialog boxes with a default action

Postby Inkspots » Thu Dec 29, 2011 4:59 am

Have you looked at Inkscape Batch?
I don't know if it will do exactly what you want, but it's worth a look.
http://sourceforge.net/projects/inkscapebatch/

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: bypassing excessive dialog boxes with a default action

Postby ~suv » Thu Dec 29, 2011 5:08 am

VanGoGhetMeSumCoffee wrote:i'm going to be importing 1000+ png images into inkscape (in 10-20 images at a time), and the "jpg GDK pixbuf Input" (embed vs link) dialog box is starting to hurt my enter finger, is there some way to bypass this dialog box when importing a bunch of images?
Currently, there is no way to avoid that dialog (a feature request has already been filed in the bug tracker).
VanGoGhetMeSumCoffee wrote:then after that i'm planning on saving to pdfs (again thousands of times), to bypass the "portable document format" dialog and just use the default action when saving to a pdf would save me ever more thousands of finger clicks and seconds of my life.
Again, not avoidable when using Inkscape's GUI to save a copy as PDF. IIRC the dialog is not available (thus no need to be suppressed) when using the command line option to convert an SVG file into a PDF file:

Code: Select all

inkscape -f drawing.svg -A FILENAME.pdf
or

Code: Select all

inkscape --file=drawing.svg --export-pdf=FILENAME.pdf

VanGoGhetMeSumCoffee wrote:also is there a way to automatically count up each successive save file, (1.pdf, 2.pdf, 3.pdf, 4.pdf, etc.) so i don't have to type the number myself?
Not natively - usually such stuff is handled in a shell script (or batch file if you work on Windows) to e.g. export all files in a directory and create consecutively numbered FILENAMEs in a loop calling inkscape as shown above (replace FILENAME with a variable (composed by a basename and a number) and increase the number (integer) by 1 with each loop).

VanGoGhetMeSumCoffee
Posts: 2
Joined: Thu Dec 29, 2011 2:49 am

Re: bypassing excessive dialog boxes with a default action

Postby VanGoGhetMeSumCoffee » Thu Dec 29, 2011 7:54 am

ah i should've mentioned i'm on linux, inkscape batch looks like it is only available for windows.

Code: Select all

inkscape -f drawing.svg -A FILENAME.pdf

that solves my second part, i can save as svg and bulk convert :) only.. can i bulk convert from command line, or do i have to run a script which repeats the same command over and over for each file? or i guess i could always just do a quick save and change the output pdf name in the command and bash history should remember it after the first cycle then a down arrow should work... i think... bulk renaming would probably be quicker though still.

since i can't avoid the import image dialog, is there another svg program i could use just to quickly embed the images to be worked with in an svg that i could open them all at once in inkscape (to hopefully avoid that dialog box)? that might save some time still.


Return to “Help with using Inkscape”