You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now it seems imageModifiers change the finalImage which is cached in memory. This can be a problem when you are using the same image in multiple places. Please correct me if I am wrong. See ImageCache.swift. One of the options would be to not cache the final image (or at least add an option to not cache it), or add the same logic to modifiers as we have with processors, so different modifiers would have different keys.
letfinalImage= options.imageModifier?.modify(image)?? image
// Cache the disk image to memory.
// We are passing `false` to `toDisk`, the memory cache does not change
// callback queue, we can call `completionHandler` without another dispatch.
varcacheOptions= options
cacheOptions.callbackQueue =.untouch
self.store(
finalImage,
forKey: key,
options: cacheOptions,
toDisk:false)
The text was updated successfully, but these errors were encountered:
Right now it seems
imageModifiers
change thefinalImage
which is cached in memory. This can be a problem when you are using the same image in multiple places. Please correct me if I am wrong. SeeImageCache.swift
. One of the options would be to not cache the final image (or at least add an option to not cache it), or add the same logic to modifiers as we have with processors, so different modifiers would have different keys.The text was updated successfully, but these errors were encountered: