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

Share optimized image into several locations if size and format are identical #471

Open
cawa-93 opened this issue Aug 18, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@cawa-93
Copy link
Contributor

cawa-93 commented Aug 18, 2023

Enter your suggestions in details:

Let's say I have two components for showing same image:

<img src="my-pic.png" imagick="png 300@2"/>
<img src="my-pic.png" imagick="png 600@2"/>

First one resolved into my-pic-300w.png and [email protected]. Second one into my-pic-600w.png and [email protected]. The problem is that files [email protected] and my-pic-600w.png are completely identical but they generated twice, stored in cache twice, stores in fs twice and loaded into client twice.

Maybe it have sence to resolve file size and share one file into several locations? So in my example instead of having 4 files we will get only 3: my-pic-300w.png, my-pic-600w.png, my-pic-1200w.png.

@cawa-93 cawa-93 added the enhancement New feature or request label Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant