View
214
Download
0
Category
Preview:
Citation preview
8/19/2019 Batch Gray Scale
http://slidepdf.com/reader/full/batch-gray-scale 1/5
Batch Grayscale
Converting Many Files
8/19/2019 Batch Gray Scale
http://slidepdf.com/reader/full/batch-gray-scale 2/5
Convert Images to Grayscale
• Convert an image to grayscale
8/19/2019 Batch Gray Scale
http://slidepdf.com/reader/full/batch-gray-scale 3/5
Convert Images to Grayscale
• Convert an image to grayscale
• Why?
• Printing: cheaper, sometimes required
• Faster, easier for other processing
• For one image: might use image editor
8/19/2019 Batch Gray Scale
http://slidepdf.com/reader/full/batch-gray-scale 4/5
Convert Images to Grayscale
• What about many?
• What if we had 1000 images?
8/19/2019 Batch Gray Scale
http://slidepdf.com/reader/full/batch-gray-scale 5/5
• Task: convert many images to grayscale
• User selects images, from 1 to 1000
• Convert each to grayscale
• Save converted, new images as files
• Add “grey-“ prefix to original file name
Task: Convert Many Images
Ask user to pick filesIterate over them
1
Convert one imageto grayscale
2
Combine:Convert many
3
Save results
4
Recommended