Given a folder with images in it, create an HTML page named index.html that contains links to each JPEG in the directory

User Generated

wqhoo6777

Programming

Description

Given a folder with images in it, create an HTML page named index.html that contains links to each JPEG file in the directory as follows:

  • Write a function that creates a string of the path to a directory
  • Generatea thumbnail (half the size) copy of each image
  • Use makeEmptyPicture to create a blank picture in the correct size, then scale down the original picture into the blank picture
  • Name the new image "half-" + the original filename (e.g., if the original filename was fred.jpg, save the half-size image as half-fred.jpg). The anchor in the link to each full-size picture should be the half-size image.

Capture a screenshot of your output. Paste the screenshot into a Word document.

Submit your Word document and your .py file and .html file in a .zip file

First, you need to select a minimum of 5 pictures, and at most 10 pictures and place the .jpg files in a new folder. This is done manually, not programmatically. You can choose any pictures you want, but I would follow a theme, such as animal pictures, scenic pictures, family and friends pictures and so on. This is the folder you will use to save your Python thumbnail files and create the index.html file.

User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

Hey I am also throu...


Anonymous
Very useful material for studying!

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Related Tags