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.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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport