SDWebImage / SDWebImage/SDWebImageWebPCoder
Frames loading
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Objective-C
- Estrellas
- 277
- Forks
- 101
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Hello, I'm trying to use animated webp images as cells for collection view and it works nice on new devices, but on devices like iPhone 7 I have such an issue: on first appearing of cell the loading of images is freezed, and scrolling is not (I can scroll the collection without freezes, so it is not main thread lock). There are approximately 50 cells of images, and they loads by frame. After some time (I guess when all frames of images are passed) all cells begin to animate correctly (after closing and reopening the screen too). Looks like it is something connected with caching. All webp-s are local files, so it is not network loading. Am doing something wrong? Here is the code:
SDWebImageManager.shared.optionsProcessor = SDWebImageOptionsProcessor { _, options, context in
var mutableOptions = options
mutableOptions.insert([.retryFailed, .highPriority/*, .preloadAllFrames*/]) // no efffect on frames loading
return SDWebImageOptionsResult(options: mutableOptions, context: context)
}
SDImageCodersManager.shared.addCoder(SDImageWebPCoder.shared)
SDWebImageDownloader.shared.setValue("image/webp,image/*,*/*;q=0.8", forHTTPHeaderField: "Accept")
...
var stickerImageView = SDAnimatedImageView(frame: .zero)
// stickerImageView.shouldIncrementalLoad = true // no efffect on frames loading
stickerImageView.sd_imageTransition = .fade(duration: 0.3)
...
stickerImageView.sd_setImage(with: url, placeholderImage: placeholder)
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza reproduciendo el caso de la vista de colección WebP animada con SDAnimatedImageView, SDWebImageManager y SDImageCodersManager en un dispositivo iOS antiguo o en un entorno equivalente. Compara la primera aparición con la animación posterior, después de que las imágenes locales se hayan procesado o almacenado en caché. Se considera completado cuando las aproximadamente 50 celdas WebP animadas locales comienzan a cargarse y animarse correctamente sin el bloqueo inicial informado.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- ios, objective-c, swift
- Área
- mobile, performance
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 35/100