topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Sunday December 15, 2024, 9:34 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Adding text to an image  (Read 4734 times)

rgdot

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 2,193
    • View Profile
    • Donate to Member
Adding text to an image
« on: February 04, 2012, 04:13 PM »
Initially thought this may have a place in coding snacks but not sure if it fits so I am just opening the thread in General Software.

Using an offline tool, user provides an image (like soccer pitch jpg attached) and chooses a combination of rows and columns (4, 3 or 4, 4 etc.) then a list of names (perhaps a csv list provided by user or even a manually entered one) that are dropped one by one into the cells to output a jpg.
Exaggerating a bit, may be this is like a watermarking tool but one that supports more than one string.

Any ideas? TIA

soccerpitch.jpgAdding text to an image

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,566
    • View Profile
    • Donate to Member
Re: Adding text to an image
« Reply #1 on: February 04, 2012, 05:31 PM »

rgdot

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 2,193
    • View Profile
    • Donate to Member
Re: Adding text to an image
« Reply #2 on: February 04, 2012, 05:51 PM »
Thanks, will use it (or may be other image mapper?) if nothing else is found. Imagemagick might be an option too

IainB

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 7,544
  • @Slartibartfarst
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: Adding text to an image
« Reply #3 on: February 04, 2012, 09:16 PM »
Umm, I think this could probably be done quite easily - and nicely - via ScreenShot Captor, using text objects. They are quite flexible to use. You wouldn't need to provide a combination of rows. Just type the text in, to either opaque or transparent objects - (say) 1 object for each column - then align the column objects and their text and scale the text to fit using the font size. I'm a relatively novice user of SSC, so I suspect there could probably be even better ways of doing it in SSC if you were an experienced user.
« Last Edit: February 04, 2012, 11:54 PM by IainB, Reason: Minor corrections. »

rgdot

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 2,193
    • View Profile
    • Donate to Member
Re: Adding text to an image
« Reply #4 on: February 05, 2012, 12:08 AM »
Thanks, trying it tomorrow, haven't really used SCC much but this possibility and some of the newer features mouser has added make it even more intriguing and attractive.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Adding text to an image
« Reply #5 on: February 05, 2012, 12:28 AM »
Definitely try Screenshot Captor for general screenshot use, but it's not going to do what you want here.
This would be a good time to learn a bit of python though -- perfect kind of thing for a little Python project.
Reminds me of the kind of thing I wrote Python Proto Cards to do.

rgdot

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 2,193
    • View Profile
    • Donate to Member
Re: Adding text to an image
« Reply #6 on: February 05, 2012, 12:53 AM »
Thanks mouser, you make a good point about learning

IainB

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 7,544
  • @Slartibartfarst
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: Adding text to an image
« Reply #7 on: February 05, 2012, 03:29 AM »
Wot, not something like this? (change colours to suite taste)
Click on button to see example:
Spoiler
Soccer (football) pitch (IB01).jpg


rgdot

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 2,193
    • View Profile
    • Donate to Member
Re: Adding text to an image
« Reply #8 on: February 05, 2012, 12:42 PM »
^ Cool, thanks :) I think I am going to play with it while exploring the other options.