What started my Gimp server was:

export DISPLAY=localhost:0
nohup gimp --no-interface --batch '(extension-perl-server 1 0 0)' &

Example script (and library) attached.  These are from 2001, so
significant bitrot may have occurred.  I can't guarantee these will
still work, but they should be sufficient to get you onto a path of
writing the scripts that you want.

It's also amazing to think that I've been writing Perl, now, for over
half of my life!

On Wed, Aug 11, 2021 at 12:50 AM Paul Boniol <[email protected]> wrote:
>
> Thanks JMJ and Tilghman! Imagemagick sounds easier, but I have been curious 
> about learning how to use Gimp's Script-Fu for quite a while. Maybe it's time 
> to dig in.
>
> Paul
>
> On Tue, Aug 10, 2021 at 9:05 AM Tilghman Lesher <[email protected]> wrote:
>>
>> It's been years since I've messed with it, but what you're looking for
>> is Script-Fu:
>>
>> https://docs.gimp.org/en/gimp-concepts-script-fu.html
>>
>> Basically, you can take any action, any plugin, whatever you want to
>> automate, and mirror the entire process using Script-Fu by using the
>> Gimp server.  There's even a Perl Module for interfacing with
>> Script-Fu, if you don't want to mess with Scheme, the native language
>> of Script-Fu.
>>
>> On Mon, Aug 9, 2021 at 2:11 PM Paul Boniol <[email protected]> wrote:
>> >
>> > If nobody else has a suggestion, my latest thing I'm trying to figure out:
>> >
>> > I've been manually editing them with GIMP since it was just a few, but 
>> > over the years, the number of images is growing.
>> >
>> > Given a list of jpeg images, change their PPI (DPI) setting because it is 
>> > not correct (118/11820).
>> >
>> > I've got a Perl program finding the incorrect PPI images, but looking for 
>> > a way to auto-magically get it changed to 118/118.  (Perl or Linux 
>> > program.)
>> >
>> > Paul
>> >
>> > On Sat, Aug 7, 2021 at 12:21 AM Paul Boniol <[email protected]> wrote:
>> >>
>> >> The Zoom link has been created for the August meeting, Tuesday the 10th 
>> >> at 6:30 pm.  The link will be posted to MeetUp shortly before the start 
>> >> time.
>> >>
>> >> If anyone has a meeting topic, problem, etc. you'd like discussed now or 
>> >> in the future, please send it to the list.
>> >>
>> >> Paul
>> >
>> > --
>> > --
>> > You received this message because you are subscribed to the Google Groups 
>> > "NLUG" group.
>> > To post to this group, send email to [email protected]
>> > To unsubscribe from this group, send email to 
>> > [email protected]
>> > For more options, visit this group at 
>> > http://groups.google.com/group/nlug-talk?hl=en
>> >
>> > ---
>> > You received this message because you are subscribed to the Google Groups 
>> > "NLUG" group.
>> > To unsubscribe from this group and stop receiving emails from it, send an 
>> > email to [email protected].
>> > To view this discussion on the web visit 
>> > https://groups.google.com/d/msgid/nlug-talk/CAL9PgS3WsLws1ezF3DOe-NL6ty9QH%3DJ4DioC8_2NKmaNN6oYvg%40mail.gmail.com.
>>
>>
>>
>> --
>> Tilghman
>>
>> --
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "NLUG" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to 
>> [email protected]
>> For more options, visit this group at 
>> http://groups.google.com/group/nlug-talk?hl=en
>>
>> ---
>> You received this message because you are subscribed to the Google Groups 
>> "NLUG" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/nlug-talk/CAHPkZcVafEW2-1PS1Pv67NtFosGrV%3D54MzTQoFYmHujGCEVWYA%40mail.gmail.com.
>
> --
> --
> You received this message because you are subscribed to the Google Groups 
> "NLUG" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to 
> [email protected]
> For more options, visit this group at 
> http://groups.google.com/group/nlug-talk?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups 
> "NLUG" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/nlug-talk/CAL9PgS2DtAOG89%2BoRAsd_EOgknZqiwcw-FydXQNEz_Nk%2B-OqHg%40mail.gmail.com.



-- 
Tilghman

-- 
-- 
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nlug-talk?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nlug-talk/CAHPkZcV40gw8%2B2U4FpMVN4JX1k3ko8joC5oJuGi%2B7XVGwa0%3DBA%40mail.gmail.com.

Attachment: resize_by_width
Description: Binary data

Attachment: GimpPimp.pm
Description: Perl program

Reply via email to