Picasso: Extension to load images efficiently with Picasso

ChangeLog Version 1.3

  • Multiple images can be loaded asynchronously
  • Better cache support

Aix
com.sunny.Picasso.aix (697.1 KB)

1 Like

A lot will increase the size of the extension by this cache support.

Yes, because now it uses OkHttp lib to cache images.

Can you please tell me whether it is possible with this extension to call up an image from the private data dir (internal storage) without READ permission?

/data/user/0/<packageName>/files/
file:///data/user/0/<packageName>/files/

Unfortunately, the Image component requests permissions for all paths
(except for the assets (/data/data/...).

1 Like

It seems possible.
You should try and let us know the result.

1 Like

Yes, great.

1 Like

ChangeLog Version 1.4

  • Added new transformation options
  • Multiple transformations separated by , can be used
1 Like

Please explain ...

1 Like

These new transformations:

image
image


Like this:

4 Likes

where can I get Version 1.4 extension link?

can i load image by drive url??

How to remove background of component / layout, after the LoadImage?

Aren't you able to change it with BackgroundColor property?

ok for arrangement, but Image do not have BackgroundColor property.

Sorry, I am unable to understand your query :sweat_smile:

What I mean is:
After I set an Image with this extension, how can I remove the picture on the Image component?

any way I have made an remix version from your open resource code, like this

image.getView().setBackground(null);

or use an 1x1px empty transparent image (empty.png).

2 Likes

and I dont understand the meaning of enableIndicators. What's this for?

For height/width, I tried to set it to a different value from image's orign height/width, but it did not have any change.

Picasso says it is for debugging purposes to see from where the image is coming i.e. cache, storage or online.

src

2 Likes

ChangeLog Version 2

  • Migrated to Rush
    Aix size reduced by 50%

com.sunny.Picasso.aix (339.7 KB)

3 Likes