76f06fae3c
This reverts commit fa8c3ebe99
.
Reverting the revert, which will allow us to fully switch to @tryghost/logging v2.
16 lines
692 B
JavaScript
16 lines
692 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, urlUtils, settingsCache, storageUtils, storage, validator, request}) {
|
|
this.blogIcon = new BlogIcon({config, urlUtils, settingsCache, storageUtils});
|
|
this.imageSize = new ImageSize({config, storage, storageUtils, validator, urlUtils, request});
|
|
this.cachedImageSizeFromUrl = new CachedImageSizeFromUrl({imageSize: this.imageSize});
|
|
this.gravatar = new Gravatar({config, request});
|
|
}
|
|
}
|
|
|
|
module.exports = ImageUtils;
|