Skip to content

convert and optimize image in a single pass#289

Open
cking100 wants to merge 1 commit intoopenzim:mainfrom
cking100:convert-optimize-single-pass
Open

convert and optimize image in a single pass#289
cking100 wants to merge 1 commit intoopenzim:mainfrom
cking100:convert-optimize-single-pass

Conversation

@cking100
Copy link
Copy Markdown

Fixes #284

Changes:

  • Enhanced optimize_xxx functions to accept a convert parameter
  • Modified optimize_image and optimize_gif to accept io.BytesIO as input
  • Added support for bytes in src
  • optimize_xxx now works on single pass

TODO

  • Write test cases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How to convert and optimize an image to webp in one step with default settings?

1 participant