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

cache downloaded images with chitra.image.Chitra #52

Closed
aniketmaurya opened this issue Jun 22, 2021 · 0 comments · Fixed by #61
Closed

cache downloaded images with chitra.image.Chitra #52

aniketmaurya opened this issue Jun 22, 2021 · 0 comments · Fixed by #61
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@aniketmaurya
Copy link
Owner

aniketmaurya commented Jun 22, 2021

Is your feature request related to a problem? Please describe.

from chitra.image import Chitra

# image is downloaded from internet
image = Chitra(IMAGE_URL)

# same image is downloaded again!
image = Chitra(IMAGE_URL)

Describe the solution you'd like

Cache the image in local dir

What I want is -

from chitra.image import Chitra

# image is downloaded from internet
image = Chitra(IMAGE_URL, cache=True)

# image is loaded from cached dir
image = Chitra(IMAGE_URL, cache=True)

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context or screenshots about the feature request here.

@aniketmaurya aniketmaurya added enhancement New feature or request help wanted Extra attention is needed labels Jun 22, 2021
@aniketmaurya aniketmaurya self-assigned this Jun 22, 2021
@aniketmaurya aniketmaurya changed the title cache downloaded images with chitra.Chitra cache downloaded images with chitra.image.Chitra Jun 22, 2021
@aniketmaurya aniketmaurya added this to the 0.1.0 milestone Jun 23, 2021
@aniketmaurya aniketmaurya mentioned this issue Jun 23, 2021
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant