Why do we need a post here for that it can all be found here?
Well sometimes it is hard to find obvious stuff when you have all those fantastic functions to describe Here is an example:
If I did a correct resize to my resolution of 1366x768:
Code: Select all
convert bakgrunn.png -resize 1366x768 newwp.png
It would get either 1366 or 768 right but not both! I am sure it has something to do with the original proportions of the image.
So to get it right you must do it like this:
Code: Select all
convert bakgrunn.png -resize 1366x768! newwp.png
The difference is the
Now the newwp.png will be exactly 1366x768 not 970x768 or whatever
This is very useful for avatars also.
To resize all your jpg images in a directory to 50% you can use wildcards
Code: Select all
convert *.jpg -resize 50% smaller.jpg
You have to provide a name for the new sized images but they will be numbered like this.
smaller-0.jpg smaller-1.jpg etc.
So if you want to convert all your jpg images in a directory to exactly 200x200 pixels and convert them to png you could do it like this:
Code: Select all
convert *.jpg -resize 200x200! 200.png
You would then get a series of images called 200-0.png 200-1.png 200-2.png etc.
So now you can make all the wallpapers in your Wallpaper directory the same correct size in one sec.