https://github.com/klml/imghardchache
Save resized images "hard" as file
https://github.com/klml/imghardchache
Last synced: about 2 months ago
JSON representation
Save resized images "hard" as file
- Host: GitHub
- URL: https://github.com/klml/imghardchache
- Owner: klml
- License: apache-2.0
- Created: 2017-03-18T17:42:55.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-29T21:29:37.000Z (over 7 years ago)
- Last Synced: 2025-02-12T08:40:54.722Z (4 months ago)
- Language: PHP
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# imghardchache
imghardchache creates thumbs of images as a file. You can use this with a static site generator to generate static images.
To create a thumb, call the URL of the original image (e.g. `/test.jpg`) with an `__` and the size in pixel
(`/test__255.jpg`).imghardchache is using the [ErrorDocument 404](http://httpd.apache.org/docs/2.2/mod/core.html#ErrorDocument) of an non existing thumb and creates it with `hardcache.php`.
To clear the cache call `/hardcache.php?purge`.
## Settings
You can change:
* a directory with original images (`$originalname = "original/" ;`)
* a directory for thumb images (`$requestedname = "mini/" ;" `)