Updates fish resize_images command
This commit is contained in:
parent
39e2b359ae
commit
226668ca74
1 changed files with 0 additions and 4 deletions
|
|
@ -23,10 +23,6 @@
|
||||||
fish_greeting = "fortune -a";
|
fish_greeting = "fortune -a";
|
||||||
ng = "nvim -c \"Neogit\"";
|
ng = "nvim -c \"Neogit\"";
|
||||||
resize_images = ''
|
resize_images = ''
|
||||||
if not command -q convert
|
|
||||||
echo "Error: ImageMagick is not installed. Please install it first."
|
|
||||||
return 1
|
|
||||||
|
|
||||||
for img in (find . -type f -name "*.JPG")
|
for img in (find . -type f -name "*.JPG")
|
||||||
set original_size (stat -f %z "$img")
|
set original_size (stat -f %z "$img")
|
||||||
convert "$img" -resize 40% "$img"
|
convert "$img" -resize 40% "$img"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue