0

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?

Flimzy
  • 68,325
  • 15
  • 126
  • 165
Santhanam
  • 350
  • 4
  • 15
  • 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 Answers2

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