Posts

Showing posts from October, 2021

Loop through files in current directory and compress them using image magick

 @ECHO OFF FOR %%i IN (*) DO ( echo "Executing:: magick %%i -sampling-factor 4:2:0 -strip -quality 85 -interlace JPEG -colorspace RGB %%~nf_converted.jpg" magick %%i -sampling-factor 4:2:0 -strip -quality 65 -interlace JPEG -colorspace RGB %%~ni_converted.jpg ) pause;