static makeImage(url, widthPixels, heightPixels, size, description) {
        const imgObj = { 
            url : url
        };
        
        if (widthPixels && heightPixels) {
            imgObj.widthPixels = widthPixels;
            imgObj.heightPixels = heightPixels;
        }
        
        if (size) {
            imgObj.size = size;
        }

        return ImageUtils.makeImages([imgObj], description);
    }
/**
     * Creates an image object with a single source
     * 
     * These images may be in either JPEG or PNG formats, with the appropriate file extensions.
     * An image cannot be larger than 2 MB
     * You must host the images at HTTPS URLs that are publicly accessible.
     * widthPixels and heightPixels are optional - Do not include them unless they are exactly correct.
     * 
     * By default, for Echo Show, size takes the value X_SMALL. If the other size values are included, 
     * then the order of precedence for displaying images begins with X_LARGE and proceeds downward, 
     * which means that larger images will be downscaled for display on Echo Show if provided.
     * 
     * example : ImageUtils.makeImage('https://url/to/my/img.png', 300, 400, 'SMALL', 'image description')
     * 
     * @static
     * @param {string} url url of the image
     * @param {number} widthPixels (optional) width of the image in pixels
     * @param {number} heightPixels (optional) height of the image in pixels
     * @param {string} size size of the image (X_SMALL, SMALL, MEDIUM, LARGE, X_LARGE)
     * @param {string} description text used to describe the image in a screen reader
     * @returns 
     * @memberof ImageUtils
     */
Creates an image object with a single source

These images may be in either JPEG or PNG formats, with the appropriate file extensions.
An image cannot be larger than 2 MB
You must host the images at HTTPS URLs that are publicly accessible.
widthPixels and heightPixels are optional - Do not include them unless they are exactly correct.

By default, for Echo Show, size takes the value X_SMALL. If the other size values are included,
then the order of precedence for displaying images begins with X_LARGE and proceeds downward,
which means that larger images will be downscaled for display on Echo Show if provided.




Creates an image object with a single source These images may be in either JPEG or PNG formats with the appropriate file extensions . An image cannot be larger than 2 MB You must host the images at HTTPS URLs that are publicly accessible . widthPixels and heightPixels are optional - Do not include them unless they are exactly correct . By default for Echo Show size takes the value X_SMALL . If the other size values are included then the order of precedence for displaying images begins with X_LARGE and proceeds downward which means that larger images will be downscaled for display on Echo Show if provided .
static makeImage(url, widthPixels, heightPixels, size, description) {
        const imgObj = { 
            url : url
        };
        if (widthPixels && heightPixels) {
            imgObj.widthPixels = widthPixels;
            imgObj.heightPixels = heightPixels;
        }
        if (size) {
            imgObj.size = size;
        }
        return ImageUtils.makeImages([imgObj], description);
    }
static makeImage ( url , widthPixels , heightPixels , size , description ) { const imgObj = { url : url } ; if ( widthPixels && heightPixels ) { imgObj . widthPixels = widthPixels ; imgObj . heightPixels = heightPixels ; } if ( size ) { imgObj . size = size ; } return ImageUtils . makeImages ( [ imgObj ] , description ) ; }
Creates an image object with a single source
Creates an image object with a single source