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 86 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,359
- 2
- 18
- 20
0
You would have load this image via AJAX and then use content-lenght property. Check this out.
Pono
- 10,532
- 9
- 50
- 67