Windows 7: Adding a context menu item for image resizing
- Install imagemagick
- Create a destination directory for the images
- Create a batch file (eg, C:\webimage.bat) with this line in it: convert %~nx1 -resize 900x700 C:\web\%~nx1
- Download and install ContextEdit: http://www.softpedia.com/progDownload/ContextEdit-Download-78704.html and run setup.exe
- 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'.
- 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
It's quiet in here...
Add your comment