Return to Snippet

Revision: 8281
at September 11, 2008 10:29 by DaveChild

Initial Code
REM Copy images to processing directory
xcopy /Y /C /I /E C:\Imagery\ToProcess C:\Imagery\Processing\Originals 

REM Copy originals to 200 folder ready for processing
xcopy /Y /C /I /E C:\Imagery\Processing\Originals C:\Imagery\Processing\200x200

REM Convert 200s
for /R C:\Imagery\Processing\200x200 %%I in (*.jpg) do "C:\Program Files\XnView\nconvert.exe" -npcd 2 -size 256x256+0 -ctype grey -corder inter -out jpeg -sharpen 1 -autocrop 10 255 255 255 -ratio -rtype linear -rflag orient -resize 190 190 -bgcolor 255 255 255 -canvas 200 200 center "%%I"

REM All done - copy images to processed directory
xcopy /Y /C /I /E C:\Imagery\Processing\200x200 C:\Imagery\Processed\200x200
xcopy /Y /C /I /E C:\Imagery\Processing\Originals C:\Imagery\Processed\Originals

REM Remove image files from system to prevent repeated conversions of the same images
DEL /F /S /Q "C:\Imagery\Processing\200x200"
DEL /F /S /Q "C:\Imagery\Processing\Originals"
DEL /F /S /Q "C:\Imagery\ToProcess"

Initial URL

Initial Description
Crops and resizes, maintaining perspective, with a white background.

Initial Title
DOS Generate Thumbnails with NConvert

Initial Tags

Initial Language
DOS Batch