index.js
/**
 * Validity method which checks for Image Format
 *
 * @private
 * @function
 * @returns {object} [ImageFormat] Returns default value ImageFormat.PNG if no appropriate ImageFormat was found.
 */
Validity method which checks for Image Format
@private
@function
@returns {object} [ImageFormat] Returns default value ImageFormat.PNG if no appropriate ImageFormat was found.
Validity method which checks for Image Format @private @function @returns { object } [ ImageFormat ] Returns default value ImageFormat . PNG if no appropriate ImageFormat was found .
function checkForImageFormatValidity(options) {
    if ('imageFormat' in options) {
        switch (options.imageFormat) {
            case ImageFormat.GIF:
                return ImageFormat.GIF;
            case ImageFormat.JPEG:
                return ImageFormat.JPEG;
            case ImageFormat.PNG:
                return ImageFormat.PNG;
            case ImageFormat.TIFF:
                return ImageFormat.TIFF;
        }
    } else {
        return ImageFormat.PNG;
    }
}
function checkForImageFormatValidity ( options ) { if ( 'imageFormat' in options ) { switch ( options . imageFormat ) { case ImageFormat . GIF : return ImageFormat . GIF ; case ImageFormat . JPEG : return ImageFormat . JPEG ; case ImageFormat . PNG : return ImageFormat . PNG ; case ImageFormat . TIFF : return ImageFormat . TIFF ; } } else { return ImageFormat . PNG ; } }
Validity method which checks for Image Format
 @private
 @function
 @returns {object} [ImageFormat] Returns default value ImageFormat.PNG if no appropriate ImageFormat was found.
Validity method which checks for Image Format @private @function @returns { object } [ ImageFormat ] Returns default value ImageFormat . PNG if no appropriate ImageFormat was found .