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

Resize Remote Image #45

Open
riyanpratamap opened this issue Aug 26, 2016 · 6 comments
Open

Resize Remote Image #45

riyanpratamap opened this issue Aug 26, 2016 · 6 comments

Comments

@riyanpratamap
Copy link

Hi,

I have a quick question here. Can I resize image from remote image before it showed? I think it will reduce memory usage on the apps. If there is any way to do it, let me know.

Thank you so much!

@evgenyneu
Copy link
Owner

evgenyneu commented Aug 26, 2016

Hello @Riyanpratama, it is not possible with Auk at the moment, unfortunately. But this is a very good idea for a feature. The Moa, the image downloader used in Auk, already provides a way to manipulate images before they are shown. We can add the same functionality to Auk.

This is a proposed API:

scrollView.auk.show(url: "https://bit.ly/moa_image",
   onSucessAsync:  { image in
    // Called asynchronously when image arrives
    // Manipulate the image and return the result 
    return image
  }
)

@riyanpratamap
Copy link
Author

Thank you for your quick response.

Yaa, it will be a great feature for Auk. Good luck, @evgenyneu !

@evgenyneu
Copy link
Owner

Thanks for awesome idea, I will keep this open, as an enhancement proposal.

@evgenyneu evgenyneu reopened this Aug 26, 2016
@riyanpratamap
Copy link
Author

Great!
I'll keep watching!

@mkaya93
Copy link

mkaya93 commented Nov 21, 2016

@evgenyneu did you add this to the library ?

@evgenyneu
Copy link
Owner

Hi @mkaya93, no I have not implemented this feature yet, unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants