Skip to content

Instantly share code, notes, and snippets.

View w7shdev's full-sized avatar
💭
:q

Muhannad w7shdev

💭
:q
View GitHub Profile
@w7shdev
w7shdev / compress.sh
Last active November 21, 2021 18:13
Compress bulk images
#!/bin/bash
# You need to install pngquant
# On mac os `brew install pngquant`
# copy all directories 15-20
# rename the copied directories with suffix i
# ex. i15 , i16 , i17 , i18 ,i19, i20
# This loop will do on only 1 level of nested directories
PH_INPUT_DIRS=`ls i15`
PH_OUTPUT_DIR="15"