Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

Linux resize image

convert -resize 50% myfigure.png myfigure.jpg
Comment

resize image linux command line

# first install imagemagick
#check image size
identify -format "%wx%h" image.jpg

# single image 
convert image.jpg -resize 600x400> image.jpg
convert  -resize 20% source.png dest.jpg

# batch resize by percentage
for i in $( ls *.jpg); do convert -resize 50% $i re_$i; done

# batch resize and change format
for i in $( ls *.jpg); do convert -resize 50% $i $i.gif; done
Comment

linux resize images in folder

/*resize all jpg images to 50px width in current folder*/
sudo apt-get install imagemagick -y
mogrify -resize 50x ./*.jpg 
Comment

PREVIOUS NEXT
Code Example
Shell :: yii install 
Shell :: install lamp on ubuntu 22.04 
Shell :: node upgrade mac os x 
Shell :: sshpass mac os x brew 
Shell :: git delete last commit local and remote 
Shell :: ubuntu empty swap 
Shell :: spacevim install 
Shell :: android studio (not installed) windows 
Shell :: git remove cache 
Shell :: shell hide tab 
Shell :: create a script that counts the number of directories in the path. 
Shell :: install ffmpeg ubuntu 
Shell :: unregister distro 
Shell :: restart firewalld 
Shell :: autoclicker linux 
Shell :: nano zsh 
Shell :: get pytorch version version in ubuntu 
Shell :: update repository ubuntu 
Shell :: docker exec logs 
Shell :: tmux how to scroll in history 
Shell :: how to install admin-lte with npm 
Shell :: change gunicor port and to https 
Shell :: powershell get serial number 
Shell :: delete all deployments kubernetes 
Shell :: scrcpy install 
Shell :: Uninstall WPS Office from Ubuntu 
Shell :: restart nginx in mac 
Shell :: understand the user of git in terminal 
Shell :: how to install .deb file ubuntu 
Shell :: listen all local open ports 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =