From the course: Python: Programming Efficiently
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Solution: Image-editing application - Python Tutorial
From the course: Python: Programming Efficiently
Solution: Image-editing application
`(upbeat music) - We're used to editing images on our phones and computers with professional software that looks very sophisticated and probably out of reach for our programming skills. In fact, we can implement the basic functions of an interactive image edit to a very simply. Using the Python packages that we discussed in this chapter. We need to import pillow and i pi widgets. We will play. with one of the SDO images in our cached directory. Here I load it into a pillow object, adjusting brightness, contrast and color is a question of using pillow image enhance brightness followed by contrast and color. We need to encode this transformation in a parametrized function. Next we create three i pi widgets slide their controls. I have guessed at reasonable ranges for the adjustments. We now call i pi widgets interact with the adjust function, and with the three controls that we…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Choose the best libraries for your task2m 54s
-
(Locked)
Download webpages with requests4m 54s
-
Manipulate images with Pillow4m 38s
-
(Locked)
Parse HTML with Beautiful Soup4m 52s
-
(Locked)
Make movies with Matplotlib3m 9s
-
(Locked)
Serve webpages with Flask6m 4s
-
(Locked)
Challenge: Image-editing application2m 28s
-
(Locked)
Solution: Image-editing application1m 50s
-
(Locked)
-
-
-