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 gimp-2.10.exe
   - I've tried gimp-console-2.10.exe
   - I've tried swapping single quotes and double-quotes

It works on macOS Gimp 2.10.14 but does not work on Windows using Gimp
2.10.18.

 When I try to run the first portion interactively, I receive the following
errors:

   - Opening *'C:\Users\owner\Desktop\((image'* failed: Error opening file
   C:\Users\owner\Desktop\((image: No such file or directory
   - Opening *'C:\Users\owner\Desktop\(car'* failed: Error opening file
   C:\Users\owner\Desktop\(car: No such file or directory
   - Opening *'C:\Users\owner\Desktop\(file-svg-load'* failed: Error
   opening file C:\Users\owner\Desktop\(file-svg-load: No such file or
   directory

I've tried using PowerShell and receive very similar results.  What am I
doing wrong?


-Tres

- tres.finocchi...@gmail.com


On Thu, Apr 23, 2020 at 11:51 AM Tres Finocchiaro <
tres.finocchi...@gmail.com> wrote:

> 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 RUN-NONINTERACTIVE image drawable
> *"output.png"* *"output.png"*) (gimp-image-delete image))' -b '(gimp-quit
> 0)'
>
> Where:
>
>    - "input.svg" is the source file name
>    - 72 is the output resolution in pixels-per-inch
>    - 400 is the output width
>    - 600 is the output height
>    - "output.png" is the output file name
>
> -Tres
>
>
> - tres.finocchi...@gmail.com
>
>
> On Tue, Apr 21, 2020 at 6:26 PM Liam R E Quin <l...@holoweb.net> wrote:
>
>> 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 text file, and the likely error from the message is that it
>> calls file-png to export, and not file-png-save.
>>
>> >
>> > If so, can someone direct me how to get a list of scheme commands
>> > that can
>> > be executed from a vanilla gimp install?
>>
>> Help->Procedure Browser
>>
>> slave liam
>>
>> --
>> Liam Quin - web slave for https://www.fromoldbooks.org/
>> with fabulous vintage art and fascinating texts to read.
>> Click here to have the slave beaten.
>>
>>
_______________________________________________
gimp-user-list mailing list
List address:    gimp-user-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list

Reply via email to