The attached patch, in quilt format (at least, I think it is--I hand-made it from a git patch against current git) adds detection, with MIME type, of Paint.NET files, based on the "PDN3" magic. There appears to be some binary data after that, which might be matchable if this patch turns out to be too broad, but figuring it out will involve digging through the source.
Sample .pdn files available here: http://www.freewebs.com/cmdsketchpad/glassorb.htm Please let me know if there are any issues with the patch, any false positives or any false negatives, and I'll do my best to address them. Also, if the patch should be in a different format rather than just a bare quilt patch, please let me know that as well. Adam Buchbinder
Author: Adam Buchbinder <adam.buchbin...@gmail.com> Description: Add Paint.NET support. (Closes: #504779) diff -Naurp file.orig/magic/Magdir/games file/magic/Magdir/games --- file.orig/magic/Magdir/images 2009-02-18 09:36:15.000000000 +0100 +++ file/magic/Magdir/images 2009-02-20 10:13:46.000000000 -0500 @@ -605,3 +605,9 @@ # JPEG 2000 Code Stream Bitmap # From Petr Splichal <pspli...@redhat.com> 0 string \xFF\x4F\xFF\x51\x00 JPEG-2000 Code Stream Bitmap data + +# Paint.NET file +# From Adam Buchbinder <adam.buchbin...@gmail.com> +0 string PDN3 Paint.NET image data +!:mime image/x-paintnet +