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
  Changing names on things in Gimp? colorizing 1 73 Feb 17, 2018 04:34
Last Post: ythgilb
Question Gimp 2.8 vs 2.9 performance dr_Fell 2 82 Feb 16, 2018 15:27
Last Post: dr_Fell
  Gimp 2.8.22 in Windows 10: Filename issue Mona Eberhardt 3 129 Jan 28, 2018 21:16
Last Post: ythgilb
  GiMP 2.8.10 freezes on 'Opening '[filename]' Rasha 0 85 Jan 24, 2018 00:00
Last Post: Rasha
  Huoin 1060 plus + Ubuntu + Gimp 2.9.x belussi 1 130 Jan 22, 2018 22:57
Last Post: ofnuts

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS