-
Notifications
You must be signed in to change notification settings - Fork 385
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
feat: add svg thumbnail support (port #442) #540
Conversation
Co-Authored-By: Tyrannicodin <[email protected]>
# Create an svg renderer, then render to the painter | ||
svg: QSvgRenderer = QSvgRenderer(str(filepath)) | ||
|
||
if svg.isValid(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it would be nice to flip the logic here like:
if not svg.isValid():
raise UnidentifiedImageError
# same code as originally except not indented
something something test :) b1bae1f |
The test here may result in a similar issue experienced here: #543 (comment) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dont forget to squash the commits :)
This PR is a port of #442 which previously targeted thumbnails/Alpha-v9.4 to main (aka v9.5x).
This adds thumbnail/preview support for SVG files.