For people that have a massive directory of images (ie 30,000+) and want to quickly delete or remove any images that aren't of a certain orientation type (aka landscape vs portait) with a crap pc
For people that have a massive directory of images (ie 30,000+) and want to quickly delete or remove any images that aren't of a certain orientation type (aka landscape vs portait) with a crap pc
-Make sure all images are in a singular format (such as all jpg or png). Free software I recommend is Bulk Image Converter from sourceforge. You could also just search ".gif" and delete all results. -Number all images numerically (examples: 1.jpg to 50000.jpg) which can be done using the free software Bulk Rename Utility -Pick the correct script for use, they are named accordingly. -Change the number in the script equal to the first image number (ie put 1 for 1.jpg) -Change the number after "-le" to the last image number
- cd to the location of choice,
- open nano
- input script
- save
Advanced users may notice that you could achieve this without numbering all images and simply using the "for i in *.jpg;" command, but that loads all filenames into a cache. If you have 80,000 images in a single directory, it can cause freezing. Using the numbering method forces the PC to do one line at a time.