0

I'm looking for something like GD Library but for JavaScript. I read about SVG.

SVG images can be searched, indexed, scripted, and compressed

SVG graphics do NOT lose any quality if they are zoomed or resized

SVG images are scalable

But only images I could see in examples that SVG manipulates with are simple rectangles, circles, polylines and so on. Just children's free-hand drawing images. And I still don't understand is it possible to manipulate real photos with SVG?

Green
  • 28,742
  • 61
  • 158
  • 247
  • 1
    SVG can display images via the `` tag, and can display them at various scaled sizes and transformations, but it does not provide features for resampling and exporting the raw data. Try HTML5 Canvas if you need to do this on the web. – Phrogz Aug 11 '12 at 22:12

1 Answers1

2

SVG is meant for vector graphics, not raster images like JPEG.

http://en.wikipedia.org/wiki/Scalable_Vector_Graphics

Dave R.
  • 7,206
  • 3
  • 30
  • 52