private Producer < EncodedImage > newLocalTransformationsSequence ( Producer < EncodedImage > inputProducer , ThumbnailProducer < EncodedImage > [ ] thumbnailProducers ) { Producer < EncodedImage > localImageProducer = ProducerFactory . newAddImageTransformMetaDataProducer ( inputProducer ) ; localImageProducer = mProducerFactory . newResizeAndRotateProducer ( localImageProducer , true , mImageTranscoderFactory ) ; ThrottlingProducer < EncodedImage > localImageThrottlingProducer = mProducerFactory . newThrottlingProducer ( localImageProducer ) ; return mProducerFactory . newBranchOnSeparateImagesProducer ( newLocalThumbnailProducer ( thumbnailProducers ) , localImageThrottlingProducer ) ; }
Branch on separate images - > thumbnail resize and rotate - > thumbnail producers as provided - > local image resize and rotate - > add meta data producer