Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 14, 2013, 09:46 AM   #1
mehdies
macrumors member
 
Join Date: Jun 2012
Image water mark(certain coordinate)

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
mehdies is offline   0 Reply With Quote
Old Jul 15, 2013, 06:50 AM   #2
jhiesey
macrumors newbie
 
Join Date: Mar 2013
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/co...s.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.
jhiesey is offline   2 Reply With Quote
Old Jul 16, 2013, 12:55 AM   #3
mehdies
Thread Starter
macrumors member
 
Join Date: Jun 2012
Quote:
Originally Posted by jhiesey View Post
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/co...s.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
mehdies is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
tried restarting my I mac and I get a question mark on a folder looking image that ke Dave Garrett Mac Basics and Help 3 Mar 12, 2014 11:22 PM
iPad Mini: Stylus left Rainbow / Water-like Mark on Screen? Finox831 iPad 8 Feb 9, 2014 03:59 PM
Use UIslider maximum and minimum values as coordinate range for UIView lexk iPhone/iPad Programming 7 Apr 30, 2013 04:31 PM
Change Text When At Coordinate Blast12345 iPhone/iPad Programming 4 Sep 21, 2012 10:13 PM
Convert 3D point from 1 coordinate system to other namanhams iPhone/iPad Programming 8 Jul 27, 2012 11:14 AM

Forum Jump

All times are GMT -5. The time now is 12:19 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC