+ output webp

quality=100 -> demo.webp
quality=80  -> demo-med.webp
qiality=50  -> demo-low.webp

TODO: support other webp writing options
This commit is contained in:
artemp 2013-04-17 14:52:01 +01:00
parent 77e71d726b
commit bd3423a822

View file

@ -352,6 +352,16 @@ images_.append('demo_low.jpg')
im.save('demo.tif', 'tiff')
images_.append('demo.tif')
im.save('demo.webp', 'webp')
images_.append('demo.webp')
im.save('demo_med.webp', 'webp80')
images_.append('demo_med.webp')
im.save('demo_low.webp', 'webp50')
images_.append('demo_low.webp')
# Render cairo examples
if HAS_PYCAIRO_MODULE and mapnik.has_pycairo():