Thumbnails: Difference between revisions

From SlackWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<pre>#!/bin/sh
[[Category:Tips]]
#For every .jpg in a directory, create a thumbnail (smaller) image at 280 pixels high (or comment out, uncomment similar line, for width: )
<pre>
#Resize to 280 pixels height
#!/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
for file in *.jpg; do convert -resize x280 "$file" "t$file"; done
#resize to 280 pixels width
# Resize to 280 pixels width.
#for file in *.jpg; do convert -resize 280 "$file" "t$file"; done</pre>
#for file in *.jpg; do convert -resize 280 "$file" "t$file"; done
</pre>

Latest revision as of 04:58, 27 July 2022

#!/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