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

make load image from URI #20

Closed
adityapp opened this issue Dec 19, 2019 · 8 comments
Closed

make load image from URI #20

adityapp opened this issue Dec 19, 2019 · 8 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@adityapp
Copy link

No description provided.

@adityapp adityapp added good first issue Good for newcomers help wanted Extra attention is needed labels Dec 19, 2019
@syariefnoorp
Copy link

you don't need make load image from URI, cause you just need input image type Drawable or Bitmap :v @adityapp

@gifff
Copy link
Contributor

gifff commented Dec 20, 2019 via email

@febryanasaperdana
Copy link

febryanasaperdana commented Jan 3, 2020

Using or loading drawable or bitmap directly may cause memory issues to the app as loading them requires significant memory usage. Even if it is not necessary or there is no urgency right now, it might be good to create a utility or helper class that lets users to pass their preferred image loaders (Picasso, Glide, Fresco, UniversalImageLoader, etc.). Therefore, the "universal" term can be persisted, as users can still freely use the dependency as how they want it. Moreover, image loaders can be a good solution in case users need to load image from various options or dealing with image loading problems.

@adityapp
Copy link
Author

adityapp commented Jan 3, 2020

please, attach a memory issue for us to consider @febryanasaperdana

@febryanasaperdana
Copy link

febryanasaperdana commented Jan 3, 2020

@adityapp As I have not tried this dependency in any of my apps or projects, I can not attach any memory issues related with the usage of this dependency right now, especially in the case of loading drawable or bitmap directly. Popular memory issues in most Android apps dealing with image loading such as the OutOfMemory (OOM) exception, high heap size, unresponsive/slow UI, may occur depending on the usage and configuration by the users: caching strategy, the bitmap (image) dimension, etc.

The above comment by me was meant to be a suggestion to previous comments made by @gifff @syariefnoorp . Image loaders have such a proven mechanism that makes image loading a breeze, as well as opening the possibility to load image from URI per this issue request.

I might fork and try this dependency later and see if I can produce any memory issues regarding this, as well as exploring various image loading options.

@gifff
Copy link
Contributor

gifff commented Jan 3, 2020 via email

@febryanasaperdana
Copy link

@gifff Thanks for the clarification, now the air has been cleared up. I have not tried this dependency hence I apologize if my answer is very opinionated. The library is great and there is much room for improvement.

@gifff
Copy link
Contributor

gifff commented Jun 14, 2020

This feature is already implemented in #24

@gifff gifff closed this as completed Jun 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants