Last active
January 24, 2024 04:10
-
-
Save cOborski/c1592b7e81e4b5eb5f7f5e9d80a53380 to your computer and use it in GitHub Desktop.
Batch convert image format, and resize, using ImageMagick in powershell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# Description | |
# Batch convert image format, and resize, using ImageMagick in powershell | |
# | |
# Notes | |
# In this example we're using mogrify to convert all the png images in a folder to ico format | |
# All the images will be resized to 256x256 pixels, which is the largest image size you can convert to an icon | |
# See https://imagemagick.org/script/mogrify.php for more information on the morgrify command | |
# I would also recomend reading the mogrify section on ImageMagick's Basic Usage Page before trying to modify this comand | |
# See https://imagemagick.org/Usage/basics/#mogrify | |
magick mogrify -format ico -resize 256x256 *.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment