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

shrink images with adaptive-images.php #35

Open
adrianjost opened this issue Apr 25, 2017 · 1 comment
Open

shrink images with adaptive-images.php #35

adrianjost opened this issue Apr 25, 2017 · 1 comment

Comments

@adrianjost
Copy link
Owner

adrianjost commented Apr 25, 2017

Shrink all images in articles via adaptive-images.php

  1. when fetching the full article: extract all images
    1.1. store them in database (scheme below)
    1.2. replace all imagelinks by adaptive-images.php?id=imageid

  2. adaptive-images.php gets original image, shrink them and send them to the user

To improve performance activate cache in adaptive-images.php and delete all entrys + cache-files, if the artilcle is removed from database

Table:

imageid articleid imageurl
@adrianjost
Copy link
Owner Author

This might not be necessary cause most website should already serve optimized images. May use this algorithm just for specific domains

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

No branches or pull requests

1 participant