Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I take a lot of screenshot during testing of apps, and i usually use them in emails or in documentation. But i almost always use them scaled down in width and height. So i thourght it would be great if i could illiminate the manual step of starting Gimp to scale the image down, by having a rigth-click menu item that just scaled the image i right-clicked, down to a given width.

I know how to hack the registry in windows to add a right-click menu, so i need some small image tool to do the scaling by using a commandline interface.

Do you have any ideas?

share|improve this question

2 Answers 2

up vote 3 down vote accepted

You can use Image Resizer. It's free and open source.

Image Resizer for Windows is a utility that lets you resize one or more selected image files directly from Windows Explorer by right-clicking.

enter image description here enter image description here

share|improve this answer

If you're still keen to use GIMP, I know that it has a batch mode:

http://www.gimp.org/tutorials/Basic_Batch/

One of the options is:

-b, --batch=<commands>  Batch command to run (can be used multiple times)

You could write a script and get it to execute when your right-click menu is run. The only thing I'm not sure about is how to pass the file name from the right-click menu to the script, although if you see the link I have posted below, it seems to be automatically passed as an argument at the end of the command string. You might have to experiment with this a bit until you get the desired result.

This is only if you need to gain some sort of fine-grained control over the menu action (or you are a script enthusiast/DIYer like myself). It would also allow you to run other filters (e.g. auto-contrast, watermarking) if you wanted to. Otherwise the above solution looks okay (haven't tested).

P.S. you don't necessarily need to edit the registry to create one of these actions. See http://www.makeuseof.com/tag/how-to-add-remove-entries-from-the-right-click-menu/

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.