Skia Decoder fails to decode remote Stream

后端 未结 4 1662
情深已故
情深已故 2021-01-02 19:13

I am trying to open a remote Stream of a JPEG image and convert it into a Bitmap object:

    BitmapFactory.decodeStream(
new URL(\"http://some.url.to/sourc         


        
4条回答
  •  臣服心动
    2021-01-02 19:45

    I have found a library, which can open images on which Android SKIA fails. It can be useful for certain usecases:

    https://github.com/suckgamony/RapidDecoder

    For me it solved the problem as I am not loading many images at once and lot of images I load have ICC profile. I haven't tried integrating it with some common libraries like Picasso or Glide.

提交回复
热议问题