View Full Version : Drawing on JPEGs
Crow2
09-07-2006, 12:56 PM
I need to display a jpeg of a map on a PHP web page - no problem with coding that ... but then I want to enable the user to draw lines on the map (by the side of roads to mark out a route), and then save the annotated image back to the web server.
Not sure where to start on the latter. Could someone advise or point me to resources to get me started?
Thanks
mlseim
09-07-2006, 01:35 PM
This sounds like it might be best done with Flash.
Ask this in the Flash forum either on Codingforums, or a forum
dedicated to Flash users.
This is sort of silly, but it is an example of using Flash to draw on the
screen and saves the image:
http://drawapig.desktopcreatures.com/
I think you could display an image and draw over the top of it also
using Flash ... which is why I mention that.
Crow2
09-08-2006, 11:34 AM
Thanks. I've been guided to a Javascript solution called Anfy Paint which looks like it will do the job.
mlseim
09-08-2006, 02:06 PM
That's pretty neat ...
But the .jpeg image gets saved on the user's PC.
With a server-side script (like Flash), the image would be
saved on the server, for others to see.
With Anfy Paint, you would have to have them upload their .jpeg using
a separate web page form.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.