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
name=$(basename "$f" .tif)
#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"
rm $f
done

View File

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