transformer for live image filtering. #3614
-
I am looking at how to implement image filtering (b&w, enhance...) with sdwebimage. I am thinking transformers are the way to go. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Can you explain in detail about your feature request ? Actually, SDWebImage store the original image data into disk (not memory), see the default value of So, if you change transformer with a new request, it will just hit disk cache and do decoding and transforming on CPU (no network request), and give you the transformed image. Different transformed image store into different memory cache and disk cache with the proper key (see the default value of The transformer and cache system design is more complicated than you think. Check the source code as well. |
Beta Was this translation helpful? Give feedback.
Can you explain in detail about your feature request ?
Actually, SDWebImage store the original image data into disk (not memory), see the default value of
SDWebImageContextOriginalStoreCacheType
So, if you change transformer with a new request, it will just hit disk cache and do decoding and transforming on CPU (no network request), and give you the transformed image. Different transformed image store into different memory cache and disk cache with the proper key (see the default value of
SDWebImageContextStoreCacheType
)The transformer and cache system design is more complicated …