JacopoWolf / quadtree-over-media-rs

draw quads over images
Apache License 2.0
3 stars 0 forks source link

Read files from a folder, and output to one #20

Open JacopoWolf opened 1 year ago

JacopoWolf commented 1 year ago

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 even input/output/img2.png, since input images would not be searched recursively

JacopoWolf commented 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