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

  Write a brief history of e-commerce

Write a brief history of E-commerce. Then go in to the good, the bad, and the ugly of E-commerce from a consumer or business standpoint (either or).

  Analyze how these two areas could impact the company

Review the processes of invention and innovation. Then, select a new product that you have been introduced to in the past 12 months. You are encouraged to research this new product using outside sources. You can use the same company you have been ..

  What are the monitoring levels of emerging technologies

What are the challenges encountered when identifying emerging technologies? What are the monitoring levels of emerging technologies?

  How the companys web site is accepted

Campus Travel has recently started selling products on the Internet; the managers are eager to know how the company's Web site is accepted

  Create the hypotheses and thesis

arrow the, topic: Big Data: Privacy and Security, to answer one specific question in relation to this.

  What lessons can you learn from the pinnacle west case

What lessons can you learn from the Pinnacle West case, and how might you apply those at your organization? Please be specific, and use citation as appropriate.

  How mastercard could use its data warehouse to help

Do you think that there are limits to the types of applications that "tap & go" payments can be used for? Why or why not?

  Describe the business environment and identify the risk

As an IT professional, you'll often be required to communicate policies, standards, and practices in the workplace.

  Create a diagram of the layout and navigation structure

Explain the effects that the Cascading Style Sheet (.css) will have on the Web page. There must be a minimum of two (2) changes. Be sure to include detail. (Example: The Cascading Style Sheet (.css) will make the background color grey and change a..

  Java and microsoftnet productwhat is java and why is it

java and microsoft.net productwhat is java and why is it important? how does it compare to microsofts .net product.

  Implementation plan development

Individual: Implementation Plan Development-Design an application, presentation, or website site that presents and explains your Implementation Plan

  What are the advantages to layering in an architecture

Suppose you use your computer at work (which is connected to the local area network) and download a Web page. Based on that situation, list the technologies, protocols, and performance metrics being used. What are the reasons an organization might..

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