Convert tif to png. Saves a ton of disc space and is lossless.

This commit is contained in:
litter 2020-03-03 18:06:28 -05:00
parent 154d526fa6
commit 35ca704245
2 changed files with 4 additions and 3 deletions

View File

@ -17,7 +17,7 @@ for f in $CALIBRATION_FILES
do do
name=$(basename "$f" .tif) name=$(basename "$f" .tif)
#echo $name #echo $name
echo "Converting $f -> ../filmless_calibration/${name}.png..." echo "Converting $f -> ../filmless_calibration/${name}.png @ ${DPI}dpi..."
convert $f -units PixelsPerInch -density $DPI "../filmless_calibration/${name}.png" convert $f -units PixelsPerInch -density $DPI "../filmless_calibration/${name}.png"
rm $f rm $f
done done

View File

@ -14,6 +14,7 @@ echo "Changing exported page files to ${DPI}dpi..."
for f in $PAGE_FILES for f in $PAGE_FILES
do do
echo "Converting ${f} to ${DPI}dpi..." name=$(basename "$f" .tif)
mogrify $f -units PixelsPerInch -density $DPI echo "Converting ${f} to ~/Desktop/${name}.png @ ${DPI}dpi..."
convert $f -units PixelsPerInch -density $DPI "~/Desktop/${name}.png"
done done