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

Wait before we actually need to process the image for checking if Pillow can handle it. #72

Merged

Conversation

patrickfournier
Copy link
Collaborator

This avoids loading the image needlessly.

@patrickfournier patrickfournier force-pushed the pillow-lazy-check branch 3 times, most recently from 41a5152 to 90c3fc1 Compare December 31, 2022 20:47
Copy link
Member

@minchinweb minchinweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@patrickfournier thank you, as always, for this. I think it would work (functionally) as is, but I've added some note that I think would improve it.

minchinweb added a commit that referenced this pull request Mar 7, 2024
…recommendations

Add Release.md
Closes #72

# Conflicts:
#	pelican/plugins/image_process/image_process.py
@justinmayer
Copy link
Contributor

@patrickfournier: What do you think about the suggestions @minchinweb made here? It would be great to get your improvements merged 😊

…low can handle it.

This avoids loading the image needlessly.
- Put filename in quotes.
- Re-raise exception instead of return None.
- Use f-string instead of format.
@patrickfournier
Copy link
Collaborator Author

@justinmayer Thanks for reminding me about this. I just pushed changes to add @minchinweb suggestions.

@justinmayer
Copy link
Contributor

@patrickfournier: Many thanks for the follow-up changes based on @minchinweb's suggestions. Would be so kind as to resolve the merge conflict here so we can merge this pull request?

# Conflicts:
#	pelican/plugins/image_process/test_image_process.py
@patrickfournier patrickfournier merged commit 3a90b9e into pelican-plugins:main Mar 11, 2025
7 checks passed
@patrickfournier
Copy link
Collaborator Author

Done!

@minchinweb
Copy link
Member

Thank you both for making this happen!

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.

3 participants