Dan Hanly
Dan Hanly

Reputation: 7839

Draw a box in HTML, Javascript and CSS

My application is similar to moonpig or hallmark in the customised card style operation. In the administrative section I need the admin to be able to load in an image of a card and draw a box on this card to define the x, y, width and height of the customisation area and in doing so, storing this x, y, width and height variables. Is there a way to do this?

Upvotes: 0

Views: 1031

Answers (1)

Mayank
Mayank

Reputation: 1631

I believe you are looking to crop the image. If this is the case, you can have a look at the jQuery Image Cropping plugin. http://deepliquid.com/content/Jcrop.html

Upvotes: 3

Related Questions