image

Batch Sips conversion

[<Back>] [<Edit>]

Batch Sips conversion

#!/bin/sh

for file in `find $1 -name "*.$2"`
do
fileName=$( eval basename $file | sed 's/.$2//g' )
echo $file
echo $fileName
sips -i $file -s format jpeg --resampleHeightWidthMax 4000 --out $fileName.jpg
done




By: Ted Simbajon





 
Instagram Stats
pinoy
my Kung Fu