Convert and Resize Images using ImageMagick

Convert and Resize Images using ImageMagick

You could always use an online tool riddled with ads and risk a security incident, OR use imageMagick, which is a legendary tool going way back.
Its surprisngly easy to run a single command to do it for you reliably.
 

Download

Mac / Linus: brew install imagemagick
 
 

Convert .webp to .png

Open a terminal in the directory where the image is and run:
convert current_name.webp new_name.png
notion image
current_name.webp
notion image
new_name.png
You can also do: (.webp / .png / .jpg)
 
 

Resize

Create a new image to be 150x150px
convert -resize 150x150 “name with spaces.png” scaled_image.png
notion image
notion image
scaled_image.png
name with spaces.png
 
Create a new image at half the size
convert -resize 50% existing_file.png new_file.png
notion image
notion image
new_file.png
existing_file.png
 

Guides and practical notes, training references, and code snippets shared freely for learning and career growth.