Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mehdies

macrumors member
Original poster
Jun 10, 2012
41
0
I have an image in disk.for example : /Users/me/image.png

I want to add text to that image with certain coordinate.for example : X = 300 , Y = 600 .

I want to add number "1" to that location(300,600) - this is example

How do that?

Thanks
 

jhiesey

macrumors newbie
Mar 6, 2013
17
16
If running a few commands would work for you, I would recommend using ImageMagick. Here is a help page on watermarking: http://www.imagemagick.org/Usage/annotating/#wmark_text

That doesn't cover positioning the watermark precisely, but you could probably do something with the -geometry flag passed to the composite command: http://www.imagemagick.org/script/command-line-options.php#geometry

disclaimer: I haven't actually tried this, and I'm not an expert with using ImageMagick, although I have had good luck using it for simple things.

Edit: you will need to download ImageMagick; it isn't built-in. It looks like the project has downloadable binaries, and it's also available from macports and homebrew.
 

mehdies

macrumors member
Original poster
Jun 10, 2012
41
0
If running a few commands would work for you, I would recommend using ImageMagick. Here is a help page on watermarking: http://www.imagemagick.org/Usage/annotating/#wmark_text

That doesn't cover positioning the watermark precisely, but you could probably do something with the -geometry flag passed to the composite command: http://www.imagemagick.org/script/command-line-options.php#geometry

disclaimer: I haven't actually tried this, and I'm not an expert with using ImageMagick, although I have had good luck using it for simple things.

Edit: you will need to download ImageMagick; it isn't built-in. It looks like the project has downloadable binaries, and it's also available from macports and homebrew.

I will Test and post results here.but if i do that with cocoa,i think better than ImageMagick
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.