Тёмный

Generate Images Programmatically on the Edge 

Beyond Fireship
Подписаться 389 тыс.
Просмотров 142 тыс.
50% 1

A new tool from Vercel called OG can generate images on the edge for Open Graph with some basic JavaScript. This can be a great way to improve SEO and the clickability of links shared on social media.
Try out my Next.js Course fireship.io/courses/react-nex...
Vercel OG vercel.com/blog/introducing-v...

Опубликовано:

 

11 окт 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 144   
@Exilum
@Exilum Год назад
One day someone needs to create a wizard tool to figure out what framework and libraries to use depending on what you need to do. How awesome would it be to get from thousands of possibilities to a few and picking the one you're the most familiar with.
@themisir
@themisir Год назад
The tool would become deprecated a minute after being published by not being able to catch up to the speed of js ecosystem evolution.
@faceboy1392
@faceboy1392 Год назад
@@themisir a new javascript framework every hour
@keent
@keent Год назад
i will make a JS framework that does exactly this, determines what framework to use. Honestly that's genius...
@Exilum
@Exilum Год назад
@@keent I wish I could put a Jeremy Clarkson clip there.
@tnvmadhav2442
@tnvmadhav2442 Год назад
I built this for myself and now happy that there’s now a faster implementation 😅
@louiscassany
@louiscassany Год назад
Another piece of gold, nice work man!
@0x5DA
@0x5DA Год назад
a video on fleet please!
@jordanmckoy1935
@jordanmckoy1935 Год назад
I second this tried it out and I LOVE the UI
@bigboyballer4204
@bigboyballer4204 Год назад
@@jordanmckoy1935 love the git integration
@0x5DA
@0x5DA Год назад
@@jordanmckoy1935 ikr! quick to boot also, and the language integration feels really awesome
@MH_VOID
@MH_VOID Год назад
Please no. It currently is unethical and they do not plan to change that. Don't draw any attention to the abomination
@phucnguyen0110
@phucnguyen0110 Год назад
@@MH_VOID wdym?
@ste-fa-no
@ste-fa-no Год назад
Already 100k, congrats for another success, and thank you for keeping up with great content!
@StephenGillie
@StephenGillie Год назад
The real magic here is the JSX to SVG library. The rest is just routing.
@ByteBound
@ByteBound Год назад
Great video! Perfect timing 👏
@blueguy5588
@blueguy5588 Год назад
This is awesome, thanks. Vercel does an amazing job with Next.
@husseinkizz
@husseinkizz Год назад
I sometimes think this guy is a sorcerer, how does he digest new tech that quick and sell it to us in an undeniable fashion???
@husseinkizz
@husseinkizz Год назад
yep we got em!
@zacharystudio
@zacharystudio Год назад
this is incredible and exactly what i was looking for. really appreciate you 🙏🏻
@idan5930
@idan5930 Год назад
This is GOLD. Thank you!
@whitetoggled5546
@whitetoggled5546 Год назад
I was just trying to figure this out for my site. Thanks
@xylvnking
@xylvnking Год назад
I literally googled this topic today. thank u fireship
@XceptionalBro
@XceptionalBro Год назад
Great video man Lately I've been developing a serverless function to modify the open graph meta attributes of a url for a SPA. I think that'd make a nice video!
@StephenGillie
@StephenGillie Год назад
Open graph servers don't usually parse Javascript, let alone evaluate it. How do you modify the flat HTML? If I knew, I'd add it to my serverless framework.
@triminhtruong251
@triminhtruong251 Год назад
Such cool thing worths trying. Thanks
@lord_yzal
@lord_yzal Год назад
You the OG Dawg 🔥
@sharbelokzan9673
@sharbelokzan9673 Год назад
"Fleet, VSCode killer?" Really like to see that as a video title ;)
@JaimitoAleman
@JaimitoAleman Год назад
Fleet does not intend to be a VS Code Killer. They are just expanding their software line-up. VS Code will always be free, but Fleet will NOT!
@JaimitoAleman
@JaimitoAleman Год назад
BTW: GREAT software will always have a value - thus JetBrains will not release Fleet as free, because that is not its "market niche".
@JorgetePanete
@JorgetePanete Год назад
​@@JaimitoAleman "great __ will always have a value" is a flawed vision of a good future
@heroe1486
@heroe1486 Год назад
@@JorgetePanete Not like vim and Emacs and derivatives has been free for 30-40 years
@saxa1
@saxa1 Год назад
OMG! Thank you so much bro!
@other_perfection
@other_perfection Год назад
Vercel is on fire🔥🔥🔥
@Gelo2000origami
@Gelo2000origami Год назад
Wow this is almost exactly what I was looking for (was thinking of using image magick before). I wanted to do simple overlays and it should be easy with this
@razorjhon2622
@razorjhon2622 Год назад
THANK U SO MUCH FOR THIS !!!!!!
@trickeddev
@trickeddev Год назад
vercel great as always
@andrisoone
@andrisoone Год назад
Really cool!
@KevinArellano
@KevinArellano Год назад
I manually made this in Vue like a boss xd
@rayhankessal6976
@rayhankessal6976 Год назад
Hi im glad to be here
@toastrecon
@toastrecon Год назад
Awesome!
@yan2410
@yan2410 Год назад
Thank's man
@frittex
@frittex Год назад
amazing
@alexanderhorner
@alexanderhorner Год назад
Just learned about Nuxt Image like a few days ago
@JohnnyMayHymn
@JohnnyMayHymn Год назад
it seems like someone could take this to make something similar to flash games, back in the day
@4.0.4
@4.0.4 Год назад
You know you can run not just games but the entire Godot IDE in the browser right?
@caenir
@caenir Год назад
@@chelbez Try googling next time. Seems like you can.
@omfg1tsm1chaeln
@omfg1tsm1chaeln Год назад
Can you use Tailwind for styling the dynamic image?
@Thoscellen
@Thoscellen Год назад
Nice egg about cyberpunk edge runner :p
@victorsaisse1340
@victorsaisse1340 Год назад
Awesome
@Mitsunee_
@Mitsunee_ Год назад
I was this close to refreshing my PHP knowledge to make this happen myself... now I don't even need to bother with that because there's a way better solution now lol
@DogeMultiverse
@DogeMultiverse Год назад
Couldn't you do this with vanilla js+html?
@shateq
@shateq Год назад
Pre 10k sub club
@Paul-sk3cd
@Paul-sk3cd Год назад
Will you create a Nuxt 3 course when it will be a stable release?
@narrei666
@narrei666 Год назад
original gangster jeff
@klutch4198
@klutch4198 Год назад
Let's gooooo
@heroe1486
@heroe1486 Год назад
So it's just a library to get an SVG on the fly given some html/css ? I'm surprised nobody has done that before but thanks for the discovery, might be useful !
@skylerockspecial
@skylerockspecial Год назад
It uses jsx and the react native layout engine (yoga) to generate svg’s and then rasterises the svg into a png. The standard before this was to spin up a headless chrome browser and take a “screenshot” with puppeteer. The part that renders jsx as svg is called satori The part that renders svg to png is called resvg
@codesymphony
@codesymphony Год назад
game changer
@69bruh
@69bruh Год назад
Nice firedaddy
@DerTim
@DerTim Год назад
Would like to use it in an internal project, does it need to connect to vercel in order to generate the Image? Or can I do this offline?
@andrillaf
@andrillaf 11 месяцев назад
This is great, but it doesn't translate well to the app directory. Can you make one for the app directory?
@E-Codz
@E-Codz Год назад
Does it work without Next.js too?
@jacobwhitehead
@jacobwhitehead Год назад
For some reason when implementing this I just get a blank image shown at the api route
@rynexakil7443
@rynexakil7443 Год назад
is it the same way with angular and Ts?
@pascalg2339
@pascalg2339 Год назад
Please do a video on jetpack compose
@alex222kyselov
@alex222kyselov Год назад
Does it need to be hosted in Vercel environment?
@lucascito_037
@lucascito_037 Год назад
The W
@Nodsaibot
@Nodsaibot Год назад
imagemagick has done this since forever
@heroe1486
@heroe1486 Год назад
From html/css ? I guess that's the appeal here
@Nodsaibot
@Nodsaibot Год назад
@@heroe1486 yes, takes a "screenshot"
@dlandsvolka4046
@dlandsvolka4046 Год назад
shesshh
@bithmar2
@bithmar2 Год назад
Canb this generate any sort of images or only open graph?
@Tony-dp1rl
@Tony-dp1rl Год назад
Kinda feels like Software Engineering has jumped the shark, using a 50MB instance of Chrome browser in a serverless function to create ... wait for it ... a simple SVG image. LOL
@tacklemcclean
@tacklemcclean Год назад
Can you run this on your own server as well or only on Vercel?
@ivanjermakov
@ivanjermakov Год назад
You can see the api running on localhost at 0:51
@heroe1486
@heroe1486 Год назад
He's running it on his local machine so yes, and you can probably run this even outside of NextJS
@GamBar64
@GamBar64 Год назад
What about canvas?
@hugo-garcia
@hugo-garcia Год назад
Now we know how to do on the Edge we want to know how to Generate Images Programmatically on the Chrome
@masterkhoa
@masterkhoa Год назад
this looks sick, too bad I'm stuck with Netlify now
@davidnotonstinnett
@davidnotonstinnett Год назад
Dynamic Mages
@vaisakhkm783
@vaisakhkm783 Год назад
first you sounded like a text-to-speech coverter.. but anyway, 😆 now we can use this to automate making of video thumbnail...
@tranquillityEnthusiast
@tranquillityEnthusiast Год назад
Your courses needs to get updated in fireship.
@saadaws1772
@saadaws1772 Год назад
Fleet review
@deefdragon
@deefdragon Год назад
I still hate that SSR is required for doing basically any embedding or meta tag stuff nowadays. Would love if I could just say and have that URL handle things.
@rydonahue1
@rydonahue1 Год назад
Could this also be used to serve dynamic images with a Discord bot?
@ulrich-tonmoy
@ulrich-tonmoy Год назад
I think beyond fireship video should be more details and more lengthy whereas the fire video should be like 100 secs
@tcoa04dineshkumar8
@tcoa04dineshkumar8 Год назад
It's not new I am using this feature from 2021, but there no package from next until now
@aronep6
@aronep6 Год назад
Og og og, je protège mon gang et mon lobby !
@thet0ast3r
@thet0ast3r Год назад
well couldnt you do that with a cloudflare worker for years?
@ThomasValadez-tv
@ThomasValadez-tv Год назад
Does anyone know of tools to help with this without using next?
@yogenp
@yogenp Год назад
Noice.
@MistaSmith
@MistaSmith Год назад
Why not just write the SVG?
@ItClonesComment
@ItClonesComment Год назад
whats wrong with me, i only hear background noises
@cikougo
@cikougo Год назад
Wtf today I was just wondering how this can be done! I guess now I know.
@MASTERISHABH
@MASTERISHABH Год назад
As far as I know, OG images doesn't support SVG format. Not sure, how they're doing though.
@theindieprogrammer
@theindieprogrammer Год назад
They convert it to png
@MASTERISHABH
@MASTERISHABH Год назад
@@theindieprogrammer Ok,so do they first convert HTML to SVG then to PNG?
@theindieprogrammer
@theindieprogrammer Год назад
@@MASTERISHABH Yes, they made this Satori library to convert HTML and CSS to SVG, then they use puppeteer to make a screenshot of the result
@mmaaz403
@mmaaz403 Год назад
@@theindieprogrammer Nopes, after getting svg they use resvg lib to convert it to a png
@theindieprogrammer
@theindieprogrammer Год назад
@@mmaaz403 That's correct, I got confused with their old og-image implementation, which uses a chromium instance.
@developerpranav
@developerpranav Год назад
So now Jeff can create videos as code with Remotion, thumbnails as code with OG. Now if only there was a trained model for Jeff's voice, which can read out video scripts with memes created by (INSERT NEXT HOT JS LIBRARY HERE).
@NithinJune
@NithinJune Год назад
A video on discords full stack plzzz
@AByteofCode
@AByteofCode Год назад
Figma supremacy
@theBidon
@theBidon Год назад
Who is fireship?
@TypedefDev
@TypedefDev Год назад
Wow! no need to create dynamic svgs
@daleryanaldover6545
@daleryanaldover6545 Год назад
It is a package to create dynamic svgs tho
@achalxyz
@achalxyz Год назад
OG, which stands for Original Gangster. 😂😂
@DavidMulderOne
@DavidMulderOne Год назад
Why o why would you define an image in HTML rather than SVG? 🥺🥺 I mean, I get that if you're in a rush and unfamiliar with SVG it might take longer to learn... so I guess there might be valid use cases for it... but it definitely isn't something that sounds sensible for a 'mature' product?
@GbpsGbps-vn3jy
@GbpsGbps-vn3jy Год назад
So this is the JSON way to spawn CSS shit, yes?
@ricardocnn
@ricardocnn Год назад
Waiting for Vue3 and Nuxt3 videos
@ScriptureFirst
@ScriptureFirst Год назад
Trade compute f bandw... Hmm
@mimashator
@mimashator Год назад
SVG mark-up isn't that complicated
@gedalyahreback2133
@gedalyahreback2133 Год назад
Sounds good, but the pattern of the image will eventually and quickly become recognizable and generic.
@YuriG03042
@YuriG03042 Год назад
did you not see that you can customize the image with html and css? anyway it's literally just a thumbnail for embeds, not a big deal
@Divino_1
@Divino_1 Год назад
Please help: I don't still understand the use. Like can't we load images normally? why go through the hassle? Why not create an image and just use an svg converter to render the image as svg? Why create an image using css and hmtl when you can just create the same image using your favorite image editor and insert it into your code? Please someone should help me out with a clear explanation of this tool while contrasting it with other ways on manipulating images. Please
@chris-pee
@chris-pee Год назад
The idea is that this automates and *parametrizes* the thumbnail creation.
@merotuts9819
@merotuts9819 Год назад
Please re-watch the video and listen carefully to what he says :)
@frankfu1122
@frankfu1122 Год назад
Doing it the traditional way is fine. The use case for this would be for a content creator (or others) who churns out multiple blog posts (or similar) per day which would mean doing it the "traditional way" would be time consuming where as this "programatic" approach would save you lots of time at the but you get less customizability compared to a tool like Figma/Photohop i.e. the "Traditional" way
@arunkumarTdr
@arunkumarTdr Год назад
Can anyone share some good php library for generating og image
@dan6erbond
@dan6erbond Год назад
Probably not lol.
@ThePotatoChronicler
@ThePotatoChronicler Год назад
You said the first rule of SEO is to make good content, and now you say SEO is important, so are you saying it's important to make really good content?
@veryabhi
@veryabhi Год назад
9 views 💀
@iamdanfleser
@iamdanfleser Год назад
Fart on space
@avastorneretal
@avastorneretal Год назад
Npm package. For generating a f*king preview. I don't know what is better describing everything what's wrong with a WebDevs.
@ste-fa-no
@ste-fa-no Год назад
Jeff, you have bots impersonating every channel you own 😅 I hope you'll see this comment, and I hope none of your users would reply to those phishing scams
@rishabhgupta2085
@rishabhgupta2085 Год назад
First comment 🎉
@MrBrax
@MrBrax Год назад
Wow awesome, you want an award?
@rishabhgupta2085
@rishabhgupta2085 Год назад
Sure man 👍
@KevinSheppard
@KevinSheppard Год назад
I feel like things are getting more complicated just for the fun of it :-/
@akash.deblanq
@akash.deblanq Год назад
which stands for "original gangster" bruh 😂
@gleweistam6663
@gleweistam6663 Год назад
a video on fleet please!
Далее
Is "edge" computing really faster?
8:14
Просмотров 556 тыс.
Top 10 CSS One Liners That Will Blow Your Mind
13:34
Просмотров 892 тыс.
КИТАЕЦ ЗА 24 МИЛЛИОНА / РАЗГОН
1:10:06
I tried 8 different Postgres ORMs
9:46
Просмотров 381 тыс.
Sorting Algorithms Explained Visually
9:01
Просмотров 507 тыс.
How I deploy serverless containers for free
6:33
Просмотров 384 тыс.
This UI component library is mind-blowing
8:23
Просмотров 557 тыс.
Industrial-scale Web Scraping with AI & Proxy Networks
6:17
React VS Svelte...10 Examples
8:35
Просмотров 514 тыс.
The ultimate guide to web performance
6:43
Просмотров 398 тыс.
Dramatically improve website speed with Partytown
3:39