Question: This week you will be generating a photo search script leveraging this weeks briefing, demonstration and sample scripts. 1) You will prompt the user for

This week you will be generating a photo search script leveraging this weeks briefing, demonstration and sample scripts. 1) You will prompt the user for a starting folder and then walk the file system from that point. 2) You will examine each file and determine if it is an image (using the PIL library) method, and extract and report the path, extension, format, width, height and mode. In addition, for each image file you will compare the file extension to the format detected. You will add a column to the output named "ERR and place an [*] in that column for each mismatch detected a blank space otherwise. 3) Your script will produce the following outputs: a) Prettytable (sorted by ERR column) b) CSV File c) JSON File 4) You will submit: . Your python script A screenshot of output The resulting CSV File Output The resulting JSON File Output This week you will be generating a photo search script leveraging this weeks briefing, demonstration and sample scripts. 1) You will prompt the user for a starting folder and then walk the file system from that point. 2) You will examine each file and determine if it is an image (using the PIL library) method, and extract and report the path, extension, format, width, height and mode. In addition, for each image file you will compare the file extension to the format detected. You will add a column to the output named "ERR and place an [*] in that column for each mismatch detected a blank space otherwise. 3) Your script will produce the following outputs: a) Prettytable (sorted by ERR column) b) CSV File c) JSON File 4) You will submit: . Your python script A screenshot of output The resulting CSV File Output The resulting JSON File Output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
