{"id":29020262,"url":"https://github.com/webdna/imageshop","last_synced_at":"2025-08-17T16:17:44.755Z","repository":{"id":61239464,"uuid":"548895702","full_name":"webdna/ImageShop","owner":"webdna","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-11T14:52:02.000Z","size":1795,"stargazers_count":1,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-26T01:04:59.452Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webdna.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-10-10T11:00:06.000Z","updated_at":"2024-12-19T14:52:40.000Z","dependencies_parsed_at":"2024-09-06T13:34:51.185Z","dependency_job_id":"b921fcfa-c159-4304-94b8-fdd39568de66","html_url":"https://github.com/webdna/ImageShop","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"e902b8a5e9f41d686930cbf32b1e5c7e5f4e04ca"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/webdna/ImageShop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdna%2FImageShop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdna%2FImageShop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdna%2FImageShop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdna%2FImageShop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webdna","download_url":"https://codeload.github.com/webdna/ImageShop/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdna%2FImageShop/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270871678,"owners_count":24660248,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"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":"2025-06-26T01:04:57.988Z","updated_at":"2025-08-17T16:17:44.731Z","avatar_url":"https://github.com/webdna.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Official Imageshop plugin for Craft CMS\n\nThis official plugin integrates [Imageshop Digital Asset Management system](https://www.imageshop.org) with Craft CMS by exposing\ntheir image selector as a popup that saves the selected image data in a field so the selection\ncan be used in twig templates.\n\n\n\n ![Screenshot](./screenshot.png)\n\n\n# Installation\n\nTo install the plugin, follow these instructions.\n\n- Open your terminal and go to your Craft project:\n\n````\ncd /path/to/project\n````\n\n- Then tell Composer to load the plugin:\n\n```\ncomposer require webdna/imageshop-dam\n```\n\n- In the Control Panel, go to Settings → Plugins and click the “Install” button for 'Imageshop'.\n\nOR do it via the command line\n\n```\nphp craft plugin/install imageshop-dam\n```\n\n- On the settings page, fill out the token and private key field to start using the plugin.\n\n- You will now have access to the \"Imageshop\" in the Field type dropdown on the field creation page.\n\n\n\n## Templating:\n\n\n### Plain and simple\n\nNote: Just like templating an assets field, the field will always return an array.\n\n```twig\n\u003cimg src=\"{{ entry.imageshopField|first.url }}\" alt=\"{{ entry.imageshopField|first.filename }}\"\u003e\n```\n\n### Multiple images\n```twig\n{% for image in entry.imageshopField %}\n    \u003cimg src=\"{{ image.url }}\" alt=\"{{ image.filename }}\"\u003e\n{% endfor %}\n```\n\n### Using Imager\n\n## Single size\n\n```twig\n{% set image = craft.imager.transformImage(entry.imageshopField.url, { width: 400 }) %}\n\u003cimg src=\"{{ image.url }}\"\u003e\n```\n\n\n## Multiple sizes\n```twig\n{% set transforms = craft.imager.transformImage(\n    entry.imageshopField.url,\n    [\n        { width: 200 },\n        { width: 800 },\n        { width: 1200 },\n        { width: 1920 }\n    ]\n    ) %}\n\n{% for image in transforms %}\n    \u003cimg src=\"{{ image.url }}\" width=\"{{ image.width }}\" style=\"width: auto;margin: 20px;\"\u003e\n{% endfor %}\n```\n\n\n## Responsive images with srcset\n\n```twig\n{% set transformedImages = craft.imager.transformImage(image,[\n        { width: 1920, jpegQuality: 90, webpQuality: 90 },\n        { width: 1200, jpegQuality: 75, webpQuality: 75 },\n        { width: 800, jpegQuality: 75, webpQuality: 75 },\n        { width: 400, jpegQuality: 65, webpQuality: 65 },\n    ]) %}\n\n\u003cimg srcset=\"{{ craft.imager.srcset(transformedImages) }}\"\u003e\n```\n\n\n\n\n### Available attributes\n\n```imageshopField``` is the name of the field in these examples.\n\n ```twig\nCode:           {{ entry.imageshopField.code }}\nImage:          {{ entry.imageshopField.image }}\nTags:           {{ entry.imageshopField.tags(\"no\") | join(\", \") }}\nTitle:          {{ entry.imageshopField.title }}\nRights:         {{ entry.imageshopField.rights }}\nDescription:    {{ entry.imageshopField.description }}\nCredit:         {{ entry.imageshopField.credits }}\nDocumentId:     {{ entry.imageshopField.documentId }}\nRaw:            {{ entry.imageshopField.json | json_encode(constant(\"JSON_PRETTY_PRINT\")) }}\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdna%2Fimageshop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebdna%2Fimageshop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdna%2Fimageshop/lists"}