Thumbnails

From SlackWiki
Revision as of 14:45, 20 May 2020 by Dchmelik (talk | contribs) (Created page with "#!/bin/sh #For every .jpg in a directory, create a thumbnail (smaller) image at 280 pixels high (or comment out, uncomment similar line, for width: ) #Resize to 280 pixels hei...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
  1. !/bin/sh
  2. For every .jpg in a directory, create a thumbnail (smaller) image at 280 pixels high (or comment out, uncomment similar line, for width: )
  3. Resize to 280 pixels height

for file in *.jpg; do convert -resize x280 "$file" "t$file"; done

  1. resize to 280 pixels width
  2. for file in *.jpg; do convert -resize 280 "$file" "t$file"; done