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.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.2.0

What's Changed

  • Add url parameter to <x-og-image> component, allowing you to pass an existing image URL directly instead of generating one via screenshot

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

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
1.0.0
  • Stable release
  • Fixed incorrect method names in documentation
  • Fixed overridable method listings in customizing actions documentation
  • Added middleware auto-registration note to installation docs

Full Changelog: https://github.com/spatie/laravel-og-image/compare/0.0.3...1.0.0

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.
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log