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

PREVIOUS NEXT
Code Example
Shell :: terminal how to find a file name 
Shell :: git check staged changes 
Shell :: The requested URL was not found on this server. Apache/2.4.41 (Ubuntu) Server at Port 80 
Shell :: add passphrase to ssh agent 
Shell :: linux terminal check available wifi networks 
Shell :: kill task cmd 
Shell :: git file line history 
Shell :: neovim install wsl 
Shell :: Printing 1-100 in Bash (3 ways) 
Shell :: ubuntu rename user login 
Shell :: express-generator ejs 
Shell :: git filter-branch remove file 
Shell :: bash change text in specific column 
Shell :: bash only print duplicated lines 
Shell :: get y.output file yacc remove shift reduce conflict 
Shell :: install socket.io 
Shell :: C:UsersMY PCAppDataRoaming pm/node_modules/node/bin/node: line 1: This: command not found 
Shell :: git remote origin edit 
Shell :: how to terminate lite server 
Shell :: renew ssl certbot nginx 
Shell :: could not connect to server: Connection refused Is the server running on host and accepting TCP/IP connections on port 5432? 
Shell :: check folders sizes linux 
Shell :: brew install pgdump 
Shell :: How to find sum of elements in array in bash script 
Shell :: rustup set default toolchain nightly 
Shell :: github setup 
Shell :: copy folders linux 
Shell :: how to install apple music ubuntu 
Shell :: see default gateway linux 
Shell :: schedule shell script mac 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =