Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

pil python

# usng pil to open image
from PIL import Image
image = Image.open(r"filepath")
image.show()
Comment

python pil

from PIL import Image

img = Image.open("./my_image.png")
Comment

python PIL

from pil import Image

def newImg():
    img = Image.new('RGB', (100, 100))
    img.putpixel((30, 60), (155, 155, 55))
    img.save(r'C:UserslenovoDesktopsqr.png')

    return img

newImg()
Comment

PREVIOUS NEXT
Code Example
Python :: change marker border color plotly 
Python :: soup findall table 
Python :: python opencv subtract two images 
Python :: how to print a column from csv file in python 
Python :: UTC to ISO 8601 with TimeZone information (Python 3): 
Python :: Find and count unique values of a single column in Pandas DataFrame 
Python :: extends template django 
Python :: python read scv 
Python :: raspberry pi keyboard python input 
Python :: matplotlib display graph on jupyter notebook 
Python :: how to make a nan value in a list 
Python :: how to execute a python file from another python file 
Python :: how do i get parent directory python 
Python :: scipy.cluster.hierarchy 
Python :: Python, importing other scripts from other directories 
Python :: python print string name in pattern 
Python :: pyplot python 
Python :: convert csv file into python list 
Python :: How to rotate the 2D vector by degree in Python: 
Python :: vim run python current file 
Python :: how to convert list into object and transform into tensors 
Python :: dataframe to ftp 
Python :: if substring not in string python 
Python :: make button bigger tkinter with grid 
Python :: django form list option 
Python :: find highest correlation pairs pandas 
Python :: change item in list python 
Python :: Python string to var 
Python :: remove in list python 
Python :: how to print correlation to a feature in pyhton 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =