DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Adding text to an image  (Read 6,787 times)

rgdot

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 2,197
Adding text to an image
« on: February 04, 2012, 10: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

[attachthumb=#]

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,565
Re: Adding text to an image
« Reply #1 on: February 04, 2012, 11:31 PM »
only almost


http://www.donationcoder.com/forum/index.php?topic=29823.msg277108#msg277108 Image Mapper $5

rgdot

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

IainB

  • @Slartibartfarst
  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 7,544
Re: Adding text to an image
« Reply #3 on: February 05, 2012, 03:16 AM »
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 05, 2012, 05:54 AM by IainB »

rgdot

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 2,197
Re: Adding text to an image
« Reply #4 on: February 05, 2012, 06: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,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Adding text to an image
« Reply #5 on: February 05, 2012, 06: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,197
Re: Adding text to an image
« Reply #6 on: February 05, 2012, 06:53 AM »
Thanks mouser, you make a good point about learning

IainB

  • @Slartibartfarst
  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 7,544
Re: Adding text to an image
« Reply #7 on: February 05, 2012, 09:29 AM »
Wot, not something like this? (change colours to suite taste)
Click on button to see example:
Spoiler (click to show/hide)
[attach]

rgdot

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

Original address: https://www.donationcoder.com/forum/index.php?topic=29822.0