Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

progressive image loading #43

Open
vipulasri opened this issue May 5, 2018 · 7 comments
Open

progressive image loading #43

vipulasri opened this issue May 5, 2018 · 7 comments
Labels
status: triage Indicates that this issue needs to be analyzed and decorated with the appropriate labels type: enhancement New feature or request

Comments

@vipulasri
Copy link

Is there a way to have progressive image loading which is supported by JPEG and WEBp images?

@renefloor
Copy link
Contributor

Not at the moment, but it's a good feature. Do images support that themselves or should a server give two images?

@vipulasri
Copy link
Author

Yeah, there can two ways:

  1. First providing a thumbnail image and then loading the actual image in the background. And when the actual image is available replacing thumbnail with it.
  2. More awesome way, JPEG, and WEBp support progressive loading with themselves(if the only image was created supporting such feature.)

@renefloor
Copy link
Contributor

For the image supported progressive loading I will probably need a lot of rewriting as the loading and showing of the image is fully seperated. (File loading is even a seperate library.) Using two images is easier, as I can just start loading the second one when the first one is finished. I am not sure how much developers want something like this, as images for apps are often already optimized to be small.

@vipulasri
Copy link
Author

I agree, then the library should offer an extra method/option like thumbnail() that would really help.

@renefloor
Copy link
Contributor

I was thinking about a stream, that way you can change it to any amount of images/files. Do you know some easy to read documentation about this? Is this generic or does every image type has its own methods?

@vipulasri
Copy link
Author

vipulasri commented May 7, 2018

I can tell you about most commonly used Image Loading library on Android i.e Glide. It has great features as well as documentation.

@perlatus
Copy link

perlatus commented May 9, 2018

Hey you can actually use the placeholder widget for this. That's what I'm doing. I pass in a placeholder widget that's basically a lower-res image (already cached) stacked with a progress bar.

@renefloor renefloor added type: enhancement New feature or request status: triage Indicates that this issue needs to be analyzed and decorated with the appropriate labels labels Feb 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: triage Indicates that this issue needs to be analyzed and decorated with the appropriate labels type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants