Skip to content

Allow to optimize an image within a buffer rather than a file #49

@gforcada

Description

@gforcada

Is your feature request related to a problem? Please describe.

I would like to include optimize-images into a web app built in Plone CMS, and the way the image storage works it does not allow me to get the file path, rather we can get the binary data and store it back. So optimize_images.api.optimize_single_image does not really work in my use case.

Describe the solution you'd like

A new variant of optimize_single_image that accepts a buffer.

Describe alternatives you've considered

Additional context

Want to submit a pull request?

I really don't have much time as of late sadly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions