An open API service indexing awesome lists of open source software.

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

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/" ;" `)