LastSpongeStanding Posted April 18, 2019 Share Posted April 18, 2019 Trying to wrap my head around describing what I want to do because frankly, I'm not sure the ways I'm imagining it are very feasible. The situation is, I have X number of image files that is a high number where manually editing them all would take an obnoxiously long time. What I want to accomplish is applying an effect to them (the same effect with the same parameters for each one) and then simply save the file with that effect applied. I tried to do some searching on how to call operations for one program from another, figuring maybe I could have a process that opens each file in a given folder in Paint.NET, applies the effect, then saves it and closes it. But I wasn't having much luck finding info on that and it seems like from what I could find, it's not very advisable from a security standpoint anyway (and this is really not a situation where it's worth creating security holes just to do what I want to accomplish - this is a side project for fun). So then I was thinking, perhaps there's a way to write a plugin for Paint.NET that could do an operation like that and have it added to the registry, such that you can select multiple files in explorer, right-click, and choose the operation (I don't love this idea for the reason of how easily it could mess up files unintentionally by clicking the wrong thing in the dropdown on files that aren't related to the project, but I suppose it could be added and then removed when I'm finished). But anyway, from what I've read in the "What is and isn't possible when writing plugins" thread, this probably isn't doable with plugins, as it looks like they can't do things like opening or saving files. So that's where I'm at with it at the moment. Hoping somebody with more experience can point me in a direction of what might be feasible to try, or kindly explain to me how crazy and not-very-doable this idea fundamentally is if that is the case. I do have some experience programming, so I'm not totally in the dark on the concept of doing operations on lots of files at once. It's just, doing the operations that Paint.NET does on image-based files, there's a lot of unknowns, ya know. Closest I could think of to an idea for doing it without any reliance on Paint.NET would be to somehow figure out how the particular effect I want to do works and then apply it on given files in a folder by editing their binary values or something, but that may be even more crazy than the other ideas, as I'm not sure you can even evaluate the image information properly to apply an effect without first loading it into a program that has interpreted its data as an image, like Paint.NET. Quote Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted April 18, 2019 Share Posted April 18, 2019 Batch processing with PDN isn't supported. There have been a few attempts. Your best bet is to have a look at IrfanView. 1 Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
HyReZ Posted April 18, 2019 Share Posted April 18, 2019 (edited) There are some effects and filter that can be added to images in IrfanView, but I cannot find any information about these effects and filters being applied in batch/bulk conversion. I heard that batch effects processing can be done with G'MIC but I have not come across the documentation. Edited April 19, 2019 by HyReZ to add more nfo 1 Quote Link to comment Share on other sites More sharing options...
LastSpongeStanding Posted April 20, 2019 Author Share Posted April 20, 2019 Thanks guys, I'll do some peeking around about batch effects processing and see what I can find. Quote Link to comment Share on other sites More sharing options...
Reptillian Posted April 20, 2019 Share Posted April 20, 2019 On 4/18/2019 at 7:14 AM, HyReZ said: There are some effects and filter that can be added to images in IrfanView, but I cannot find any information about these effects and filters being applied in batch/bulk conversion. I heard that batch effects processing can be done with G'MIC but I have not come across the documentation. In G'MIC, go to code[local] or code[global], and type in input_glob "file_location_without_spaces_anywhere" _effect o "file_location_without_spaces_in_filename_or_file_location" _effect is the command or filter command name you want to use You need to learn about G'MIC scripting to do this though. 1 Quote G'MIC Filter Developer I am away from this forum for undetermined amount of time: If you really need anything related to my PDN plugin or my G'MIC filter within G'MIC plugin, then you can contact me via Paint.NET discord, and mention me. Link to comment Share on other sites More sharing options...
HyReZ Posted April 20, 2019 Share Posted April 20, 2019 Thanks! So there may be a way to run a similar batch/bulk image + filter processing from a command line within IrfanView!? Quote Link to comment Share on other sites More sharing options...
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.