Skip to content

Commit f99f012

Browse files
committed
Remove asset validation, which skips image processing
1 parent 1fa7f9f commit f99f012

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/services/Service.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ public function beforeHandleAssetFile(AssetEvent $event)
3636

3737
// Because this is fired on the before-save event, and validation hasn't kicked in yet
3838
// we check it here. Otherwise, we potentially process it twice when there's a conflict.
39-
if (!$asset->validate()) {
40-
ImageResizer::$plugin->logs->resizeLog(null, 'error', $filename, ['message' => json_encode($asset->getErrors())]);
39+
// if (!$asset->validate()) {
40+
// ImageResizer::$plugin->logs->resizeLog(null, 'error', $filename, ['message' => json_encode($asset->getErrors())]);
4141

42-
return;
43-
}
42+
// return;
43+
// }
4444

4545
// Should we be modifying images in this source?
4646
if (!ImageResizer::$plugin->service->getSettingForAssetSource($asset->volumeId, 'enabled')) {

0 commit comments

Comments
 (0)