Thumbnails

From SlackWiki
Revision as of 14:46, 20 May 2020 by Dchmelik (talk | contribs)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
#!/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 height
for file in *.jpg; do convert -resize x280 "$file" "t$file"; done
#resize to 280 pixels width
#for file in *.jpg; do convert -resize 280 "$file" "t$file"; done