Skip to content

PDF Generation Issue:#8

Merged
Diphendara merged 1 commit into
Diphendara:mainfrom
fmolinagomez:main
Jun 24, 2026
Merged

PDF Generation Issue:#8
Diphendara merged 1 commit into
Diphendara:mainfrom
fmolinagomez:main

Conversation

@fmolinagomez

Copy link
Copy Markdown
Contributor

Scryfall images sometimes have rounded corners, which created strange white artifacts when building the PDF a new function based on luminance has been created to avoid this effect and remove the rounded corners before generating the pdf and apply the cropping

modified files:
src/cropper.py
test/test_cropper.py

test deck: https://moxfield.com/decks/3lvo2muCskuvIvlrv_0Y0Q

Captura de pantalla 2026-06-23 a las 8 20 32 Captura de pantalla 2026-06-23 a las 8 22 10

Scryfall images sometimes have rounded corners, which created strange white artifacts when building the PDF a new function based on luminance has been created to avoid this effect and remove the rounded corners before generating the pdf and apply the cropping

modified files:
src/cropper.py
test/test_cropper.py

test deck: https://moxfield.com/decks/3lvo2muCskuvIvlrv_0Y0Q
@Diphendara Diphendara merged commit 6219625 into Diphendara:main Jun 24, 2026
4 checks passed
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.

2 participants