/image/optimize robot optimization method

Archived from the Transloadit support forum. Originally posted on June 29, 2014; details may be outdated, see our docs for current behavior. Original thread

Hi,

I was looking at the /image/optimize robot, and hoping to use it to shrink the file size of some of the images that we upload. However, it doesn’t appear to be optimizing some of the images that I’ve tested it with very well. For instance, the 198kb image that I tested it with (attached), was only reduced by 1kb after optimization! When I tested optimization with other utilities (kraken.io service, as well as the pngquant command-line utility), file sizes were reduced almost in half, without any noticeable reduction in quality.

Can you let me know which image optimization algorithm / tool you’re currently using, and if there’s anything on my end that I’m doing incorrectly / could be doing differently.

Thanks!
- Bryan

Hi Bryan,

Without having gone in depth to debug your issue yet, have you turned on the strip parameter? We don’t turn that on by default (even though it saves a lot of data) as we don’t consider it good internet citizenship to strip media of copyright information by default.

As tools under the hood we currently use both jpegtran and optipng.

Let me know if this helps at all or if we need to take a closer look.

Kind regards,
Kevin

This discussion has been inactive for 30 days and has been marked as resolved automatically.
Feel free to reply to this ticket to re-open it and we will continue the investigation.

Kind regards,
Tim

Co-Founder Transloadit