[Compress Resize Image] Compress - Quality Values
Forge component by Sachin Mahawar
Published on 12 Dec 2017

To compress image it required a Quality Value. Is there any range?, a big number means more compression or less qualiyy?

Rank: #403

Hi Carlos,

        /// </summary>
        /// <param name="path">Path to which the image would be saved.</param>
        // <param name="quality">An integer from 0 to 100, with 100 being the
        /// highest quality</param>
        // public static void SaveJpeg(string path, System.Drawing.Image img, int quality)

Rank: #1879

Hi Carlos and Fábio,

From my experience, we must take into account the type of image that we are compressing.If your objective is decrease size and if the format from image is Jpeg, depends from image and the quality value that you will passe. When I did this, I converted the images to webp format and in this format do not exist this problem and the image is very compressed without lose quality. 


Does it support ".tif" file format for compression and how should we decide quality parameter?