I want to load the image with the minimum size of 2KB. I am unable to use any server technology here. Is it possible to know the size of the image using JavaScript or jQuery?
Asked
Active
Viewed 91 times
0
-
see: http://stackoverflow.com/questions/1310378/determining-image-file-size-dimensions-via-javascript and http://stackoverflow.com/questions/3272441/anyway-to-get-image-file-size-using-javascriptor-jquery-like – Kai Sternad Oct 28 '11 at 07:17
2 Answers
0
It is possible using html5 stuff (if you can't use server-side).
http://www.html5rocks.com/en/tutorials/file/dndfiles/
or though Flash app since almost everyone have it installed.

Kamil Lach
- 4,519
- 2
- 19
- 20
0
You would have load this image via AJAX and then use content-lenght property. Check this out.

Pono
- 11,298
- 9
- 53
- 70