facebookincubator / spectrum

A client-side image transcoding library.
https://libspectrum.io
MIT License
1.99k stars 166 forks source link

How to transcode multiple images? #224

Open umsun-jake opened 4 years ago

wizh commented 4 years ago

Hi! Could you please provide some more details for what you are asking?

umsun-jake commented 4 years ago

Hi! Could you please provide some more details for what you are asking?

I want transcode multiple images parallel.

            Flowable.fromIterable(images)
                    .parallel()
                    .runOn(Schedulers.computation())
                    .map { spectrum(it) }
                    .sequential()
                    .toList()

This result is wrong images. (same images)