vormkracht10 / laravel-open-graph-image Goto Github PK
View Code? Open in Web Editor NEWDynamically create Open Graph images for your website
License: MIT License
Dynamically create Open Graph images for your website
License: MIT License
Hi,
First of all, thank you for this very useful package!
Is it possible to retrieve the image via File Storage? In particular, to be able to use the twitter API with the image generated by laravel-open-graph-image.
It would be necessary to be able to force the generation of the image and then retrieve the image path.
Thanks
Hi all,
We are currently using this package to generate custom Open Graph images in combination with Inertia.js SSR. The package works on my local environment, but deploying this package to AWS via Laravel Vapor, the generated URL gives me 403 Forbidden.
I have installed open-graph-image via php artisan. Did I miss anything in my setup?
Kind regards.
I have just installed the library according to documentation, but the url in og:image returns laravel error page with this error:
The command "PATH=$PATH:/usr/local/bin:/opt/homebrew/bin NODE_PATH=npm root -g
node '/var/www/html/vendor/spatie/browsershot/src/../bin/browser.cjs' '{"url":"file:///tmp/1418125068-0702841001699025455/index.html","action":"screenshot","options":{"type":"jpeg","quality":80,"args":["--no-sandbox"],"viewport":{"width":1200,"height":630},"displayHeaderFooter":false}}'" failed. Exit Code: 1(General error) Working directory: /var/www/html/public Output: ================ Error Output: ================ �[1m�[43m�[30m Puppeteer old Headless deprecation warning:�[0m�[33m In the near future headless: true
will default to the new Headless mode for Chrome instead of the old Headless implementation. For more information, please see https://developer.chrome.com/articles/new-headless/. Consider opting in early by passing headless: "new"
to puppeteer.launch()
If you encounter any bugs, please report them to https://github.com/puppeteer/puppeteer/issues/new/choose.�[0m Error: Could not find Chrome (ver. 119.0.6045.105). This can occur if either 1. you did not perform an installation before running the script (e.g. npm install
) or 2. your cache path is incorrectly configured (which is: /home/sail/.cache/puppeteer). For (2), check out our guide on configuring puppeteer at https://pptr.dev/guides/configuration. at ChromeLauncher.resolveExecutablePath (/var/www/html/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ProductLauncher.js:298:27) at ChromeLauncher.executablePath (/var/www/html/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.js:204:25) at ChromeLauncher.computeLaunchArguments (/var/www/html/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.js:97:37) at async ChromeLauncher.launch (/var/www/html/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ProductLauncher.js:79:28) at async callChrome (/var/www/html/vendor/spatie/browsershot/bin/browser.cjs:92:23)
Currently tests cannot be written because Pest does not seem to be configured correctly. When using a Facade for example the tests fail due the following error:
A facade root has not been set.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.