+ 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:
parent
77e71d726b
commit
bd3423a822
1 changed files with 10 additions and 0 deletions
|
@ -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():
|
||||
|
||||
|
|
Loading…
Reference in a new issue