Problem/Motivation

Resizing of a png resulted in a much larger filesize using the gd2 library.

Proposed resolution

Two things helped reduce the filesize when resizing:
1) Discard transparency
2) Convert true color png image to a 256-color palette image

So I am proposing that we add these options to the imageapi admin form for the gd2 library, and then add this to the close/save method. Patch will be attached in first comment.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

djbobbydrake’s picture

djbobbydrake’s picture

I was able to get this done without the patch by writing a custom action for a custom preset.