java - Compress image from URL before download? -


i want know if it's possible compress image before actual download. let's image on specific url 500kb big, want compress 50kb or 100kb.

i'm asking because have gridview in android populated imageviews specific url. , if image/s on url "big" download slow. how deal particual problem, idea? possible?

yes, can if write corresponding service on server. it's better offer images in different sizes or qualities begin , load files need.

for example, have foo-highquality.jpg low compression (high quality) , foo-lowquality.jpg high compression (low quality). app load each file depending on need.

you cannot make server not control "compress" you.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -