mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
- added code to resize 4k images in apk build. - added code to resize '4k' cardsets in apk build. - deleted obsolet directory android as anounced earlier.
37 lines
439 B
Bash
Executable file
37 lines
439 B
Bash
Executable file
#!/usr/bin/bash
|
|
|
|
location='.'
|
|
if [ $1 ]
|
|
then
|
|
location=$1
|
|
fi
|
|
|
|
pushd $location
|
|
|
|
dir='save-aspect-4k'
|
|
if [ -d $dir ]
|
|
then
|
|
pushd 'save-aspect-4k'
|
|
for f in *.jpg
|
|
do
|
|
echo $f
|
|
convert $f -resize 1920x1920 -quality 65 temp_$f
|
|
mv -f temp_$f $f
|
|
done
|
|
popd
|
|
fi
|
|
|
|
dir='stretch-4k'
|
|
if [ -d $dir ]
|
|
then
|
|
pushd 'stretch-4k'
|
|
for f in *.jpg
|
|
do
|
|
echo $f
|
|
convert $f -resize 1920x1920 -quality 65 temp_$f
|
|
mv -f temp_$f $f
|
|
done
|
|
popd
|
|
fi
|
|
|
|
popd
|