Grilled Cheese

ExploreLog inSign up

Gérald Barré

@meziantou.net

97 Following256 Followers

Microsoft MVP, Software engineer, blogger
https://www.meziantou.net/

PostsRepliesMedia
@meziantou.netDec 5, 2026, 2:30 PM

Generating QR codes and barcodes in .NET #NuGet #dotnet https://www.meziantou.net/generating-qr-codes-and-barcodes-in-dotnet.htm?utm_medium=social&utm_source=bluesky

meziantou.netGenerating QR codes and barcodes in .NET - Gérald BarréLearn how to generate QR codes and barcodes in .NET using Meziantou.Framework.Barcodes, with SVG and console renderers, and how to render them as PNG or other images, or draw them on existing images, with Meziantou.Framework.Imaging.Barcodes.
@meziantou.netDec 4, 2026, 2:31 PM

Rotating, skewing, and filtering images #NuGet #dotnet https://www.meziantou.net/rotating-skewing-and-filtering-images.htm?utm_medium=social&utm_source=bluesky

meziantou.netRotating, skewing, and filtering images - Gérald BarréRotate, skew, and straighten images, apply convolution matrices, blur, sharpen, detect edges, change colors, clean up scans, and write your own filters in .NET with Meziantou.Framework.Imaging.
@meziantou.netDec 3, 2026, 9:37 PM

It started in 2023 as inline snapshots, which Verify didn't support. This year, I experimented with making it agent-friendly via good defaults and actionable errors, then wanted the same for file-based snapshots. Also, Verify has the OSMF, and I find my serializer more readable.

@meziantou.netDec 3, 2026, 2:54 PM

A few practices help mitigate those risks: - Use a memory-safe language like C#/.NET - Leverage public test corpora - Invest heavily in fuzz testing No guarantee of bug-free code, but these practices significantly reduce risks

@meziantou.netDec 3, 2026, 2:37 PM

Drawing shapes and text on images #NuGet #dotnet #localization https://www.meziantou.net/exploring-meziantou-framework-drawing-shapes-and-text-on-images.htm?utm_medium=social&utm_source=bluesky

meziantou.netDrawing shapes and text on images - Gérald BarréDraw shapes, paths, gradients, and text in any script on images with Meziantou.Framework.Imaging and Meziantou.Framework.Fonts, and convert colors with ICC profiles.
@meziantou.netDec 2, 2026, 7:55 PM

Here's an example where an XPath query and the generic analyzer solved an issue github.com/meziantou/Me...

github.comAdd analyzer to encourage explicit Arrange / Act / Assert sections in test methods · Issue #1827 · meziantou/Meziantou.AnalyzerIs your feature request related to a problem? Please describe. Many teams structure unit tests using the Arrange / Act / Assert (AAA) pattern, but the structure is often implicit. This makes tests ...
@meziantou.netDec 2, 2026, 7:49 PM

Having a simple text-based syntax to query and filter arbitrary hierarchical data can be quite useful. For example, I built a generic Roslyn analyzer that uses XPath to query syntax trees: www.meziantou.net/querying-ros....

meziantou.netQuerying Roslyn syntax trees with XPath - Gérald BarréUse XPath 1.0 queries to search C# syntax trees, matching on the syntax, on the semantic model, or on the operation tree, and ban language constructs in a project without writing a Roslyn analyzer.
@meziantou.netDec 2, 2026, 7:46 PM

For json path, my implementation supports custom objects, not only json objects: www.meziantou.net/adding-jsonp.... The design is similar to the .NET XPath support.

meziantou.netAdding JsonPath support to custom object models in .NET - Gérald BarréLearn how to evaluate RFC 9535 JsonPath expressions on your own .NET classes by implementing JsonPathNavigator for custom object models.
@meziantou.netDec 2, 2026, 2:37 PM

Reading, converting, and resizing images #NuGet #dotnet https://www.meziantou.net/exploring-meziantou-framework-reading-converting-and-resizing-images.htm?utm_medium=social&utm_source=bluesky

meziantou.netReading, converting, and resizing images - Gérald BarréLoad, convert, resize, and clean up PNG, JPEG, WebP, GIF, AVIF, HEIC, and TIFF images in .NET with Meziantou.Framework.Imaging, a fully managed library, and process large images with bounded memory.
@meziantou.netDec 2, 2026, 4:22 AM

Becoming a core maintainer of an existing project is more complicated than it sounds. You inherit its constraints, technical decisions, and legacy. You also need to collaborate with other contributors and reach agreement on changes, which can slow things down or limit what you can do.

@meziantou.netDec 1, 2026, 2:33 PM

Image processing in .NET without native dependencies #NuGet #dotnet #performance https://www.meziantou.net/exploring-meziantou-framework-image-processing-in-dotnet-without-native-dependencies.htm?utm_medium=social&utm_source=bluesky

meziantou.netImage processing in .NET without native dependencies - Gérald BarréMeziantou.Framework.Imaging reads and writes more than 20 image formats, including AVIF, HEIC, and JPEG XL, processes and draws images, and renders text in any script, with code written entirely in C#.
@meziantou.netDec 1, 2026, 12:46 PM

Meziantou.Framework.WebPlatform coverage is available in the documentation (generated from the tests): framework.meziantou.net/webplatform/...

Fuzz testing has even uncovered an issue in the HTML specification: github.com/whatwg/html/...

That's why I'm confident in the implementation

framework.meziantou.netWPT coverageThe pass rate of the web-platform-tests, the conformance test suite of the browsers, per section.
@meziantou.netDec 1, 2026, 12:45 PM

I also submitted issues and PRs to AngleSharp and got a great experience with the maintainers. One concern I have with AngleSharp is that it only runs a subset of the Web Platform Tests (web-platform-tests.org), making it difficult to assess how compliant it actually is.

web-platform-tests.orgweb-platform-tests documentation — web-platform-tests documentation
@meziantou.netDec 1, 2026, 10:28 AM

That part of the readme is 8 years old! Definitely need to update it.

@meziantou.netDec 1, 2026, 10:16 AM

I've contributed to AngleSharp. The HTML implementation is good. The CSS implementation, however, has much more significant gaps. After submitting a few PRs, I came to the conclusion that implementing it myself, with the right testing strategy based on WPT tests, would probably be easier.

@meziantou.netDec 1, 2026, 10:15 AM

> Examples of things you had to work around* Markdig is an awesome library, but it doesn't provide round-trip feature when extensions are involved. I initially tried extending it, but ran into many issues. I decided to rewrite it using a completely different parser architecture to support my needs.

@meziantou.netDec 1, 2026, 10:12 AM

> **Couldn't these goals be achieved by contributing to existing projects?**

I do contribute to multiple open-source projects. For example, here's some of my work on xUnit:

- xunit.net/releases/ana...
- github.com/xunit/xunit/...
- github.com/xunit/xunit....

xunit.netAnalyzers 2.2.0 | xUnit.net
@meziantou.netDec 1, 2026, 10:12 AM

Updating my own packages across projects is actually easier. Most updates are automatically merged by Renovate. And if I introduce a breaking change, there's usually a good reason for it.

@meziantou.netDec 1, 2026, 10:12 AM

>u has a high cadence. isnt the update overhead high? Updating external packages always comes with some risk: breaking changes, license changes (NuGet should be better for that), behavioral changes, and, more recently, potential security issues. So, you need some manual validations.

@meziantou.netDec 1, 2026, 10:11 AM

> License Multiple libraries have changed their licenses recently. As a user, you basically have two options: accept the new terms and continue using the library, or find an alternative. In my case, especially for relatively simple libraries (in the AI era), I increasingly choose to reimplement them

Older posts
Terms of UsePrivacy PolicyCommunity StandardsHelpGet the app

Grilled Cheese is a product of Village Compute

Version devBuilt at: 2026-12-03 22:42:33 EST