Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Contributor
2881 Points
517 Posts
Apr 07, 2012 11:24 AM|LINK
You can get image Height and Width without loading the image.
Getting image height and width from its header is explained in following articles.
http://stackoverflow.com/questions/111345/getting-image-dimensions-without-reading-the-entire-file
http://www.codeproject.com/Articles/35978/Reading-Image-Headers-to-Get-Width-and-Height
For resizing images in fastest way refer this article
http://weblogs.asp.net/bleroy/archive/2010/05/03/the-fastest-way-to-resize-images-from-asp-net-and-it-s-more-supported-ish.aspx
Also refer this thread to get some alternative methods enlisted.
http://forums.asp.net/t/1085119.aspx
Hope it helps.
image resize
avinash_bhud...
Contributor
2881 Points
517 Posts
Re: Low resource usage on code to find image size
Apr 07, 2012 11:24 AM|LINK
You can get image Height and Width without loading the image.
Getting image height and width from its header is explained in following articles.
http://stackoverflow.com/questions/111345/getting-image-dimensions-without-reading-the-entire-file
http://www.codeproject.com/Articles/35978/Reading-Image-Headers-to-Get-Width-and-Height
For resizing images in fastest way refer this article
http://weblogs.asp.net/bleroy/archive/2010/05/03/the-fastest-way-to-resize-images-from-asp-net-and-it-s-more-supported-ish.aspx
Also refer this thread to get some alternative methods enlisted.
http://forums.asp.net/t/1085119.aspx
Hope it helps.
image resize