Simon Brown Posted March 9, 2008 Posted March 9, 2008 Basically it is useful being able to extend pdn with custom filetypes. But I suggest an option in the FileType api for placement in the file menu. In many situations the filetype appearing in the save dialog box is not apropriet - for example if the author wants to create a new print option with extra functionality, add email support, the ability to save as a custom brush in the apropriet folder or easily setting the image as the desktop background. Quote
Mike Ryan Posted March 9, 2008 Posted March 9, 2008 Yes, a good idea indeed. I have plans for writing a filetype plugin that isnt necessarily a filetype persay. Quote
Rick Brewster Posted March 9, 2008 Posted March 9, 2008 You should not be writing file type plugins that do not save to files. Also, Moved to File Format API / Programming ... Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html
Mike Ryan Posted March 9, 2008 Posted March 9, 2008 I am saving the file, just not to a place expected. Quote
Simon Brown Posted March 9, 2008 Author Posted March 9, 2008 I mean to output images but not to a file. Quote
Rick Brewster Posted March 9, 2008 Posted March 9, 2008 Your FileType is given a Stream which is already opened to a file. If the user specifies "c:\Users\Name\Whatever.jpg" and you don't save anything to the stream you're given, then that file will end up being zero bytes. You'll end up littering the user's hard drive with all these worthless files and make a mess of things. What you're talking about is a blatant misuse of the file type plugin API. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html
Simon Brown Posted March 9, 2008 Author Posted March 9, 2008 I mean more of a seperate API which would be more based on the effects api - exept there would be no rendering back to the canvas and the only object passed would be Document. Quote
Curtis Posted March 9, 2008 Posted March 9, 2008 I mean more of a separate API which would be more based on the effects api - except there would be no rendering back to the canvas and the only object passed would be Document. So your after something like an Export API where you can write an export plugin that gives the you the control to do something with the document, but not necessarily save it? I could see where that would be useful. You cold write plugins like, Export > Set as Desktop Background, or Export > Upload to an image hosting site. Things that don't fall under effects or file types. Quote Plugins
Simon Brown Posted March 9, 2008 Author Posted March 9, 2008 So your after something like an Export API where you can write an export plugin that gives the you the control to do something with the document, but not necessarily save it? I could see where that would be useful. You cold write plugins like, Export > Set as Desktop Background, or Export > Upload to an image hosting site. Things that don't fall under effects or file types. That is exactly what I mean. Quote
Mike Ryan Posted March 9, 2008 Posted March 9, 2008 Export > Upload to an image hosting site That is exactly what I mean as well. Quote
pyrochild Posted March 9, 2008 Posted March 9, 2008 You can do all this through the Effects API, provided the user knows to flatten the image first. Just put it in Effects -> Export or something. Quote ambigram signature by Kemaru [i write plugins and stuff] If you like a post, upvote it!
Simon Brown Posted March 9, 2008 Author Posted March 9, 2008 You can do all this through the Effects API, provided the user knows to flatten the image first.Just put it in Effects -> Export or something. But that just isn't IMHO a versatile enough solution. Quote
pyrochild Posted March 9, 2008 Posted March 9, 2008 It's a helluva lot better than trying to use the FileType API. Quote ambigram signature by Kemaru [i write plugins and stuff] If you like a post, upvote it!
Curtis Posted March 10, 2008 Posted March 10, 2008 That would be the best temporary solution, a lot better than using a file type plugin, the only downside though, is not being able to access the whole document. Another one I was thinking was Export > Save each layer as, that wouldn't be possible with the effects system, but would be a great feature to have. Quote Plugins
Simon Brown Posted March 10, 2008 Author Posted March 10, 2008 One thing I generally wish is if I was given the filename and could perform the save operation myself. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.