Re: [Gimp-user] SVG to PNG using a script

2020-04-23 Thread Tres Finocchiaro via gimp-user-list
Link to originating question: https://superuser.com/a/1545028/443147 - tres.finocchi...@gmail.com On Thu, Apr 23, 2020 at 1:51 PM Tres Finocchiaro wrote: > Ok, I got it. Had to remove all single quotes and use backslash instead > of uptick to escape the double-quotes. > > Here's a working

Re: [Gimp-user] SVG to PNG using a script

2020-04-23 Thread Tres Finocchiaro via gimp-user-list
Ok, I got it. Had to remove all single quotes and use backslash instead of uptick to escape the double-quotes. Here's a working Windows example: https://gist.github.com/tresf/1bd76fc8cd4a4def215c68cab990dfb1 Thanks again for the help. - tres.finocchi...@gmail.com On Thu, Apr 23, 2020 at

Re: [Gimp-user] SVG to PNG using a script

2020-04-23 Thread Tres Finocchiaro via gimp-user-list
Are there any known caveats to running these command on Windows? I'm testing the above with CMD and no matter how I run it, it pops up a dialog asking me what resolution to import the file at, I can't get it to run non-interactively. - I've tried escaping the asterisks - I've tried

Re: [Gimp-user] SVG to PNG using a script

2020-04-23 Thread Tres Finocchiaro via gimp-user-list
A one-liner using Gimp and no other tools: ./gimp -i -b '(let* ((image (car (file-svg-load RUN-NONINTERACTIVE *"input.svg"* "" *72* (- 0 *400*) (- 0 *600*) 0))) (drawable (car (gimp-image-get-active-layer image (plug-in-autocrop RUN-NONINTERACTIVE image drawable) (gimp-file-save

Re: [Gimp-user] SVG to PNG using a script

2020-04-21 Thread Liam R E Quin
On Tue, 2020-04-21 at 16:39 -0400, Tres Finocchiaro wrote: > Liam, > > After re-reading your post, is it safe to assume my original question > was written in scheme/script-fu? Probably the script you were running, the one you didn't includeand got from Web archive, was in Scheme, yes. It's a

Re: [Gimp-user] SVG to PNG using a script

2020-04-21 Thread Tres Finocchiaro via gimp-user-list
Michael, You're completely right, the web archive of that original post has it for download. Here's the web archive article, which specifically mentions downloading svg-to-raster.scm. https://web.archive.org/web/20140214102644/http://porpoisehead.net/mysw/index.php?pgid=gimp_svg Fortunately,

Re: [Gimp-user] SVG to PNG using a script

2020-04-21 Thread Michael Schumacher
On 4/21/20 9:47 PM, Tres Finocchiaro via gimp-user-list wrote: > The best resource I've found is here however, attempts to run this on my > machine are failing using GIMP 2.1.0. > > http://www.jasonhardin.com/programming/2012/08/23/Gimp-svg-to-png-script/#disqus_thread > > The script I'm

Re: [Gimp-user] SVG to PNG using a script

2020-04-21 Thread Tres Finocchiaro via gimp-user-list
Liam, After re-reading your post, is it safe to assume my original question was written in scheme/script-fu? If so, can someone direct me how to get a list of scheme commands that can be executed from a vanilla gimp install? - tres.finocchi...@gmail.com On Tue, Apr 21, 2020 at 4:36 PM Tres

Re: [Gimp-user] SVG to PNG using a script

2020-04-21 Thread Tres Finocchiaro via gimp-user-list
I'm confused, I'm attempting to use the gimp command line, is it no longer supported? Why am I being told to use other tools still? This is a specific attempt to use Gimp for a task. No additional software installed. If Gimp ships with a usable version of python in a reliable location, I'd be

Re: [Gimp-user] SVG to PNG using a script

2020-04-21 Thread Liam R E Quin
On Tue, 2020-04-21 at 15:47 -0400, Tres Finocchiaro via gimp-user-list wrote: > > > I was wonder if there was a way to utilize Gimp's scripting system to > convert an SVG to a PNG? Yes, from python, perl or scheme (script-fu). there's also batch mode add-ons such as phatch. You might prefer

Re: [Gimp-user] SVG to PNG using a script

2020-04-21 Thread Tres Finocchiaro via gimp-user-list
Hmm... I'm not sure why the scripting system is continuously dismissed as a viable solution. Is your answer that it's not viable. Requoting: I understand there are many other tools for performing this conversion (and > I'm leveraging these tools in other parts of code) but I was hoping to >

Re: [Gimp-user] SVG to PNG using a script

2020-04-21 Thread Guy Stalnaker via gimp-user-list
Tres, Several perhaps better options are tools intended for command line use: https://www.imagemagick.org/script/download.php Or, for considerably more sophisticated image work (with correspondingly more detailed and opaque documentation) G'MIC (which also has a builtin tool for use inside GIMP

Re: [Gimp-user] SVG to PNG using a script

2020-04-21 Thread Tres Finocchiaro via gimp-user-list
Apologies, typo: Error: eval: unbound variable: file-svg Should have been: Error: eval: unbound variable: *svg-to-raster * - tres.finocchi...@gmail.com On Tue, Apr 21, 2020 at 3:47 PM Tres Finocchiaro wrote: > Hi, > > I'm looking into Gimp as a viable scripting solution for a project

[Gimp-user] SVG to PNG using a script

2020-04-21 Thread Tres Finocchiaro via gimp-user-list
Hi, I'm looking into Gimp as a viable scripting solution for a project however most of the scripting references I'm finding are either sparse or dated. I was wonder if there was a way to utilize Gimp's scripting system to convert an SVG to a PNG? The best resource I've found is here however,