cardwright icon indicating copy to clipboard operation
cardwright copied to clipboard

[bug] Clicking card image does not make it large

Open durencort-svg opened this issue 1 month ago • 1 comments

Cardwright version

2.17.14

Operating system

Windows 11

What happened, and what you expected instead

Reference the wiki at https://github.com/Boffo90/cardwright/wiki/Finding-Cards, the relevant portion is...

Click a card's picture to see it large. Click more and they line up side by side, up to three, so you can compare versions of the same art before choosing; a fourth makes the oldest give way. Each has its own Add. The enlarged image is what you would actually get from that source, not a stand-in.

Clicking a card image when choosing a printing seems to have no effect, this was observed when using either Scryfall or MPC Autofill as the source.

What you did, step by step

  1. Type "Sol Ring" into the card name bar.
  2. Click "Add card".
  3. See various Sol Ring printings in the "Choose a version" window.
  4. Click the image of any printing.
  5. No effect.

Log

2026-10-27 23:22:45 INFO    cardwright: ============================================================
2026-10-27 23:22:45 INFO    cardwright: Cardwright 2.17.14 starting
2026-10-27 23:22:45 INFO    cardwright: Python 3.13.14 | Windows-11-10.0.26200-SP0
2026-10-27 23:22:45 INFO    cardwright: Frozen: True | Root: E:\MTG\Cardwright
2026-10-27 23:36:26 INFO    cardwright: ============================================================
2026-10-27 23:36:26 INFO    cardwright: Cardwright 2.17.14 starting
2026-10-27 23:36:26 INFO    cardwright: Python 3.13.14 | Windows-11-10.0.26200-SP0
2026-10-27 23:36:26 INFO    cardwright: Frozen: True | Root: E:\MTG\Cardwright
2026-11-03 20:30:09 INFO    cardwright: ============================================================
2026-11-03 20:30:09 INFO    cardwright: Cardwright 2.17.14 starting
2026-11-03 20:30:09 INFO    cardwright: Python 3.13.14 | Windows-11-10.0.26200-SP0
2026-11-03 20:30:09 INFO    cardwright: Frozen: True | Root: E:\MTG\Cardwright
2026-11-03 22:32:11 ERROR   cardwright: Failed on 'Kappa Cannoneer  [WarpDandy]' (kind=card, model=Auto (detect digital vs scan), lang=en)
Traceback (most recent call last):
  File "gui.py", line 1229, in process
  File "gui.py", line 1294, in _process_item
  File "upscale.py", line 370, in upscale
  File "upscale.py", line 202, in _normalize_input
  File "upscale.py", line 113, in _orient_to_card
  File "PIL\Image.py", line 3711, in open
PIL.UnidentifiedImageError: cannot identify image file 'E:\\MTG\\Cardwright\\_temp\\Kappa Cannoneer  [WarpDandy] 1smcIVNY67.png'
2026-11-03 22:32:41 ERROR   cardwright: Failed on 'Manifold Key (Gabor Szikszai)  [WarpDandy]' (kind=card, model=Auto (detect digital vs scan), lang=en)
Traceback (most recent call last):
  File "gui.py", line 1229, in process
  File "gui.py", line 1294, in _process_item
  File "upscale.py", line 370, in upscale
  File "upscale.py", line 202, in _normalize_input
  File "upscale.py", line 113, in _orient_to_card
  File "PIL\Image.py", line 3711, in open
PIL.UnidentifiedImageError: cannot identify image file 'E:\\MTG\\Cardwright\\_temp\\Manifold Key (Gabor Szikszai)  [WarpDandy] 1ckpLiL5uy.png'
2026-11-03 22:33:04 ERROR   cardwright: Failed on 'No More Lies (Normal) [MKM] {221}  [WarpDandy]' (kind=card, model=Auto (detect digital vs scan), lang=en)
Traceback (most recent call last):
  File "gui.py", line 1229, in process
  File "gui.py", line 1294, in _process_item
  File "upscale.py", line 370, in upscale
  File "upscale.py", line 202, in _normalize_input
  File "upscale.py", line 113, in _orient_to_card
  File "PIL\Image.py", line 3711, in open
