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

Laravel Og Image Laravel Package

spatie/laravel-og-image

Generate Open Graph images for your Laravel app by defining OG image HTML inline in Blade views. The package screenshots them, serves them via a dedicated route, and caches them on disk, inheriting your existing CSS, fonts, and Vite assets.

View on GitHub
Deep Wiki
Context7
1.3.2

Don't compile user content (like [@each](https://github.com/each) or {{ }} in a title) in the og-image component as Blade (#12)

1.3.1

This release re-publishes the fixes from 1.1.3 and 1.1.4 under a version that correctly supersedes 1.3.0. Those two tags were accidentally numbered below 1.3.0, so Composer kept resolving the older 1.3.0 as the latest stable release. No code was lost: this tag includes the Laravel 13 support from 1.3.0 together with the query parameter handling fixes.

What's Changed

Full Changelog: https://github.com/spatie/laravel-og-image/compare/1.3.0...1.3.1

1.1.4

What's Changed

Full Changelog: https://github.com/spatie/laravel-og-image/compare/1.1.3...1.1.4

1.1.3

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-og-image/compare/1.3.0...1.1.3

1.1.2

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-og-image/compare/1.1.1...1.1.2

1.1.1

What's Changed

  • Fix fallback cache poisoning by non-HTML responses

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.

1.1.0

What's new

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

1.0.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:

  • Define OG images as Blade HTML, the package handles the rest
  • Automatic meta tag injection via middleware
  • Content-hashed URLs for reliable CDN caching
  • Fallback images for pages without explicit OG templates
  • Preview mode with ?ogimage for easy debugging
  • Support for Browsershot and Cloudflare Browser Rendering
  • Customizable actions, formats, dimensions, and storage

Happy sharing!

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.
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log
hsluv/hsluv
seampact/codegen
seampact/hooks
seampact/ir
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table
siberfx/flysystem-wasabi
hollyit/token-replace
ippanelcom/laravel-sdk