Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In Windows, I have a GNOME icon theme in the svg format; several svg files residing within subfolders. Is there a way, on the command line, to convert these to ico files with the same name in the same subdirectory, while specifying the output size?

share|improve this question

Using ImageMagick, you can write a batch file with the following contents, which should be placed in the root folder containing the subdirectories with the icons:
for /R . %%a in (*.svg) do convert -background none -density 256x256 %%a %%~dpna.ico
Where 256x256 is the desired resolution. If the svg does not support scaling at this size, it will go as high as it can.

share|improve this answer
Thanks for posting the answer! – Ben West Oct 18 '12 at 1:52
@BenWest No problem! I'd looked for this one a few times, so once I figured it out I figured I'd make it easier for the next person. – Suchipi Oct 18 '12 at 2:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .