Library for tinkering with images
Pillow is also required to use da-vinci
da-vinci.py
# -*- coding: utf-8 -*-
from da_vinci import Image
#Fetch images using URL
image = Image('http://stamps.co.id/static/merchants/img/logo.png')
#Reverse the image
image.flip('horizontal')
#Image resizing
image.resize(width=120, height=120)
#Save with extension png
#quality seems to be set as a percentage, but I don't know what will change if I change the value
image.set(format='png', quality=85)
#Save image
image.save()
It's nice to be able to specify the image in the URL!
Recommended Posts