Next.js Image - Never struggle again (+ ImageKit)

Sdílet
Vložit
  • čas přidán 20. 06. 2024
  • 👉 Signup for ImageKit’s forever free plan: bit.ly/49zmXkt (paid sponsorship)
    👉 Know more about ImageKit: bit.ly/3VXRK7u (paid sponsorship)
    Disclaimer: this is a sponsored video (paid). It's your responsibility to evaluate safety, accuracy and other relevant parts of the reviewed product.
    NEW React & Next.js Course: bytegrad.com/courses/professi...
    Hi, I'm Wesley. I'm a brand ambassador for Kinde (paid sponsorship).
    👉 Check out Kinde for auth and more bit.ly/3QOe1Bh
    👉 NEW React & Next.js Course: bytegrad.com/courses/professi...
    👉 Professional JavaScript Course: bytegrad.com/courses/professi...
    👉 Professional CSS Course: bytegrad.com/courses/professi...
    👉 Web development roadmap 2024 & 2025: email.bytegrad.com
    👉 Email newsletter (BIG update soon): email.bytegrad.com
    👉 Discord: all my courses have a private Discord where I actively participate
    👉 Kinde: check out Kinde for auth and more bit.ly/3QOe1Bh
    ⏱️ Timestamps:
    00:00 Intro
    00:42 ImageKit
    01:58 Layout example 1 (simple)
    02:10 Native img-tag
    02:48 Next.js Image component
    02:58 Width & Height props
    04:42 Responsive images
    05:56 srcSet & sizes
    14:17 DPR / retina
    15:48 Disable cache
    16:36 Priority
    17:06 Blur placeholder
    18:29 Local image
    20:03 Layout example 2 (full width, blog)
    21:43 fill
    23:09 sizes
    24:06 What if there is padding?
    25:33 Custom loader (connect ImageKit to Image component)
    29:54 Layout example 3 (gallery)
    32:50 Layout example 4 (bg image)
    33:58 Layout example 5 (masonry)
    #webdevelopment #programming #coding #reactjs #nextjs

Komentáře • 33

  • @ByteGrad
    @ByteGrad  Před 22 dny +1

    Hi, my latest course is out now (Professional React & Next.js): bytegrad.com/courses/professional-react-nextjs -- I'm very proud of this course, my best work!
    I'm also a brand ambassador for Kinde (paid sponsorship). Check out Kinde for authentication and more bit.ly/3QOe1Bh

  • @abishekbaiju1705
    @abishekbaiju1705 Před měsícem +7

    I was struggling so much learning this Image container. I was surprised to see you made a video about this topic. Felt like you made it for me. don't stop making videos about nextjs. You are helping me a lot. Thanks a lot.

  • @buddy.abc123
    @buddy.abc123 Před měsícem +13

    This is premium content, it feels illegal to watch for free. Thank you for sharing, images are the hardest pain point for me

    • @ByteGrad
      @ByteGrad  Před měsícem

      Enjoy!

    • @reactjs1900
      @reactjs1900 Před měsícem +1

      Give him a super thanks then...

    • @jsbr
      @jsbr Před měsícem

      Technically every video is not free, you pay your attention to this very specific video and the cost is your time. Nevertheless, good video.

    • @KiranPrajapati-eo9jr
      @KiranPrajapati-eo9jr Před měsícem

      good

    • @KiranPrajapati-eo9jr
      @KiranPrajapati-eo9jr Před měsícem

      @@jsbr yes

  • @meloniasz1
    @meloniasz1 Před měsícem +1

    Great explanation! Was looking for tutolial like this for several days

  • @warodomwerapun6417
    @warodomwerapun6417 Před měsícem +1

    That is a good explanation; I came across your video when I checked the Nextjs and VPS with the docker video. Well done!!

  • @guts909
    @guts909 Před měsícem +2

    You helped me a lot, thank you!

  • @nicolascuor2378
    @nicolascuor2378 Před měsícem +1

    Thank you for this instructive content!

  • @abdarker1043
    @abdarker1043 Před měsícem +3

    amazing video. i wish i had this video 1 year ago. now i know i messed up a lot back then

  • @hbela1000
    @hbela1000 Před měsícem +2

    Awesome video !

  • @kickflipz
    @kickflipz Před měsícem +1

    Awesome video I learned a lot thanks

  • @WaltersWatching
    @WaltersWatching Před měsícem +1

    been using the imagekit free plan for 4 years without issue

  • @jacquelynecarmen
    @jacquelynecarmen Před měsícem +1

    Thank you sir ❤❤❤❤

  • @marmunator
    @marmunator Před 21 dnem +1

    Hey thanks for your video! Quick question, your media library doesn't show the file format. Is there some setting you have on that makes it behave this way?
    In your video, your source for the image is "stockprices" instead of "stockprices.jpg". I tried to upload my images to imagekit, but when ever I leave out the file format (.png in my case), the images wont show up.
    Any ideas?

  • @ramez3038
    @ramez3038 Před měsícem +1

    like what the actual FUCK
    this video changed my life i was struggling alot with next Image and i didn't know we get all those features from it
    thank u brother i really appreciate it

  • @olusanyaolamide9764
    @olusanyaolamide9764 Před měsícem +1

    Wow thank you, Image has always given issues

  • @user-vk6cb1zu7p
    @user-vk6cb1zu7p Před měsícem +1

    When I make a web app having a container with many cards in it there I face many problems like when I resize my screen the images lose their quality and aspect ratio is not maintained. How to solve this problem please guide or make a separate video on it using nextjs I will be grateful to you!!

  • @tasfiqjawaad3757
    @tasfiqjawaad3757 Před měsícem

    If we don't want to use the loader thing, i.e. want to keep the image component server side, how can use set srcSet? I know that nextjs will automatically handle that, but if we're using transformation using the URL(query parameters for imagekit) and want to display different url for different sizes, how would nextjs know how to transform the images?

  • @raves_r3177
    @raves_r3177 Před měsícem

    What if I want to give blur placeholder in a next/image that has a dynamic src

  • @smart0758
    @smart0758 Před měsícem +1

    Is this feature available when deploying outside Vercel?

    • @Euquila
      @Euquila Před 14 dny

      I don't believe so, it's proprietary storage/functions solutions that we are using when we deploy to vercel. You would need to write your own services to process the images and make them available through your own storage layer.

  • @Smartercow
    @Smartercow Před měsícem

    Supabase does the same with optimizing images

  • @asmet2701
    @asmet2701 Před měsícem

    Hi I wanna add an e-commerce store app for my portfolio. I wonder which react stack is solid for it in 2024. Can someone suggest something? As a back I would prefer Firebase, also for styling scss+mui but need recommendations about state manager and other technologies and tools. Thanks!

  • @hbela1000
    @hbela1000 Před měsícem

    Hi, I have still an issue: How to upload image ? (need transform, before upload too).

  • @qsales2022
    @qsales2022 Před měsícem +1

    U are underrated 😢

  • @muzzrayyan1290
    @muzzrayyan1290 Před měsícem

    In the masonry secrtion, video does not tell us how to use that metadata api for height, it just cuts abruptly can anyone help how to?

  • @tomich20
    @tomich20 Před měsícem

    yesterday i had to remove optimization in production, never could it make it work :/

  • @kar-s6716
    @kar-s6716 Před měsícem

    I hate Image ... always struggling to replicate the same ui with this component