Python saving multiframe TIFF as multiple JPEG -


i have tiff file multiple frames. found if open tiff file , call seek(1) can seek second frame. working, except when go save image jpg, saves first frame , not current frame.

how can save multiple frames different jpg files?

from pil import image im = image.open('test.tiff') im.save('test.jpeg') 

i need like...

from pil import image im = image.open('test.tiff') im.seek(1) im.save('test.jpeg') 

and have save second frame , not first.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -