Skip to content

Conversation

@rohnsha0
Copy link
Member

fixes #67

@rohnsha0 rohnsha0 requested a review from davisagli June 16, 2025 01:35
@mister-roboto
Copy link

@rohnsha0 thanks for creating this Pull Request and helping to improve Plone!

TL;DR: Finish pushing changes, pass all other checks, then paste a comment:

@jenkins-plone-org please run jobs

To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass, but it takes 30-60 min. Other CI checks are usually much faster and the Plone Jenkins resources are limited, so when done pushing changes and all other checks pass either start all Jenkins PR jobs yourself, or simply add the comment above in this PR to start all the jobs automatically.

Happy hacking!

return image

# Try using OpenCV for better performance if it's available
if HAS_OPENCV:
Copy link
Member

Choose a reason for hiding this comment

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

Why does this duplicate the code from _scale_with_opencv instead of calling it?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, Sorry. Thanks @davisagli for pointing out... maybe I was half asleep...

Copy link
Member Author

Choose a reason for hiding this comment

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

however I have fixed it and also optimized the usage of it... in 93a7e33

@rohnsha0 rohnsha0 requested a review from davisagli June 17, 2025 04:38
@rohnsha0 rohnsha0 changed the title Add OpenCV support for image scaling and update setup requirements Add OpenCV support for image scaling Jun 17, 2025
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.

Support other backend libs for performance?

4 participants