Thanks for that crucial info,
Just to be clear though, Lets say an image's actual size is 100kb... does that means when i am saving it to local storage through the code you gave... it is taking up local storage of 100*(80/30)kb ~ 260kb ?
Edit: Or does it have to do anything with dimension of image?