VOOZH about

URL: https://www.geeksforgeeks.org/python/pgmagick-contrast-method-python/

⇱ Pgmagick contrast() method - Python - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Pgmagick contrast() method - Python

Last Updated : 30 Jun, 2021

The contrast() function is an inbuilt function in the Pgmagick library which is used to enhance or reduce the contrast of the image. The function returns the true value on success. 
 

Syntax: 
 

contrast(multiplier)


Parameters: This function accepts a single parameter multiplier which is the factor by which the contrast of image should increase or decrease.
Return Value: This function returns the Pgmagick object with image added. 
 


Input Image: 
 

👁 Image


Example 1: 
 

Output: 
 

👁 Image


Example 2: 
 

Output: 
 

👁 Image


 

Comment
Article Tags: