Skip to content

[Feature request] Add Tiny_Plugin::compress() for general usage by devs #21

@mklepaczewski

Description

@mklepaczewski

The plugin covers basic functionality. However, as a developer, I sometimes need to do custom tasks that aren't covered by the plugin (for example, I wrote WP CLI wrapper around the plugin). Compression is currently triggered during various events, but it seems there's no easy way to execute it manually from standalone PHP code. I propose to add Tiny_Plugin::compress(). Ideally, for consistency reasons, all other compression methods should rely on and call it:

  • Tiny_Plugin::compress_on_upload(),
  • Tiny_Plugin::compress_image_from_library(),
  • Tiny_Plugin::compress_image_for_bulk()

I can submit PR if this feature request is accepted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions