Jump to content

FileType plugins


midora

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.

midoras signature.gif

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...