Hinode logo
  • About 
  • Blog 
  • Projects 
    • Sample project 
    • Another project 
  • Tags 

  •  Language
    • English
    • Français
  1. Home
  2. Blog
  3. Local and remote images

Local and remote images

Posted on May 19, 2024  (Last modified on December 20, 2024) • 1 min read • 110 words
Blog  
Blog  
Share via
Hinode
Link copied to clipboard

Include responsive images from local sources and selected CDN image providers.

On this page
  • Cloudinary
  • ImageKit.io
  • Imgix
  • Local image
Local and remote images

Cloudinary  

As an example, the following shortcode displays an image with rounded corners and a 21x9 aspect ratio.

Cloudinary image
Cloudinary image
markdown
{{< image src="https://res.cloudinary.com/demo/dog.webp"
    ratio="21x9" caption="Cloudinary image" class="rounded" plain=true >}}

ImageKit.io  

As an example, the following shortcode displays an image with rounded corners and a 21x9 aspect ratio.

ImageKit.io image
ImageKit.io image
markdown
{{< image src="https://ik.imagekit.io/demo/default-image.jpg"
    ratio="21x9" caption="ImageKit.io image" class="rounded" anchor="Center" >}}

Imgix  

As an example, the following shortcode displays an image with rounded corners and a 21x9 aspect ratio.

imgix image
imgix image
markdown
{{< image src="https://assets.imgix.net/examples/bluehat.jpg"
    ratio="21x9" caption="imgix image" class="rounded" anchor="Top" >}}

Local image  

local image
local image
markdown
{{< image src="img/phone.jpg"
    ratio="auto" caption="local image" class="rounded" anchor="Top" dataAttributes="data-location='unknown' data-image-option='test'" >}}
Components 
On this page:
  • Cloudinary
  • ImageKit.io
  • Imgix
  • Local image
Follow me

I work on everything coding and tweet developer memes

     
Copyright © 2024 Mark Dumay. | Privacy | Cookies | Powered by Hinode  .
Hinode
Code copied to clipboard