Post Reply 

Variables from bash into GIMP text

Jun 24, 2014, 12:20
Post: #1
Variables from bash into GIMP text
I want to have a text layer update on an image template I made, and then export the image.

Is it possible to update text layers in GIMP using environment variables from bash?

Thanks
Find all posts by this user
Quote this message in a reply
Jun 24, 2014, 13:04
Post: #2
RE: Variables from bash into GIMP text
The script experts, hopefully, will be along soon.

My first thought was 'why gimp' If the base image is a template and the text is in a file then ImageMagick will superimpose the text.

something along the lines of

Code:
#!/bin/bash
#
# $1 is the image file
# $2 is the text file
# $3 is the out.file
convert $1 -fill white -box black -gravity North -pointsize 40 -annotate +0+5 @$2 $3

throws up a couple of warnings but works.
also
This old post from SauleGoode might be worth chasing up
http://www.gimptalk.com/index.php?/topic...ginscript/

** https://www.gimp-forum.net/ now answering questions**
Find all posts by this user
Quote this message in a reply
Jun 24, 2014, 13:34 (This post was last modified: Jun 24, 2014 13:40 by WEP11.)
Post: #3
RE: Variables from bash into GIMP text
I guess Imagemagick is worth a try, but this image should give you an idea of what I'm doing. I hate having to change the text by hand every morning at 8AM Wink

(I dont think my adding the image is working):http://brianmagiweatheruncc.dreamhosters.com/week.png
Find all posts by this user
Quote this message in a reply
Jun 24, 2014, 13:58
Post: #4
RE: Variables from bash into GIMP text
Okay, thanks for the tip! GIMP can still make the template though

Thanks!
Find all posts by this user
Quote this message in a reply
Jun 24, 2014, 16:55
Post: #5
RE: Variables from bash into GIMP text
Ouch. week.png is going to take a bit of setting up.

Best ask on the IM forum. http://www.imagemagick.org/discourse-server/ the users section

** https://www.gimp-forum.net/ now answering questions**
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  GIMP 2.10.6 not responding HBS 0 23 Yesterday 09:20
Last Post: HBS
  Gimp Latest Build has me a little puzzled kmk55 1 107 Sep 14, 2018 08:40
Last Post: paynekj
  The Right XP-Pen graphic tablet for Gimp/windows 10 ruijin 1 87 Sep 11, 2018 08:07
Last Post: paynekj
  Gimp opening files as indexed Nurufire 1 241 Aug 23, 2018 21:35
Last Post: paynekj
Wink GIMP dialog boxes take forever to load! LugwigVanBacon 1 228 Aug 20, 2018 20:08
Last Post: paynekj

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS