One of it's many possibilities is browsing through the available encoders to use the conversion options more efficiently.
This piece of code illustrates the conversion from multi-page tiff image into the separate grayscale images:https://gist.github.com/Polaringu/46461 ... 42fc39038b