{"id":13677836,"url":"https://github.com/FriendsOfShopware/FroshPlatformThumbnailProcessor","last_synced_at":"2025-04-29T12:32:00.298Z","repository":{"id":36694567,"uuid":"229497393","full_name":"FriendsOfShopware/FroshPlatformThumbnailProcessor","owner":"FriendsOfShopware","description":"This shopware6 plugin allows you to use variable thumbnails - on the fly. Including lazy loading.","archived":false,"fork":false,"pushed_at":"2024-04-23T20:00:29.000Z","size":876,"stargazers_count":16,"open_issues_count":0,"forks_count":12,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-01T15:31:35.444Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FriendsOfShopware.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG_en-GB.md","contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2019-12-21T23:56:00.000Z","updated_at":"2024-08-18T20:00:29.874Z","dependencies_parsed_at":"2023-11-13T21:31:02.858Z","dependency_job_id":"18242220-2839-4f3d-9353-7e24aecadee4","html_url":"https://github.com/FriendsOfShopware/FroshPlatformThumbnailProcessor","commit_stats":{"total_commits":151,"total_committers":10,"mean_commits":15.1,"dds":0.0927152317880795,"last_synced_commit":"58d49b2368b6046d70feda4d0993b73e5f054b85"},"previous_names":[],"tags_count":49,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FriendsOfShopware%2FFroshPlatformThumbnailProcessor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FriendsOfShopware%2FFroshPlatformThumbnailProcessor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FriendsOfShopware%2FFroshPlatformThumbnailProcessor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FriendsOfShopware%2FFroshPlatformThumbnailProcessor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FriendsOfShopware","download_url":"https://codeload.github.com/FriendsOfShopware/FroshPlatformThumbnailProcessor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224173209,"owners_count":17268068,"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-08-02T13:00:47.731Z","updated_at":"2024-11-11T20:30:25.802Z","avatar_url":"https://github.com/FriendsOfShopware.png","language":"PHP","funding_links":[],"categories":["Plugins"],"sub_categories":["Speed Optimizations"],"readme":"# Thumbnail Processor for Shopware 6\n\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md) [![Shopware Store](https://img.shields.io/badge/shopware-store-blue.svg?style=flat-square)](https://store.shopware.com/en/frosh69611263569f/thumbnailprocessor-plugin.html)\n\nThis plugin allows you to use variable thumbnails, if your filesystem (or storage-adapter) supports it.\nSo you [don't need modern file formats](https://blog.tinect.de/posts/you-might-not-need-thumbnails-or-modern-image-format/).  \nBesides the benefits for using it in live shops, you can use this also in development-systems, if you don't want thumbnails to be created.  \nIt will add parameters to original image paths.  \nSo you are able to save storage and add new thumbnails on the fly.\n\n| Plugin version \t     | Shopware version  | Branch            |\n|----------------------|-------------------|-------------------|\n| 5.*                  | Min. 6.6          | [main](https://github.com/FriendsOfShopware/FroshPlatformThumbnailProcessor)                 |\n| 4.* - 3.0.0          | Min. 6.5          | [v4](https://github.com/FriendsOfShopware/FroshPlatformThumbnailProcessor/tree/v4)                 |\n| 2.* - 1.0.16       \t | Min. 6.4          | [v2](https://github.com/FriendsOfShopware/FroshPlatformThumbnailProcessor/tree/v2)                 |\n| 1.0.15 - 1.0.6     \t | Min. 6.3          |                   |\n| 1.0.5 - 1.0.0     \t  | Min. 6.0          |                   |\n\n\n## Install\n\nDownload the plugin from the release page and enable it in Shopware.\n\n### By composer\n\n`composer require frosh/platform-thumbnail-processor`\n\n### From source\n\nRun `npm install` in `src/Resources/app/storefront` within the plugin directory\n\n### By zip\n\ndownload latest release and upload into admin:\nhttps://github.com/FriendsOfShopware/FroshPlatformThumbnailProcessor/releases/latest/download/FroshPlatformThumbnailProcessor.zip\n\n## Usage\nWhile active, this will access all thumbnails variable from original image. The thumbnail-files won't be needed anymore.\n\n````\ne.g.:\nhttps://www.example.com/thumbnail/01/82/69/sasse_200x200.png\n becomes:\nhttps://www.example.com/media/01/82/69/sasse.png?width=200\n````\nYou can edit the thumbnail-template within the plugin-config. Defaults `{mediaUrl}/{mediaPath}?width={width}`.\nAvailable variables with examples:\n* {mediaUrl}: https://www.example.com/\n* {mediaPath}: media/01/82/69/sasse.png\n* {width}: 800\n* {mediaUpdatedAt}: 1716882050 (unix timestamp) or 0\n\nFeel free to decorate `ThumbnailUrlTemplateInterface` to add more individual functions like [signed imgproxy](https://github.com/FriendsOfShopware/FroshPlatformThumbnailProcessorImgProxy)\n\n## Removing unneeded thumbnails\nYou may want to delete folder `thumbnails` within folder `public`.\nIf needed, you could create redirects on your web server for old paths.\nExample for Apache .htaccess: `RewriteRule ^thumbnail/(.*)_\\d+x\\d+.(.*)$ https://cdn.myshop.com/media/$1.$2 [L,R=301]`, consult their docs for more details.\n\n## Adding more thumbnail sizes:\n- Save new size in the folder of the media management\n- (no more needed from version 3.0.2) run the command `bin/console media:generate-thumbnails` on the console to update the thumbnails for all images in the database\n- Clear shop cache\n\n## Find Patterns\n\nYou can find patterns in [GitHub Discussions in category Patterns](https://github.com/FriendsOfShopware/FroshPlatformThumbnailProcessor/discussions/categories/patterns)\n\n## Uninstall\n\nAfter uninstalling plugin you have to run `bin/console media:generate-thumbnails -strict` to generate the thumbnails-files on disk.\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFriendsOfShopware%2FFroshPlatformThumbnailProcessor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFriendsOfShopware%2FFroshPlatformThumbnailProcessor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFriendsOfShopware%2FFroshPlatformThumbnailProcessor/lists"}