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:

09 Feb : Solar PV Readings for Cherwell, east-facing
09 Feb : Solar PV Readings for Cherwell, South-facing
04 Feb : Dodgy connection? Don't just blame your ISP
01 Feb : Cold weather alerts: be prepared!
29 Jan : How to make a cat tree
27 Jan : Be careful what you view on Facebook
26 Jan : Kittens in pose mode
25 Jan : Let the kittens play!
24 Jan : 22 January 2012: Mistley Cross
09 Feb : My Solar PV
04 Feb : About Us: Julii & John Swindells
04 Feb : Internet Access
01 Feb : Domestic Heating Oil Prices: Know the Market!
29 Jan : Cats
27 Jan : The Social Web
24 Jan : Cycling
25 Nov : Piano for the Amateur
14 Nov : Measure
02 Nov : Book Reviews

Popular Searches: