{"id":37234256,"url":"https://github.com/validoll/kohana-imagecache","last_synced_at":"2026-01-15T03:58:18.659Z","repository":{"id":18795048,"uuid":"22008872","full_name":"validoll/kohana-imagecache","owner":"validoll","description":"A Kohana module for create resized / cropped images.","archived":false,"fork":true,"pushed_at":"2014-10-17T07:30:59.000Z","size":276,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-14T14:14:21.460Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"Bodom78/kohana-imagefly","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/validoll.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-19T12:06:07.000Z","updated_at":"2014-11-26T17:02:08.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/validoll/kohana-imagecache","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/validoll/kohana-imagecache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/validoll%2Fkohana-imagecache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/validoll%2Fkohana-imagecache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/validoll%2Fkohana-imagecache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/validoll%2Fkohana-imagecache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/validoll","download_url":"https://codeload.github.com/validoll/kohana-imagecache/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/validoll%2Fkohana-imagecache/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28442357,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T00:55:22.719Z","status":"online","status_checked_at":"2026-01-15T02:00:08.019Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-15T03:58:17.961Z","updated_at":"2026-01-15T03:58:18.654Z","avatar_url":"https://github.com/validoll.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ImageCache\n\nThis module allows you to quickly create resized / cropped images.\nModified images are cached after the initial request and served up thereafter to help reduce server strain,and also available, even when ImageCache switch off, on the same URL which was generated.\n\n## Compatibility\n\nImageCache currently works with Kohana 3.2 and 3.3\n\n## Getting Started\n\nIn your `application/bootstrap.php` file modify the call to Kohana::modules and include the image and imagecache modules.\n\n    Kohana::modules(array(\n        ...\n        'image'    =\u003e MODPATH.'image',\n        'imagecache' =\u003e MODPATH.'imagecache',\n        ...\n    ));\n\n[!!] The image module is requried for the ImageCache module to work.\n\n## Configuration\n\nThe default config files is located in `MODPATH/imagecache/config/*`.\n - Main configuration - `MODPATH/imagecache/config/imagecache.php`\n - Configuration patterns for modify images - `MODPATH/imagecache/config/imagecache_patterns.php`\n\nYou should copy this files to `APPPATH/config/*` and make changes there, in keeping with the cascading filesystem.\n\n## Configuration Options (imagecache.php)\n\nEmpty or undefined options will always fallack to their defaults.\n\n**cache_expire:** 604800\nNumber of seconds before the browser checks the server for a new version of the modified image.\n\n**cache_dir:** 'cache/'\nPath to the image cache directory you would like to use, don't forget the trailing slash!\n\n**quality:** 80\nThe default quality of images when not specified in the URL.\n\n**scale_up:** FALSE\nIf the image should be scaled up beyond it's original dimensions on resize.\n\n**default_image:** FALSE\nDefault image if the requested image is not available.\nFor example:\n\n    'default_image'    =\u003e 'files/misc/default.png',\n\n**watermarks**\nConfigure one or more watermarks. Each configuration key can be passed as a param through an Imagefly URL to apply the watermark.\n\nIf no offset is specified, the center of the axis will be used.\nIf an offset of TRUE is specified, the bottom of the axis will be used.\n\n    // Example watermarks\n    'watermarks' =\u003e array(\n        'first_watermark' =\u003e array(\n            'image'    =\u003e 'path/to/first/watermark.png',\n            'offset_x' =\u003e TRUE,\n            'offset_y' =\u003e TRUE,\n            'opacity'  =\u003e 80\n        ),\n        'second_watermark' =\u003e array(\n            'image'    =\u003e 'path/to/second/watermark.png',\n            'offset_x' =\u003e 5,\n            'offset_y' =\u003e 5,\n            'opacity'  =\u003e 50\n        )\n    )\n\n## Patterns configuration (imagecache_patterns.php)\n\nExample of pattern settings:\n\n    'thumb' =\u003e array(\n       'width' =\u003e '50%',\n       'height' =\u003e '50px',\n       'crop' =\u003e TRUE,\n       'quality' =\u003e 80,\n       'watermark' =\u003e 'custom_watermark',\n    ),\n\n**width**\nWidth of cached image. Allow 'px' or '%' suffix.\n\n**height**\nHeight of cached image. Allow 'px' or '%' suffix.\n\n**crop**\nUse crop for cached image. If 'FALSE', then use scale.\n\n**quality**\nQuality of cached image.\n\n**watermark**\nName of one of watermark from the main config file.\n\n## Usage Examples\n\nHere are some examples of what you can do with ImageCache.\n\nAt first set path of cache dir in your `imagecache.php`.\nFor example:\n\n    'cache_dir' =\u003e 'files/imagecache/',\n\nAt second set at least one pattern in your `imagecache_patterns.php`.\nFor example:\n\n    'thumb' =\u003e array(\n        'width' =\u003e '80',\n        'height' =\u003e '80',\n        'crop' =\u003e TRUE,\n    ),\n\n**Use this path for get resized image**\n`\u003cimg src=\"/files/imagecache/thumb/path/to/image.jpg\"\u003e`\n\n## Notes\n\n* This is project based on [Imagefly](https://github.com/Bodom78/kohana-imagefly) by [Fady Khalife](https://github.com/Bodom78)\n* ImageCache will not process images when the width and height prams are the same as the source\n* Don't forget to make your cache directory writable.\n* Inspired by the [smart-lencioni-image-resizer](http://code.google.com/p/smart-lencioni-image-resizer/) by Joe Lencioni\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalidoll%2Fkohana-imagecache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvalidoll%2Fkohana-imagecache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalidoll%2Fkohana-imagecache/lists"}