Sign in to follow this  
LastSpongeStanding

Applying the same effect to multiple files in bulk?

Recommended Posts

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.

Share this post


Link to post
Share on other sites

Batch processing with PDN isn't supported. There have been a few attempts. Your best bet is to have a look at IrfanView.

  • Like 1

Share this post


Link to post
Share on other sites

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 by HyReZ
to add more nfo
  • Like 1

Share this post


Link to post
Share on other sites
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.

  • Like 1

Share this post


Link to post
Share on other sites

Thanks!
So there may be a way to run a similar batch/bulk image + filter processing from a command line within IrfanView!?

Share this post


Link to post
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.

Sign in to follow this