Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameter 'quality' is not passed to pillow if WEBP format is used #612

Closed
wants to merge 2 commits into from

Conversation

mireq
Copy link
Contributor

@mireq mireq commented Jan 1, 2023

After commit 7b9719e, parameter 'quality' is not passed to pillow for any format except of 'JPEG'.

@jrief
Copy link
Collaborator

jrief commented Jan 1, 2023

wouldn't it be better to rewrite line 53 to

    if format in ['JPEG', 'WEBP']:
        …

@mireq
Copy link
Contributor Author

mireq commented Jan 1, 2023

JPEG branch has some specific JPEG handling code, for example conversion from RGBA to RGB because jpeg don't support alpha, but webp can store alpha.

This will pass quantity to other formats like WEBP
@mireq
Copy link
Contributor Author

mireq commented Jan 5, 2023

My updated pull request removes quantity option only for TIFF format. I think, this is best solution for now.

@jrief
Copy link
Collaborator

jrief commented Jan 9, 2023

Please read my follow-up comment on this.

GitHub changed something in their action scripts, which causes the unit tests to fail.

@jrief
Copy link
Collaborator

jrief commented Jan 9, 2023

Can you please retry with version 2.8.5. This should fix the regression introduced in 2.8.4.

@mireq
Copy link
Contributor Author

mireq commented Jan 9, 2023

It's OK now

@mireq mireq closed this Jan 9, 2023
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.

None yet

2 participants