Skip to content
Bernardo Heynemann edited this page Sep 3, 2013 · 2 revisions

Usage: max_bytes(number-of-bytes)

Description

This filter automatically degrades the quality of the image until the image is under the specified amount of bytes.

Arguments

number-of-bytes - The maximum number of bytes for the given image.

Example

http://thumbor-server/filters:max_bytes(40000)/some/image.jpg

Picture before the max_bytes filterPicture before the max_bytes filter

Picture after 10000 max_bytesPicture after 10000 max_bytes

Clone this wiki locally