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
  How to install fonts for gimp only (not install on windows) Jacob123 1 83 Dec 7, 2018 08:58
Last Post: paynekj
  gimp tool icons leonardo 2 311 Nov 23, 2018 22:20
Last Post: paynekj
  paste Powerpoint objects to GIMP HPE007 1 250 Nov 21, 2018 21:59
Last Post: paynekj
  Gimp 2.10.8 error coyote 2 474 Nov 12, 2018 13:49
Last Post: coyote
  \Data\.gimp\backups\.goutputstream-XXXXXX Files DoughyInTheMiddle 1 400 Nov 10, 2018 10:01
Last Post: paynekj

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS