A passionate programmer’s findings in the world of internet.

Right Click to Convert Image Format

May 6th, 2007

I'm quite annoyed to see badly converted images on the web. They typically print screen and paste it on Microsoft Paint, then save as JPG. JPG files created that way look awful to me. I'm writing this to create a right-click shortcut to convert any image format to JPG nicely, with the help of ImageMagick command-line tools.

  1. Download ImageMagick, the Q16, DLL version from ImageMagick Download Page.
  2. Install the program.
  3. Start Registry Editor, start > run > regedit.
  4. Go to HKEY_CLASSES_ROOT\*\shell
  5. Right click on shell > New > Key
  6. Type in: Convert to JPG
  7. Right click on "Convert to JPG" > New > Key
  8. Type in: command
  9. Select "command". Double click on "(Default)" on your right to change its value.
  10. Type in with the double quotes: "C:\Program Files\ImageMagick-6.3.4-Q16\mogrify.exe" -format jpg -quality 100 "%1"
    Take note of the ImageMagick installation path. You may need to modify that.

Your regedit would look something like this:

Regedit print screen for image convertion

Your right click menu will have an additional item, Convert to JPG. Once you click on it, a new JPG file will be generated.

I'm certain that there are better ways to do it, but with ImageMagick installed you can do much more stuffs like this. (See: the power of ImageMagick)

If my article helped you solved your problem, consider buy me a beer!

Share this article: del.icio.us | digg it

Tags: ,

Related posts:

5 Responses

martin says:

it sounds good, just a right click, and choose to convert. fast and easy.

Joey Novak says:

Sweet mod… Works perfect! Even lets you do LOTS of pictures at once. Thanks for making it easy!

insinc says:

Thanks for the hot tip, works great – i had to make the “shell” hkey_classes_root/*/


upol says:

Great….works like rocket. I wish i could hide the command promt from popping up while the conversion

power says:

How do I get it to work in windows 7?