samedi 21 février 2015

How to decide quality for compression for uploaded Images dynamically


EncoderParameter qualityParam = new EncoderParameter(Encoder.Quality, quality);


When user uploads image. It can be 5MB, 100Kb, 20Kb. How to decide "quality" value for different images in the above snippet?


Any logic for this with affordable quality loss in different uploaded images scenario?


Aucun commentaire:

Enregistrer un commentaire