applying same function on different data sets (video frames)

Good day guys,

I am trying to apply the same function to different data frames, I have a folder with approximately
900 frames from a video (jpegs) and want to apply the same function to all of them. The function
changes the brightness etc of the frames, which I then want to save as jpegs to proceed with my work.

Help would be so much appreciated as I cant find a solution.

Kind regards,

Define the function, then read in and apply using one of the purrr functions.

thanks but I don't think this would apply to what I'm trying to do hear

Can you provide a reproducible example then?