[Gimp-user] SVG to PNG using a script
- From: Tres Finocchiaro <tres finocchiaro gmail com>
- To: gimp-user-list gnome org
- Subject: [Gimp-user] SVG to PNG using a script
- Date: Tue, 21 Apr 2020 15:47:17 -0400
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, 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 running:
gimp -i --batch='(svg-to-raster "src.svg" "dst.png" 72 0 0)'
--batch='(gimp-quit
0)'
Unfortunately it throws the following error:
batch command experienced an execution error:
Error: eval: unbound variable: file-svg
I'm using MacOS to write the script, but the target platform is Windows.
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
write this as a fallback for this particular system.
Best regards,
-Tres
- Tres Finocchiaro gmail com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]