2020-12-09 15:19:22 +03:00
|
|
|
const BlogIcon = require('./blog-icon');
|
|
|
|
const CachedImageSizeFromUrl = require('./cached-image-size-from-url');
|
|
|
|
const Gravatar = require('./gravatar');
|
|
|
|
const ImageSize = require('./image-size');
|
|
|
|
|
|
|
|
class ImageUtils {
|
2021-12-08 15:57:45 +03:00
|
|
|
constructor({config, logging, urlUtils, settingsCache, storageUtils, storage, validator, request}) {
|
2021-10-08 18:12:19 +03:00
|
|
|
this.blogIcon = new BlogIcon({config, urlUtils, settingsCache, storageUtils});
|
|
|
|
this.imageSize = new ImageSize({config, storage, storageUtils, validator, urlUtils, request});
|
2021-12-08 15:57:45 +03:00
|
|
|
this.cachedImageSizeFromUrl = new CachedImageSizeFromUrl({logging, imageSize: this.imageSize});
|
2020-12-09 15:19:22 +03:00
|
|
|
this.gravatar = new Gravatar({config, request});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-08 18:12:19 +03:00
|
|
|
module.exports = ImageUtils;
|