Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Hello everybody.
I have a little problem, and i'm pretty sure there's a solution.
I'm trying to convert a lot of movie covers to ICO format. The command i use is:
convert -resize 256x256 movie.jpg movie.ico
It converts fine, but the resulting icon is squared and not rectangular like a dvd cover. Is there an option that i need to add?
The result i'm looking for is the same result this site gives: http://converticon.com/
But i need to be able to do this from the command line because i need it for a script i'm writing.
Thank you .
Looking at the thumbnail in windows it looks square but when you click on it to open it is rectangular - strange.
That's exactly my problem. When you set that icon as a folder icon it looks squared, while using an icon created with the site in the first post it looks fine. I need it rectangular for setting the icon in every folders in my movie's directory, and there are quite a few .
Bonzo wrote:I would say you need to add extent to pad the image square with either a transparent or white background and then resize it.
I tried adding a transparent padding with photoshop and it worked, have you any ideas on how to do this in imagemagick? Great tip by the way, at least now i have something to try .
If all you images are the same size it is easier but can be calculated with the fx command. How are you running the command windows command, batch, linux, shell etc?
Try this the dimensions of extent need to be correct for the original image ( in this case the original image would be 500px high ):
Bonzo wrote:If all you images are the same size it is easier but can be calculated with the fx command. How are you running the command windows command, batch, linux, shell etc?
Try this the dimensions of extent need to be correct for the original image ( in this case the original image would be 500px high ):
Thank you very much! It works wonder .
It will be launched by a script in powershell, a pretty easy one. Resizing an image before running this command is no problem. It will be something like this: