contact: impytool.package@gmail.com
| FUNCTION | OPERATION |
|---|---|
| grayscale | Converts the image in grayscale form |
| negative | Converts the image in negative form |
| color_change | Replaces one color in the image with another color |
| color_filter | The image filtered by choosen color |
| blur | Converts the image blurred form |
| resize | Adjusts the image to the desired dimensions |
| brightness | Adjusts the brightness of the image |
| contrast | Adjusts the contrast of the image |
| only_color | Shows only the selected color on the image |
| rotate | Rotates the image |
| flip | Flips the image |
| histogram | Creates a histogram for the image |
| black_white | Converts the image black & white form |
- image: Image file to be processed
- save: 1 or not. The 1 is will save the file in new form
Converts the image in grayscale form
Converts the image in negative form
Replaces one color in the image with another color
- color1: the color that will change
- color2: the color that will replace color1
color: "blue" "green" "red" "yellow" "orange" "purple" "brown" "white" "black"
for example: impytool.color_change('a.jpg','red','color2',0)
change red color to blue color on the "a.jpg"
The image filtered by choosen color
- color: "blue","green","red" .
Converts the image blurred form
Adjusts the image to the desired dimensions
- w: Width of the new sizes.
- h: Height of the new sizes.
Adjusts the brightness of the image
- rate: Change rate of the brightness.
Adjusts the contrast of the image
- alpha: Contrast change quantity
alpha should be in the range of 0-3.0
the 0-1.0 range is the lower contrast
the 1.0-3.0 is the higher contrast
Shows only the selected color on the image
- color: "blue" "green" "red" "yellow" "orange" "purple"
Flips the image
- direction: The desired flip direction, it may be 'vertical' 'horizontal' 'both'
Rotates the image
- angle: The desired rotation angle, it may be 90-180-270
Creates a histogram for the image
- hist_type: Determines the histogram type.
it may be 'hist' : for the grayscale images
it may be 'rgb_hist' : for the colored images
Converts the image black & white form