Operation compress

The compress operation allows for the reduction of an image file's size, potentially with no noticeable loss in quality.
This is achieved through the use of various image compression algorithms, which are designed to remove redundant or unnecessary information from the image file while preserving the visual integrity of the image.

There are several types of image compression algorithms that can be used, each with their own trade-offs in terms of file size reduction and image quality.
The specific compression algorithm used is automatically selected by setting the quality option between the values: low, medium, high, best.

Available Options

Option Name Type Possible Values Description
compression_level string low, medium, high, best Tries to compress your file at different levels with no perceivable loss of quality
compression_target string gif, jpg, png Sets the target format if it's different from the input's file format
allow_multiple_outputs boolean true, false If the comparison produces more than one output file, by default all of them are compressed in just one file. Set this option to true if you want a download link for each file.

Example

{
    "conversion": [{
        "category": "operation",
        "target": "compare-video",
        "options": {
            "compression_level": "high",
            "compression_target": "jpg"
            }
        }
    }],
}
                                

results matching ""

    No results matching ""