Coder Social home page Coder Social logo

Caching post-processed images about fresco HOT 6 CLOSED

facebook avatar facebook commented on April 28, 2024
Caching post-processed images

from fresco.

Comments (6)

plamenko avatar plamenko commented on April 28, 2024

We don't support that at the moment. We were considering doing that, but there are some non-trivialities when it comes to bitmap-cache-key creation. Cache-key must reflect mutation, but we don't want to kick every other image from cache by filling it with many variants of the same image.
In short, it's doable, we just haven't implemented it yet.

from fresco.

nbarraille avatar nbarraille commented on April 28, 2024

Picasso handles this by having the cache key a function of the URI, resize parameters, transformation keys, etc...
IMO it's pretty important, as currently a ListView with Postprocessor will always show spinner when you scroll back.

from fresco.

plamenko avatar plamenko commented on April 28, 2024

Yeah, agreed. I'm working on it.

from fresco.

KyleDBoyd avatar KyleDBoyd commented on April 28, 2024

Post processing works awesome! Looking forward to the caching to make it usable in a list view

from fresco.

cabbage avatar cabbage commented on April 28, 2024

+1 for post-processed image caching!

Currently I'm post-processing background images which change a lot since they're bound to a list which updates the background every time a new list-item is displayed. And running a RenderScript blur over those images every time could be a battery drainer (I suppose)

from fresco.

tyronen avatar tyronen commented on April 28, 2024

Added in v0.6.0. See http://frescolib.org/docs/modifying-image.html#caching-postprocessed-images.

from fresco.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.