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

fix: ignore external files when generating thumbnails #75

Merged
merged 2 commits into from
Oct 13, 2021
Merged

fix: ignore external files when generating thumbnails #75

merged 2 commits into from
Oct 13, 2021

Conversation

Abadulrehman
Copy link
Collaborator

This PR serves as a fix for the issue where thumbnail generation via Renovation Image Settings would fail if external URLs were used when attaching Images to docs.

The current fix is to detect and skip thumbnail generation on files with external URLs.

renovation_core/utils/images.py Outdated Show resolved Hide resolved
@fahimalizain fahimalizain self-requested a review October 11, 2021 12:25
Copy link
Member

@fahimalizain fahimalizain left a comment

Choose a reason for hiding this comment

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

👍🏼 Looks good for now.
Maybe in the future we could download the web-img and make thumbnails for it 😄
For watermark, download this web-img and store as local-img first- then apply wm 😄 In Sha Allah when such requirement comes 👍🏼

@assemmarwan assemmarwan merged commit d22a60b into leam-tech:master Oct 13, 2021
@Abadulrehman Abadulrehman deleted the thumbnail_fix_external_files branch October 13, 2021 08:49
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