Ghost/core/server/lib/image/image-utils.js
2020-12-09 13:19:22 +01:00

15 lines
727 B
JavaScript

const BlogIcon = require('./blog-icon');
const CachedImageSizeFromUrl = require('./cached-image-size-from-url');
const Gravatar = require('./gravatar');
const ImageSize = require('./image-size');
class ImageUtils {
constructor({config, logging, i18n, urlUtils, settingsCache, storageUtils, storage, validator, request}) {
this.blogIcon = new BlogIcon({config, i18n, urlUtils, settingsCache, storageUtils});
this.imageSize = new ImageSize({config, i18n, storage, storageUtils, validator, urlUtils, request});
this.cachedImageSizeFromUrl = new CachedImageSizeFromUrl({logging, imageSize: this.imageSize});
this.gravatar = new Gravatar({config, request});
}
}
module.exports = ImageUtils;