Image Optimization in Astro with Cloudinary

  Рет қаралды 3,704

Colby Fayock

Colby Fayock

Күн бұрын

Пікірлер: 20
@colbyfayock
@colbyfayock Ай бұрын
Learn how to build a full stack Next.js app in my upcoming course: colbyfayock.com/course
@mariansam_was_taken
@mariansam_was_taken Жыл бұрын
Cool video, looks like an ad, but a really good one!
@colbyfayock
@colbyfayock Жыл бұрын
thanks, but oh :( is there something particular that came off that way? i intentionally try not to appear that way and primarily deliver value (even though i work for Cloudinary, this is not a Cloudinary channel for instance)
@JamesQQuick
@JamesQQuick Жыл бұрын
Does loading="lazy" just work as is? I tried it in a vanilla js project and it didn't seem to work?
@colbyfayock
@colbyfayock Жыл бұрын
Weird it's supposed to. Do you have the code somewhere?
@djmtype
@djmtype Жыл бұрын
Video idea: Astro with Wordpress structured content and Cloudinary
@colbyfayock
@colbyfayock Жыл бұрын
nice idea! I'll add it to my list
@mishell8492
@mishell8492 Жыл бұрын
Fucking master. Just what i was looking for. Thanks a lot, man, nice explanation and straight to the points. Thanks a lot
@colbyfayock
@colbyfayock Жыл бұрын
🙌 no problem!
@strangequark723
@strangequark723 Жыл бұрын
In this context, how could we include a named transformation (into the fetched URL, for specific images)?
@colbyfayock
@colbyfayock Жыл бұрын
so in this example, you'd likely want to create a prop on CldImage that controls that named transformation for instance: const { src, namedTransformation, ...props } = Astro.props; and then conditionally apply it to the image instance if ( namedTransformation ) { cldSrc.addTransformation(namedTransformation) }
@strangequark723
@strangequark723 Жыл бұрын
@@colbyfayock Worked like a charm; thank you very much Colby!
@paulydee5650
@paulydee5650 Жыл бұрын
Hey Colby, great job on the video, it was very informative and I was able to get up and running quite fast. I was wondering if there is a types module for Cloudinary? I noticed in your video you are getting type errors (specifically for .delivery() and .resize() methods) and I am as well.
@colbyfayock
@colbyfayock Жыл бұрын
hey, thanks! so i think the reason it was giving that error is because technically i was using the SDK in an unintended way, as i prefer the shorter syntax than the more verbose. but since then i learned about some shortcuts, specifically `.quality('auto')` instead of using the delivery method cloudinary.com/documentation/javascript_image_transformations#shortcuts_and_aliases as far as resize goes, unfortunately there's not a shortcut, so you'd either have to let the TS error go or adhere to the SDK, which you can find how to use it "properly" here: cloudinary.com/documentation/javascript_image_transformations#resizing_and_cropping
@paulydee5650
@paulydee5650 Жыл бұрын
@@colbyfayock thank you!
@AlbertoChamorro
@AlbertoChamorro Жыл бұрын
Really great video Colby! Thank you so much! One question: have you tried @astrojs/image integration? It could be a great second part about using images in Astro
@colbyfayock
@colbyfayock Жыл бұрын
no i haven't yet! when i made this i dont think it was quite ready yet. i was talking to the Astro team though about how we can give a good experience for Cloudinary
@echuderewicz
@echuderewicz Жыл бұрын
Thanks
@colbyfayock
@colbyfayock Жыл бұрын
Np!
@colbyfayock
@colbyfayock Жыл бұрын
Get fresh tutorials and other free content straight to your inbox! colbyfayock.com/news
Working with Images in Astro
15:13
Coding in Public
Рет қаралды 7 М.
The CUTEST flower girl on YouTube (2019-2024)
00:10
Hungry FAM
Рет қаралды 55 МЛН
The joker favorite#joker  #shorts
00:15
Untitled Joker
Рет қаралды 13 МЛН
SHAPALAQ 6 серия / 3 часть #aminkavitaminka #aminak #aminokka #расулшоу
00:59
Аминка Витаминка
Рет қаралды 1,1 МЛН
Optimizing Images in Astro with Cloudinary
11:05
Cloudinary
Рет қаралды 217
Build a Google Photos Clone with Next.js and Cloudinary - Tutorial
3:39:13
freeCodeCamp.org
Рет қаралды 64 М.
Display Cloudinary Images in a Gallery with Next.js & React
34:14
Colby Fayock
Рет қаралды 14 М.
How to Optimize Images in Astro
13:24
Coding in Public
Рет қаралды 10 М.
Passwordless Authentication & Login in Next.js with Clerk
24:41
Colby Fayock
Рет қаралды 4,4 М.
DON'T Serve Unoptimized Images - Webp, Srcset, ImageKit, and more!
18:29
Optimize Images in Astro with Cloudinary - Dev Hints
5:26
Cloudinary
Рет қаралды 361
The CUTEST flower girl on YouTube (2019-2024)
00:10
Hungry FAM
Рет қаралды 55 МЛН