Windows 7: Adding a context menu item for image resizing

By 22 May 2010 | Comment
  1. Install imagemagick
  2. Create a destination directory for the images
  3. Create a batch file (eg, C:\webimage.bat) with this line in it: convert %~nx1 -resize 900x700 C:\web\%~nx1
  4. Download and install ContextEdit: http://www.softpedia.com/progDownload/ContextEdit-Download-78704.html and run setup.exe
  5. Use the ContextEdit program (run as Administrator) to create a new shell command for desired image types (eg, JPEG. The command line is the full path and filename of your batch file, followed by %1 (eg, C:\webimage.bat "%1"). Don't check 'Expand Environment Variables' or 'Use DDE'.
  6. Browse your computer for an image. Right-click on it, and select your new command.
Credits:
  • http://www.winvistaclub.com/e11.html Edit Context Menu Items In Windows 7 & Vista
  • http://www.computing.net/answers/programming/batch-filename-from-absolute-path/16979.html Getting just the filename in a batch file
  • http://weblogs.asp.net/jgalloway/archive/2006/11/20/top-10-dos-batch-tips-yes-dos-batch.aspx Use batch parameter expansion to avoid parsing file or directory info


Comments

It's quiet in here...Add your comment

Recent Updates:

19 May : Heating Oil Thefts - Stay Alert!
19 May : Pro Blaze Overshoes pass the test
15 May : Get a CentOS Server Web-Ready
13 May : Keeping your iPhone secure
06 May : Nero, Claudius and a rather dead mouse
19 May : Domestic Heating Oil Prices: Know the Market!
19 May : Sports Gear: Under Test
15 May : Rackspace Cloud Hosting
13 May : iPhone 4
06 May : Cats
19 Mar : Time Trial Results
25 Nov : Piano for the Amateur
14 Nov : Measure
02 Nov : Book Reviews
12 Oct : Simple Programming Exercises

Popular Searches: