最佳答案
I require to generate a thumbnail of an image in my Web Application. I make use of the Html 5 File API to generate the thumbnail.
I made use of the examples from the below URL to generate the thumbnails.
http://www.html5rocks.com/en/tutorials/file/dndfiles/
I am successfully able to generate the thumbnails. The problem that I have is I am able to generate thumbnail only by using a static size. Is there a way to get the file dimensions from the selected file and then create the Image object?