Skip to content

fix: retry Magick decoding without the extension hint - #2446

Open
CNDY1390 wants to merge 1 commit into
d2phap:developfrom
CNDY1390:fix/reuse-detected-magick-format
Open

fix: retry Magick decoding without the extension hint#2446
CNDY1390 wants to merge 1 commit into
d2phap:developfrom
CNDY1390:fix/reuse-detected-magick-format

Conversation

@CNDY1390

@CNDY1390 CNDY1390 commented Sep 4, 2026

Copy link
Copy Markdown

🟒 Summary

Addresses #2403.

Valid PNG and multi-frame GIF files named .tif can pass metadata probing but fail during decoding because Magick.NET's filename-based ReadAsync supplies a TIFF format hint.

This keeps the normal read first. On an eligible decoding error, with no explicit format override, it retries once through a Stream without that hint. The change covers single-image, multi-frame and QuickDecode reads; saving uses the same decode path.

Btw, although this issue was opened in v9 era, it is still reproducible in v10(10.0.6.906).

Validation

I manually tested the artifact from GH Actions run.

🟒 Contributor License Agreement (CLA)

By submitting this pull request, I confirm that:

@CNDY1390
CNDY1390 marked this pull request as ready for review September 4, 2026 21:47
@CNDY1390
CNDY1390 marked this pull request as draft September 4, 2026 22:05
@CNDY1390
CNDY1390 force-pushed the fix/reuse-detected-magick-format branch from 3324a3b to 04dcbb6 Compare September 5, 2026 13:02
@CNDY1390
CNDY1390 marked this pull request as ready for review September 5, 2026 14:42
@CNDY1390 CNDY1390 changed the title fix: reuse detected Magick format fix: retry Magick decoding without the extension hint Sep 5, 2026
@d2phap d2phap added this to the v10.1 milestone Sep 6, 2026
@CNDY1390
CNDY1390 force-pushed the fix/reuse-detected-magick-format branch 2 times, most recently from bba9fca to b05f7b3 Compare September 6, 2026 09:08
@CNDY1390
CNDY1390 force-pushed the fix/reuse-detected-magick-format branch from b05f7b3 to c5aad18 Compare September 6, 2026 17:02
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