Skip to content

Instantly share code, notes, and snippets.

@mnyrop
Last active November 5, 2020 19:29
Show Gist options
  • Save mnyrop/24fca072ff368bef373ddeb9392e256a to your computer and use it in GitHub Desktop.
Save mnyrop/24fca072ff368bef373ddeb9392e256a to your computer and use it in GitHub Desktop.
convert jpeg to tiff, no resizing
TIFF_DIR="tiffs"
if [ ! -d "${TIFF_DIR}" ];
then
mkdir ${TIFF_DIR}
fi
for JPG in *.jpg; do
TIFF="$(basename ${JPG} .jpg).tiff"
convert -compress none ${JPG} ${TIFF}
mv ${TIFF} ${TIFF_DIR}
echo "Converted ${TIFF}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment