Skip to content

Move to Morph 1.23.3 - #161

Merged
SimonCropp merged 2 commits into
mainfrom
morph-1.23.3
Oct 26, 2026
Merged

SimonCropp merged 2 commits into
mainfrom
morph-1.23.3

Conversation

@SimonCropp

Copy link
Copy Markdown
Member

Morph 1.23 added an optional CancellationToken to ConvertToImageData on DocumentConverter, ExcelConverter and PowerPointConverter. That compiles fine against the new version but breaks code already built against the old one: Verify.OpenXML 2.0.0 was built against Morph 1.20, so any project that lifts Morph to 1.23 fails every render with

TypeInitializationException: The type initializer for 'VerifyTests.MorphRenderer' threw an exception.
 ---> MissingMethodException: Method not found: 'IReadOnlyList<Byte[]> Morph.DocumentConverter.ConvertToImageData(Stream, ImageExportOptions)'.

Excelsior hit this when it moved to Morph.Skia 1.23.1 (158 tests).

  • Morph, Morph.Skia and Morph.ImageSharp move to 1.23.3.
  • MorphRenderer.Renderer takes the matching Cancel cancel = default, so the method-group conversions bind again (CS0123 without it). Call sites are unchanged.
  • Morph 1.23 now writes pages with no colour as 8-bit grayscale PNG instead of RGBA. That changed 70 rendered pages in Tests.Skia and Tests.ImageSharp. Each was compared pixel by pixel against its previous snapshot, and all 70 are identical. No text, CSV, info or package snapshot changed.

All 172 tests pass across the four test projects, on two consecutive runs.

Morph 1.23 added a CancellationToken to ConvertToImageData, so Verify.OpenXML 2.0.0
throws MissingMethodException wherever Morph is lifted to 1.23. The Renderer
delegate takes the matching optional parameter.

Morph 1.23 also writes pages with no colour as grayscale PNG instead of RGBA. The
70 re-verified pages are pixel-identical.
@SimonCropp SimonCropp added this to the 2.1.0 milestone Oct 26, 2026
@SimonCropp
SimonCropp merged commit 3326df1 into main Oct 26, 2026
2 checks passed
@SimonCropp
SimonCropp deleted the morph-1.23.3 branch October 26, 2026 04:26
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.

1 participant