Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. Get a picture from a filename. You only need to accept file extensions of jpg

ID: 3546389 • Letter: 1

Question

1.      Get a picture from a filename.   You only need to accept file extensions of jpg, gif, jpeg, JPG, GIF, and JPEG.  Allow the user to recover from entering an incorrect type of file, a file that can't be opened, etc.

2.      Get a picture from a URL, using "wget".  You only need to accept file extensions of jpg, gif, jpeg, JPG, GIF, and JPEG. Allow the user to recover from entering an incorrect file extension, a URL that can't be downloaded, etc.

Get a picture from a filename. You only need to accept file extensions of jpg, gif, jpeg, JPG, GIF, and JPEG. Allow the user to recover from entering an incorrect type of file, a file that can't be opened, etc. Get a picture from a URL, using "wget". You only need to accept file extensions of jpg, gif, jpeg, JPG, GIF, and JPEG. Allow the user to recover from entering an incorrect file extension, a URL that can't be downloaded, etc.

Explanation / Answer

A string that contains the name of the file from which to create the Image.

Set to true to use color management information embedded in the image file; otherwise, false.