V1 Image Transformations - Format and Compression

You can use Filepicker to compress jpg and png files. For jpg files you can also set the quality of the output image. This compression is lossless.

Filepicker has a limit to how large the images it will accept for conversions can be. The maximum accepted image size is 100,000,000 pixels, so an image with this many pixels could have width and height combinations like 10,000 x 10,000 or 5,000 x 20,000, etc.

Syntax

https://www.filestackapi.com/api/file/<handle>/convert?[options]
format

Specifies what format the image should be converted to, if any.

Possible values:

jpg png
For "jpg" conversions, you can additionally specify a quality parameter.
compress

For jpeg or png files, specifies whether image should be compressed.

Possible values:

true false
quality

For jpeg conversion, specifies the quality of the resultant image.

Quality should be an integer between 1 and 100, where 100 is the best quality

Examples

Original image

the original image before any changes

Image converted to jpg

the source image converted to a jpg

Image converted to jpg with quality set to 20

the original image converted to jpg format with the quality reduced to 20%