[ENTITY][AttachmentThumbnail] Every image should have width and height attributes

This commit is contained in:
2021-09-25 13:12:32 +01:00
parent 808da203ad
commit a681acae67
9 changed files with 60 additions and 15 deletions

View File

@@ -178,7 +178,7 @@ class StoreRemoteMedia extends Plugin
if (!$this->getStoreOriginal()) {
$thumbnail = AttachmentThumbnail::getOrCreate(
attachment: $attachment,
size: 'small',
size: 'medium',
crop: $this->getSmartCrop()
);
$attachment->deleteStorage();