Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python saving a screentshot with PIL

#python 3
from PIL import ImageGrab 
snapshot = ImageGrab.grab()
save_path = "C:UsersYourUserDesktopMySnapshot.jpg" #dont forget to write the name and the extension of the file in the end
snapshot.save(save_path)
 
PREVIOUS NEXT
Tagged: #python #saving #screentshot #PIL
ADD COMMENT
Topic
Name
8+4 =