Windows 7: Adding a context menu item for image resizing

  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