Weave Code
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 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.

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.
codraw/framework-extra-bundle
codraw/messenger
codraw/security
codraw/mailer
codraw/contracts
codraw/profiling
codraw/dependency-injection
codraw/tester
codraw/core
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony