lib/images.js
/**
 * Resize of image to specified size (for cache)
 *
 * @returns Promise 
 */
Resize of image to specified size (for cache)
@returns Promise
Resize of image to specified size ( for cache ) @returns Promise
function generateCacheFile(i, src, cacheFolder) {
  return sharp(src)
      .resize(i*100)
      .toFile( getCacheFileName(src, i*100, cacheFolder) )
        .then( () => {
          logger.stubDone(i, src);
        });
}
function generateCacheFile ( i , src , cacheFolder ) { return sharp ( src ) . resize ( i * 100 ) . toFile ( getCacheFileName ( src , i * 100 , cacheFolder ) ) . then ( ( ) => { logger . stubDone ( i , src ) ; } ) ; }
Resize of image to specified size (for cache)
 @returns Promise
Resize of image to specified size ( for cache ) @returns Promise