Download binary image using jquery

I would like to display an image downloaded from a specific url using jquery ajax. How can i achieve this? (without setting the .src image) I also need to rotate and scale this image.

+3
source share
2 answers

You can create <canvas>and fill it with an image. When loading the image, you can rotate, scale, draw, etc.

Here is a good tutorial that does exactly what you need.

To run this run in IE, I suggest using ExplorerCanvas .

0
source

, hide show src.

$('<img>').hide().attr('src', 'img_url').onload(function() {$(this).show()});

, Pixastic, .

0

All Articles