Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

website screenshot python compress image

stream = os.popen("optimize-images /PATH_TO_DESTINATION/" + name + "_op_" + getdate + ".png") 
    time.sleep(20)
    op_png = os.stat('/PATH_TO_DESTINATION/" + name + "_op_" + getdate + ".png').st_size
Source by importsem.com #
 
PREVIOUS NEXT
Tagged: #website #screenshot #python #compress #image
ADD COMMENT
Topic
Name
2+1 =