Wednesday, 21 September 2022

automating basic image manipulation tasks

In Linux:

 

To copy only jpg files and not raws from given time period:

cd sourcedir

cp `find . -type f -name '*.JPG' -newermt '21 sep 2022 01:05:00'` targetdir


To invert colours (negative):

for i in *.JPG ; do convert -negate "$i" conv/"${i%.*}.JPG" ; done