spatie/laravel-og-image
Generate Open Graph images in Laravel from Blade-defined HTML. Automatically renders screenshots, serves them from a route, and caches files. Templates reuse your app’s CSS, fonts, and Vite assets—no external API required.
Full Changelog: https://github.com/spatie/laravel-og-image/compare/1.1.1...1.1.2
When a non-HTML response (such as an RSS/Atom feed) was processed by the middleware with a fallback registered, storeInCache() was called before verifying the template was actually injected. Since non-HTML responses lack a </body> tag, the injection silently failed but the cache entry persisted with the wrong URL. Because all fallback pages share the same content hash, this poisoned the cache permanently.
The fix moves storeInCache() to after the injection attempt and only executes it when the template was successfully injected.
Added a Laravel Boost skill so AI agents (Claude Code, Cursor, GitHub Copilot, etc.) can generate correct code when working with this package. The skill is automatically available when you have both this package and Laravel Boost installed.
Full Changelog: https://github.com/spatie/laravel-og-image/compare/1.0.0...1.1.0
laravel-og-image has reached 1.0.0! 🎉🥳🍾
This package lets you define Open Graph images as HTML in your Blade views and automatically screenshots them to generate the actual image files. Social platforms like Twitter, Facebook, and LinkedIn will display these images when your links are shared.
Highlights:
?ogimage for easy debuggingHappy sharing!
Full Changelog: https://github.com/spatie/laravel-og-image/compare/0.0.2...0.0.3
Full Changelog: https://github.com/spatie/laravel-og-image/compare/0.0.1...0.0.2
How can I help you explore Laravel packages today?