Glide Library
Searchโ€ฆ
Adding images
How to add and host images properly for your app.
Great images are key to making your apps look fantastic. ๐ŸŽ†๐Ÿ”๐Ÿ–ผ Letโ€™s understand more about the ways in which images can appear in Glide.
This video shows an outdated UI. To see what's new visit https://youtu.be/7UxJzBGc-DI
Images in Glide can appear in two primary places - in list layouts and in components like the title and image component. We can add images from the web, upload our own, and even allow users to upload their own images from within the app.

Image Hosting

Uploading images to Glide

The easiest way to add images to your app is by uploading them directly to Glide. You can upload images in an Image Column in the Data Editor, or you can drag-and-drop images directly onto components. This uploads the image to Glide's servers and inserts the correct link into your app automatically.

Direct URL

You can also add direct URLs to the image component without having to upload an image on the data editor. This allows you to save space on your storage quota.
Upload an image using URL

Upload from the Layout

You can upload an image from the Layout Screen without having to go back to the Data Editor. Choose Upload image, browse your images and click Upload.
Upload image from the Layout

External hosting

It's possible to use an external service like Dropbox, Google Drive, or Imgur to host your images. However, we do not recommend hosting your images outside of Glide. While it's possible to make it work, services like Google Drive are not designed to share images in this way, and they do not scale well.
However, if you do need to do this โ€“ all you need is a shareable link to your public image, so anyone can view it with the link. For example:
1
https://www.somewhere.com/images/yummy_bacon.jpg
Copied!
Image links must begin with https:// and not http://. In many instances http:// urls will be blocked by your phone.

Image component

Whilst other components can also display images, the Image component is the most customizable and can present your images in lots of different ways.
To show the original image without cropping it, choose the Show the whole image option in the Fill setting.
Image Fill
To show different size ratios for the image, pick any of the available ratios for the Image Height setting.
Image Height
You can resize your image to fit any of the following ratios:
    Original Image Height shows the image in its original size ratio.
    Square Image Height shows the image in a square ratio.
    3:1 Image Height shows the image in a 3:1 ratio.
    3:2 Image Height shows the image in a 3:2 ratio.
You can also choose whether to display your image in an Edge to Edge setting where it takes the full width space of the app screen vs. the Inset with Content setting where the image aligns with the rest of the content.
Image Style
You can also set the Crop Behavior for the image. There are 2 options to choose from: Center Crop Behavior or Face Crop Behavior.
Crop Behavior
You can enable a tap to enlarge action on the image, to allow people to view the image full screen. To do this:
    Visit the Image Component's settings
    Scroll down to Actions;
    From the drop-down list, select Enlarge Image.
Enlarge Image

Image Carousel

โ€‹Array columns are not currently supported in Glide Tables. They only work with Google Sheets.
You can also display multiple images in one image component and trigger an image carousel.
Image Carousel
To do this, name all of your image columns the same but with a number after each name and then number each column in sequence.
For example;
Title
Description
Image 1
Image 2
Image 3
Image 4
โ€‹
โ€‹
โ€‹
โ€‹
โ€‹
โ€‹
or
Title
Description
Employee 1
Employee 2
Employee 3
Employee 4
โ€‹
โ€‹
โ€‹
โ€‹
โ€‹
โ€‹
It doesnโ€™t matter what you call each column, so long as each column has the same name and the next number. Glide will recognize all of the numbered columns and allow you to choose a single column with just that name (e.g. 'Image') which will incorporate all the columns and trigger the carousel. ๐Ÿ‘๐Ÿฝ
Image Carousel

File types

Glide recognizes JPGs, PNGs, GIFs, and SVGs.
For your appโ€™s icon, itโ€™s best to use a simple SVG. The app icon will appear in many places and many sizes so itโ€™s best to use an SVG icon that will scale and look good at any size.
Last modified 26d ago