how would one build an algorithm in visual basic to find an image below a certain width and height and delete it (visual basic)

visual basic

basically i want it to go through a folder and delete any files smaller than 59x59 in image size i know you would have to put the file in bin but nothing else if anyone cna help please do

Posted Apr 30, 2020, 11:41 AM UTC

10
plastikmissile•

Basically you read the names of all the files in a folder that have a certain extension. Iterate through those names and loading the image. Use some kind of graphics library to read the size of the image. If it's too small delete the file. It's not complicated at all. You just need to learn how to access the file system and a basic image library.

1
Sam_le_potatoOP•

I did that manually in the end

1