Skip to content

Commit

Permalink
Remove asset validation, which skips image processing
Browse files Browse the repository at this point in the history
  • Loading branch information
engram-design committed Sep 18, 2019
1 parent 1fa7f9f commit f99f012
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/services/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ public function beforeHandleAssetFile(AssetEvent $event)

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

return;
}
// return;
// }

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

0 comments on commit f99f012

Please sign in to comment.