{"id":18809009,"url":"https://github.com/lesaff/statamic-imageinfo","last_synced_at":"2026-01-10T02:30:14.060Z","repository":{"id":31919062,"uuid":"35488328","full_name":"lesaff/statamic-imageinfo","owner":"lesaff","description":null,"archived":false,"fork":false,"pushed_at":"2016-01-26T13:43:03.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-29T22:36:46.653Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/lesaff.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2015-05-12T13:07:01.000Z","updated_at":"2016-05-29T13:29:57.000Z","dependencies_parsed_at":"2022-07-26T04:18:35.875Z","dependency_job_id":null,"html_url":"https://github.com/lesaff/statamic-imageinfo","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/lesaff%2Fstatamic-imageinfo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lesaff%2Fstatamic-imageinfo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lesaff%2Fstatamic-imageinfo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lesaff%2Fstatamic-imageinfo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lesaff","download_url":"https://codeload.github.com/lesaff/statamic-imageinfo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239743047,"owners_count":19689427,"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-11-07T23:14:56.557Z","updated_at":"2026-01-10T02:30:14.021Z","avatar_url":"https://github.com/lesaff.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Image Info Add-on for Statamic\nBy Rudy Affandi (2015)\n\nVersion 1.0.3\n\n## What is this?\nUse this plugin/modifier to get meta information from any given image\n\n## Changelog\n- 1.0.3 - Added modifier option\n- 1.0.2 - Fixed issue with displaying images from array\n- 1.0.1 - Added all available meta information from getimagesize()\n- 1.0.0 - Initial release\n\n## Installation\nCopy the 'imageinfo' folder to the '_add-ons' folder in your Statamic website.\n\n## How to use\n\n### As a modifier\n`{{ image|imageinfo:width }}`\n\nreturns `500`\n\n`{{ image|imageinfo:dimension }}`\n\nreturns `width=\"500\" height=\"300\"`\n\n*Available parameter*\n- `src`: The image url\n- `width` returns the width of image\n- `height` returns the height of image\n- `dimension` returns `width=\"XX\" height=\"YY\"`\n- `bits` returns the number of bits for each color\n- `channel` returns either `3` for RGB, or `4` for CMYK\n- `mime` returns image mime type\n\n### As a plugin\n```\n{{ imageinfo src=\"{ image }\" }}\n  \u003cimg src=\"{{ image }}\" {{ dimension }} alt=\"\" /\u003e\n{{ /imageinfo }}\n```\n\nreturns\n\n  `\u003cimg src=\"/assets/img/image.png\" width=\"500\" height=\"500\" alt=\"\" /\u003e`\n\nor\n```\n{{ imageinfo src=\"/assets/img/image.png\" }}\n  \u003cimg src=\"/assets/img/image.png\" width=\"{{ width }}\" height=\"{{ height }}\" alt=\"my Image\" /\u003e\n{{ /imageinfo }}\n```\n\nreturns\n\n`\u003cimg src=\"/assets/img/image.png\" width=\"500\" height=\"300\" alt=\"my Image\" /\u003e`\n\n*Parameter*\n- `src`: The image source\n\n*Available tag output*\n- `src`: The image url\n- `width` returns the width of image\n- `height` returns the height of image\n- `dimension` returns `width=\"XX\" height=\"YY\"`\n- `bits` returns the number of bits for each color\n- `channel` returns either `3` for RGB, or `4` for CMYK\n- `mime` returns image mime type\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flesaff%2Fstatamic-imageinfo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flesaff%2Fstatamic-imageinfo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flesaff%2Fstatamic-imageinfo/lists"}