Open JacopoWolf opened 1 year ago
might be useful for implementation purposes
[load folder] < {[load single] -> [calculation]} > [drawing] < [save image]
(producer <> consumer)
https://github.com/crossbeam-rs/crossbeam/tree/master/crossbeam-channel
This will also allow to speed things up by a LOT, by caching resized pictures only once and saving in bulk
possible implementations could allow input images to be in an input folder (this will completely ignore subfolers or ordering, since it's not important at all when working with a folder of images in the first place) and written in an output folder
eg
input/img1.png
->output/img2.png
or eveninput/output/img2.png
, since input images would not be searched recursively