Create a function that pulls a picture from a url

Assignment Help Management Information Sys
Reference no: EM132198678

1. Create a function that pulls a picture from a URL and creates a thumbnail saved on your local machine.

Since this assignment specifies the picture should be saved as a "thumbnail," the full answer should include a function that decreases the image to a thumbnail size (saveThumbnail2).

However, if the picture pulled from a URL was a thumbnail originally, your function should just save the image without resizing (saveThumbnail1).

Review the program presented in Ch. 13.2 Program 163, "Writing Programs to Generate HTML," of Introduction to Computing and Programming in Python.

2. 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.

Generate a 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.

Reference no: EM132198678

Questions Cloud

Do businesses have the right to demand your social media : Do businesses, employers, churches, colleges, have the right to demand your social media password?
Explain three methods used to steal your identity : What is identity theft? Explain three methods used to steal your identity. List five different steps you should take to protect your identity.
Major responsibilities of human resources management : The major responsibilities of human resources management (HRM) are attracting, developing, and maintaining a quality workforce.
How does culture affect leadership : How does culture affect leadership? How do you think power affects leadership?
Create a function that pulls a picture from a url : Create a function that pulls a picture from a URL and creates a thumbnail saved on your local machine.
Discuss the merits of the role of the federal government : Discuss the merits of the role of the Federal Government in this context.
How sales of individual items would be entered : As the new manager of a convenience store, you have noticed issues with the manual method of tracking sales using paper sales tickets and spreadsheets.
Create a table listing at least seven data items collected : During your weekly trip to the grocery store, you purchase bread, milk, cold cereal, bananas, and ice cream. The purchase was made using a debit card.
What is the purpose of the auditors opinion and report : ACT450: AUDITING ASSIGNMENT, Colorado State University Global Campus, USA. What is the purpose of the auditors' opinion and report

Reviews

Write a Review

Management Information Sys Questions & Answers

  Information technology and the changing fabric

Illustrations of concepts from organizational structure, organizational power and politics and organizational culture.

  Case study: software-as-a-service goes mainstream

Explain the questions based on case study. case study - salesforce.com: software-as-a-service goes mainstream

  Research proposal on cloud computing

The usage and influence of outsourcing and cloud computing on Management Information Systems is the proposed topic of the research project.

  Host an e-commerce site for a small start-up company

This paper will help develop internet skills in commercial services for hosting an e-commerce site for a small start-up company.

  How are internet technologies affecting the structure

How are Internet technologies affecting the structure and work roles of modern organizations?

  Segregation of duties in the personal computing environment

Why is inadequate segregation of duties a problem in the personal computing environment?

  Social media strategy implementation and evaluation

Social media strategy implementation and evaluation

  Problems in the personal computing environment

What is the basic purpose behind segregation of duties a problem in the personal computing environment?

  Role of it/is in an organisation

Prepare a presentation on Information Systems and Organizational changes

  Perky pies

Information systems to adequately manage supply both up and down stream.

  Mark the equilibrium price and quantity

The demand schedule for computer chips.

  Visit and analyze the company-specific web-site

Visit and analyze the Company-specific web-site with respect to E-Commerce issues

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd