Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Statamic Asset Thumbnails

Statamic Asset Thumbnails Laravel Package

daun/statamic-asset-thumbnails

A Statamic addon that generates and caches thumbnails for your assets, letting you serve properly sized, optimized images in templates and the control panel. Define thumbnail presets in config and reference them with a simple tag instead of hand-building image URLs.

View on GitHub
Deep Wiki
Context7

Generate asset thumbnails for exotic file formats like videos, raw photos, audio files and documents

Frequently asked questions about Statamic Asset Thumbnails
How do I install and configure daun/statamic-asset-thumbnails?
Install the addon with Composer, then publish its configuration file if the package provides one. Define your reusable thumbnail presets in config and reference those preset names from your templates. The addon is designed as a lightweight Statamic addon with no external service required, so setup is mainly Composer and config.
Does this package work with both Antlers and Blade templates?
Yes, the package is described as template-friendly for both Antlers and Blade. You define thumbnail presets and request them from templates instead of manually building image variant URLs. This keeps image sizing consistent across both templating approaches.
How do thumbnail presets work and can I define custom sizes?
Thumbnail presets are reusable configuration entries that define dimensions and fit or crop behavior. You create presets for the image sizes your site needs and reference the preset by name in templates. This avoids hand-building URLs and keeps responsive image workflows consistent.
Are generated thumbnails cached and reusable?
Yes, the addon is designed to keep generated thumbnails cacheable and reusable. Once a thumbnail has been generated for an asset and preset, it can be served again without recreating the variant manually. This helps avoid repeated image processing work in templates and the control panel.
Does it require an external image service such as Imgix or Cloudinary?
No, the overview states that it is a lightweight setup with no external service required. Thumbnails are generated and served through the Statamic addon itself. That makes it a simpler option if you want preset-based thumbnails without adding a third-party image CDN.
Which Statamic and Laravel versions are supported?
The provided context does not list a specific Statamic or Laravel version matrix. Check the package composer.json and README for the supported Statamic, Laravel, and PHP constraints before adopting it. Because it is a Statamic addon, confirm compatibility with your Statamic major version first.
How does the addon handle missing assets or failed thumbnail generation?
The release notes indicate that version 1.2.1 adds guarding for missing assets, which should make missing-asset behavior safer than earlier releases. The exact behavior, such as logging, skipping, or throwing an exception, should be verified in the README and by testing your templates. Review any existing error handling if you depend on specific exception types.
Can I use it with Statamic asset containers on local disks or S3?
The addon works with Statamic’s asset container structure, so it is intended to fit normal Statamic asset workflows. Actual storage and caching behavior depends on how your containers and filesystem disks are configured. Test generation and serving against your target disk, especially for remote storage such as S3.
Is this addon suitable for production use and how should I test it?
It is designed to be lightweight and cacheable, which suits typical production image workflows. Before deploying, test thumbnail generation with representative assets, including large images and missing files. Confirm that your cache and filesystem permissions allow generated thumbnails to be written and served correctly.
What are alternatives to this addon for generating thumbnails in Statamic?
Alternatives include Statamic’s built-in image manipulation features, manually defined asset variants, or an external image CDN such as Imgix or Cloudinary. This addon is aimed at teams that want reusable preset names in Antlers and Blade without an external service. Choose based on whether you need local caching, CDN delivery, or more advanced transformation features.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core