Do you have some command line you usually use with files? Like HL2 modding where you have to compile the model through a commandline, or creating fixed-sized thumbnails of images to put on your website? Well if it's a copy-paste action you use alot, then you can easily add it to the context menu in Windows Explorer! It doesn't involve any programming nor Windows Registry hacking! The joys!
It has one drawaback though, you won't get the same flexibility as opening the command console. But then again, you're not programming or anything so this simple solution gives you a simple tool. Duh! =P
I'll illustrate by adding a menu item to explorer that let's you compress any JPEG image to 85% quality just by right clicking on it. Something I do frequently when I'm uploading photos.
I read this article and used ImageMagick that has a convert utility app, so you'll need to download ImageMagick (binary, i.e. precompiled) before continuing.
I have Windows XP; so basically, I went into the file explorer and did this (see reference pic below):
- Tools -> Folder Options
- *click the File Types tab*
- *select JPG*
- *click Advanced* (if the button Advanced isn't visible, you probably see a "Default" button - meaning you've changed the default behaviour of JPGs somehow, like installing a image app. I just clicked that and the text changed to "Advanced")
- -new window opens-
- *click New*
- -new window opens-
- *write the text for the menu item, like "Quality to 85%"*
- *click Browse and navigate to your ImageMagick root folder, select convert.exe*
- *add "%L" -quality 85%% "%L" after the file path* (%L is a system variable to the filepath of the file you right-clicked on, we use quotes because the file path might include spaces)
Here's some visual aid:
The actual command line, in my case, is:
"C:\Program Files\ImageMagick-6.2.5-Q16\convert.exe" "%L" -quality 85%% "%L"
Including all the quotes!
This is what you should end up with.
I hope to get started on my next project in December. Just have to finish Bling! first hehehe... or maybe not!
Thanks goes out to muer, snk_kid, Washu and DigitalDelusion for proofreading this. Extra thanks to snk_kid for the english Windows XP screeny.