PIL.UnidentifiedImageError: cannot identify image file 'E:\\MTG\\Cardwright\\_temp\\No More Lies (Normal) [MKM] {221}  [WarpDandy] 1ybIczoJfv.png'
2026-11-03 22:33:10 ERROR   cardwright: Failed on 'Path to Exile  [WarpDandy]' (kind=card, model=Auto (detect digital vs scan), lang=en)
Traceback (most recent call last):
  File "gui.py", line 1229, in process
  File "gui.py", line 1294, in _process_item
  File "upscale.py", line 370, in upscale
  File "upscale.py", line 202, in _normalize_input
  File "upscale.py", line 113, in _orient_to_card
  File "PIL\Image.py", line 3711, in open
PIL.UnidentifiedImageError: cannot identify image file 'E:\\MTG\\Cardwright\\_temp\\Path to Exile  [WarpDandy] 10nkBaoLEj.png'
2026-11-03 22:33:34 ERROR   cardwright: Failed on 'Ruthless Technomancer  [WarpDandy]' (kind=card, model=Auto (detect digital vs scan), lang=en)
Traceback (most recent call last):
  File "gui.py", line 1229, in process
  File "gui.py", line 1294, in _process_item
  File "upscale.py", line 370, in upscale
  File "upscale.py", line 202, in _normalize_input
  File "upscale.py", line 113, in _orient_to_card
  File "PIL\Image.py", line 3711, in open
PIL.UnidentifiedImageError: cannot identify image file 'E:\\MTG\\Cardwright\\_temp\\Ruthless Technomancer  [WarpDandy] 1dMmXi0hLx.png'
2026-11-03 22:34:48 ERROR   cardwright: Failed on 'Manifold Key (Gabor Szikszai)  [WarpDandy]' (kind=card, model=Auto (detect digital vs scan), lang=en)
Traceback (most recent call last):
  File "gui.py", line 1229, in process
  File "gui.py", line 1294, in _process_item
  File "upscale.py", line 370, in upscale
  File "upscale.py", line 202, in _normalize_input
  File "upscale.py", line 113, in _orient_to_card
  File "PIL\Image.py", line 3711, in open
PIL.UnidentifiedImageError: cannot identify image file 'E:\\MTG\\Cardwright\\_temp\\Manifold Key (Gabor Szikszai)  [WarpDandy] 1ckpLiL5uy.png'
2026-11-03 22:34:48 ERROR   cardwright: Failed on 'Kappa Cannoneer  [WarpDandy]' (kind=card, model=Auto (detect digital vs scan), lang=en)
Traceback (most recent call last):
  File "gui.py", line 1229, in process
  File "gui.py", line 1294, in _process_item
  File "upscale.py", line 370, in upscale
  File "upscale.py", line 202, in _normalize_input
  File "upscale.py", line 113, in _orient_to_card
  File "PIL\Image.py", line 3711, in open
PIL.UnidentifiedImageError: cannot identify image file 'E:\\MTG\\Cardwright\\_temp\\Kappa Cannoneer  [WarpDandy] 1smcIVNY67.png'
2026-11-03 22:34:48 ERROR   cardwright: Failed on 'No More Lies (Normal) [MKM] {221}  [WarpDandy]' (kind=card, model=Auto (detect digital vs scan), lang=en)
Traceback (most recent call last):
  File "gui.py", line 1229, in process
  File "gui.py", line 1294, in _process_item
  File "upscale.py", line 370, in upscale
  File "upscale.py", line 202, in _normalize_input
  File "upscale.py", line 113, in _orient_to_card
  File "PIL\Image.py", line 3711, in open
PIL.UnidentifiedImageError: cannot identify image file 'E:\\MTG\\Cardwright\\_temp\\No More Lies (Normal) [MKM] {221}  [WarpDandy] 1ybIczoJfv.png'
2026-11-03 22:34:49 ERROR   cardwright: Failed on 'Path to Exile  [WarpDandy]' (kind=card, model=Auto (detect digital vs scan), lang=en)
Traceback (most recent call last):
  File "gui.py", line 1229, in process
  File "gui.py", line 1294, in _process_item
  File "upscale.py", line 370, in upscale
  File "upscale.py", line 202, in _normalize_input
  File "upscale.py", line 113, in _orient_to_card
  File "PIL\Image.py", line 3711, in open
PIL.UnidentifiedImageError: cannot identify image file 'E:\\MTG\\Cardwright\\_temp\\Path to Exile  [WarpDandy] 10nkBaoLEj.png'
2026-11-03 22:34:50 ERROR   cardwright: Failed on 'Ruthless Technomancer  [WarpDandy]' (kind=card, model=Auto (detect digital vs scan), lang=en)
Traceback (most recent call last):
  File "gui.py", line 1229, in process
  File "gui.py", line 1294, in _process_item
  File "upscale.py", line 370, in upscale
  File "upscale.py", line 202, in _normalize_input
  File "upscale.py", line 113, in _orient_to_card
  File "PIL\Image.py", line 3711, in open
PIL.UnidentifiedImageError: cannot identify image file 'E:\\MTG\\Cardwright\\_temp\\Ruthless Technomancer  [WarpDandy] 1dMmXi0hLx.png'
2026-11-03 23:03:41 ERROR   cardwright: Failed on 'The Reality Chip (PreM15)  [WarpDandy]' (kind=card, model=Auto (detect digital vs scan), lang=en)
Traceback (most recent call last):
  File "gui.py", line 1229, in process
  File "gui.py", line 1294, in _process_item
  File "upscale.py", line 370, in upscale
  File "upscale.py", line 202, in _normalize_input
  File "upscale.py", line 113, in _orient_to_card
  File "PIL\Image.py", line 3711, in open
PIL.UnidentifiedImageError: cannot identify image file 'E:\\MTG\\Cardwright\\_temp\\The Reality Chip (PreM15)  [WarpDandy] 1YrnGWpxZE.png'
2026-11-04 08:14:07 INFO    cardwright: ============================================================
2026-11-04 08:14:07 INFO    cardwright: Cardwright 2.17.14 starting
2026-11-04 08:14:07 INFO    cardwright: Python 3.13.14 | Windows-11-10.0.26200-SP0
2026-11-04 08:14:07 INFO    cardwright: Frozen: True | Root: E:\MTG\Cardwright
2026-11-04 08:14:08 INFO    cardwright: Swept 2 stale working file(s), freed 0.0 GB

durencort-svg avatar Nov 05 '26 02:11 durencort-svg

Thanks for this, and for including the log. There are two separate things in it, and you found both.

The click-to-enlarge feature was not in any released build. The wiki page you quoted was correct about what the code does, but I pushed the wiki from main before publishing the release, so it described a feature nobody could have had yet. You were following the documentation exactly and the documentation was ahead of the app. That is my mistake, not yours, and the sync tool now refuses to push the wiki while the tree is ahead of the newest published release, so it should not happen again.

It is live now in v2.17.15. Clicking a card's picture in Choose a version opens it large beside the gallery, and clicking more lines them up, up to three.

The log is a real and separate bug, also fixed in v2.17.15. Ten MPC cards failed with cannot identify image file, blaming _orient_to_card, which was only the first thing to open the file and had nothing to do with the cause. What actually happened: Google Drive answers 200 with an HTML page when it is rate-limiting instead of serving the file, that page is far larger than the size floor the downloader was checking, so it was written out as a .png and then failed several steps later under a message that named neither the cause nor the cure. The same cards would work later, which matches your timestamps.

Downloads are now checked where they arrive. A card that comes back as a web page says so, says Drive does this when it is busy, and says to press Upscale all again to retry only the cards that failed. Nothing gets written to disk.

Closing this, but please reopen or file another if the enlarge still does nothing for you on 2.17.15.

Boffo90 avatar Nov 07 '26 23:11 Boffo90