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;

Comments

  1. IoT SIM obligations have to cover larger transmission capacities, requiring an unusual offer and billing model.

    ReplyDelete

Post a Comment

Popular posts from this blog

Windows phone Wifi connectivity problem.

Create Excel file using Java: Apache POI - PART - 3: Bar Chart