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

Solution: Image-editing application - Python Tutorial

From the course: Python: Programming Efficiently

Start my 1-month free trial

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…

Contents