Skip to content
This repository was archived by the owner on Mar 5, 2022. It is now read-only.

Commit c462135

Browse files
author
Florian Krämer
committed
Merge branch '1.2' of https://github.com/burzum/cakephp-file-storage into 1.2
2 parents b53f31f + 24baae6 commit c462135

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Event/ImageProcessingListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ protected function _autoRotate($imageFile, $format) {
9797
}
9898
$processor = new ImageProcessor();
9999
$image = $processor->open($imageFile);
100-
$processor->rotate($image, ['degree' => $degree]);
101-
$image->save(['format' => $format]);
100+
$processor->rotate(['degree' => $degree]);
101+
$image->save($imageFile, ['format' => $format]);
102102
return true;
103103
}
104104

0 commit comments

Comments
 (0)