{"id":16953652,"url":"https://github.com/thisislawatts/kirby-picture","last_synced_at":"2025-03-21T11:44:43.188Z","repository":{"id":149171315,"uuid":"20755652","full_name":"thisislawatts/kirby-picture","owner":"thisislawatts","description":"Adds picture support to kirby","archived":false,"fork":false,"pushed_at":"2015-07-10T13:43:05.000Z","size":200,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-26T08:12:53.125Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thisislawatts.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.mdown","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-12T05:23:33.000Z","updated_at":"2022-11-09T05:24:22.000Z","dependencies_parsed_at":"2023-03-31T13:06:28.128Z","dependency_job_id":null,"html_url":"https://github.com/thisislawatts/kirby-picture","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisislawatts%2Fkirby-picture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisislawatts%2Fkirby-picture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisislawatts%2Fkirby-picture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisislawatts%2Fkirby-picture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thisislawatts","download_url":"https://codeload.github.com/thisislawatts/kirby-picture/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244794946,"owners_count":20511516,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-10-13T22:07:38.037Z","updated_at":"2025-03-21T11:44:43.158Z","avatar_url":"https://github.com/thisislawatts.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Picture Plugin\n\n## What is it?\n\nThe picture plugin makes it easy to include smaller, resized versions of your images in your pages without adding extra code or uploading smaller versions yourself. \n\n## Installation \n\nPut the picture/ directory in your site/plugins folder. Add the plugins folder if it isn't there yet. Add a pictures folder to the root dir of your site and make sure it is writable. If you want to change the location of your picture cache folder read more about the available default settings further down. \n\nBe sure to include the bundled version of picturefill.js in the head of your document.\n\n\t\u003c?php echo js('site/plugins/kirby-picture/js/picturefill.min.js'); ?\u003e\n\n## How to use it?\n\n\t\u003c?php picture($image); ?\u003e\n\n## Available settings\n\nYou can add the following config variables to your config file (site/config/config.php) to adjust the default settings of the thumb plugin:\n\n```php\n    c::set('picture.cache.root', c::get('root') . '/pictures');\n    c::set('picture.cache.url', '/pictures');\n    c::set('picture.quality', 100);\n    c::set('picture.ajax', true);\n    c::set('picture.breakpoints', array(\n\t    array(\n\t      'width'      =\u003e 1600,\n\t      'height'     =\u003e 1600,\n\t    ),\n\t    array(\n\t      'width'      =\u003e 1280,\n\t      'height'     =\u003e 1280,\n\t    ),\n\t    array(\n\t      'width'      =\u003e 800,\n\t      'height'     =\u003e 800,\n\t    ),\n\t    array(\n\t      'width'      =\u003e 400,\n\t      'height'     =\u003e 400,\n   ) ) );\n```\n\n\n## Requirements\n\nYou must have GD Lib installed on your server for this plugin to work. \n\t    \n## Author\nLuke Watts\n\u003chttp://thisis.la\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisislawatts%2Fkirby-picture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthisislawatts%2Fkirby-picture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisislawatts%2Fkirby-picture/lists"}