Additional settings for the jpegoptim binary

Created on 7 June 2016, over 8 years ago
Updated 26 November 2024, about 2 months ago

In the current situation the jpegoptim command is executed with "strip all" as static value. We wanted to have more control over the image quality and performance, so we extended the settings of the binary and made them configurable.

We made the following settings configurable:

  • Maximum quality
  • Threshold
  • Preserve timestamp
  • Preserve permissions
  • Strip comment markers
  • Strip exif markers
  • Strip IPTC/Photoshop markers
  • Strip exif markers
  • Strip ICC profile markers
  • Strip XMP markers
Feature request
Status

Needs review

Version

1.0

Component

JpegOptim Processor

Created by

🇳🇱Netherlands Mirnaxvb

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇪🇸Spain manuel garcia

    Hello all, we were looking patch such functionality and found this issue, so collaborating.

    Patch still applies cleanly and looks to work fine. I noticed that the schema file would need to be updated, so doing so in this patch.

  • 🇪🇸Spain manuel garcia

    A bit of refactoring and renaming things:

    1. Removed the strip- prefix from the strip options as its unnecessary (already in the strip option array).
    2. Added an all option so this setting is explicit. This allowed for simplifying how we cook the argument later. inside applyToImage().
    3. Adjusted the schema file accordingly.

  • 🇪🇸Spain manuel garcia

    Fixing a mistake, forgot to account for when we build the arguments for the command since I changed the form keys.

Production build 0.71.5 2024