instruction
parent
a414640f0b
commit
195c40a810
|
@ -1,6 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#apt install imagemagick
|
#apt install imagemagick
|
||||||
#brew install imagemagick
|
#brew install imagemagick
|
||||||
|
#chmod +x image-resize-if-needed.sh
|
||||||
|
#bash image-resize-if-needed.sh *.jpg
|
||||||
for img in "$@"; do
|
for img in "$@"; do
|
||||||
width=$(identify -format "%w" "$img")
|
width=$(identify -format "%w" "$img")
|
||||||
if (( width > 800 )); then
|
if (( width > 800 )); then
|
||||||
|
|
Loading…
Reference in New Issue