I am looking for jquery or js library that can help you place text/shapes over an image.
like in this site http://picfont.com/
it can let you put the text in any location over the image by drag and drop.
Thanks in advance
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The answer depends on whether you want the resulting text to become embedded within the image (i.e. as pixels) such that you could save the whole image (text included) as a file, or whether you’re happy for the text to just float above the image.
In the latter case, just use a
<div>that can be absolutely positioned on top of an<img>element.In the former case the only option I know of is to use an HTML5
<canvas>element, and then use.fillText()to write text to the canvas:See also http://jsfiddle.net/D8ZZS/2/ for a variant of the above where the image is loaded from a
<input type="file">control using the HTML5FileReaderinterface.