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

  Discuss components that should be included in a rfp

Discuss the components that should be included in a request for proposal (RFP) document and explain how the RFP document and process can make a difference in the outcome of an information system selection.

  Evaluate various ICT business analytic tools and techniques

NIT3171 ICT Business Analysis & Data Visualization Assignment - Evaluate various ICT business analytic tools and techniques

  How would you advise tracy to approach market segmentation

How would you advise Tracy to approach the following topics: Market segmentation ,Selection of a target market , Development of a positioning strategy.

  Describe the best practices for mitigating vulnerabilities

Describe the best practices for mitigating vulnerabilities in order to prevent buffer overflow (BO) attacks or SQL Injections (SQI).

  It purchasing process

This is basically an E-R diagram based on the to-be process explained in the document. I have three processes. IT purchasing process

  Demonstrate the importance of it auditor independence

Demonstrate and provide examples to justify your understanding of the following conceptual phases of IT auditing.

  How would you handle the given risk

How would you handle this risk? Would you accept, reject, transfer, or mitigate it? How did you come to that decision?

  How will you determine the needs of the database

How will you determine the needs of the database. What process will you use to design the database (tables, forms, queries, reports)

  Who would you include on your team and why

If you have to design an IT system for supply chain purposes using a cross-functional team, who would you include on your team and why?

  Compute bill brays piece rate for product

Compute Bill Brays piece rate for product on the lathe and compute his pay for the period - characteristics of robots and provide three (3) conditions in manufacturing best suited to the application of robotics.

  Explain the four basic elements of a contract

Explain the four basic elements of a contract, not specific to any organization and the concept of breach in regard to contracts. What policies does your organization have in place to resolve a contract issue?

  Identify various IT assets and their business value returns

MIS782: Value of Information Assessment - IT Portfolio Theory. Identify various IT assets and their business value returns mentioned in the case study

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