Sign in to follow this  

FileType plugins

Recommended Posts

There are two issues


1) If FileType plugin A supports just loading of an extension and plugin B just saving of the same extension then it may not work.

    One example is

       A: ImPDF which supports saving of PDFs

       B: PostscriptImport which supports loading of PDFs.

       Loading throws the error:

           System.NotSupportedException: Loading not supported for this FileType

       Even if you are setting the filter in the OpenFileSelector to B you will get the exception.

     I said 'may not work' because renaming 'PostscriptImport.dll' to 'APostscriptImport.dll' allows you to load PDFs.

     So the order of filenames may be the reason for this behaviour.


2) It would be nice to allow more than one plugin to support the same extension for loading/saving

    means Paint.NET should respect the filter index of the Open/SaveFileSelector.

    For sure there is the question what to do if the user opens a file with one of the other methods (like drag&drop, open recent, or open with *.* wildcard). I would ask him which one to use.

In the moment users are fighting i.e. with these .bmpx or .agif/.apng extensions just to work around the problem.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this