File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -814,7 +814,7 @@ public function getResizedImageInfo()
814
814
$ image = $ this ->imageAsset ->getPath ();
815
815
}
816
816
817
- $ imageProperties = $ this ->getimagesize ($ image );
817
+ $ imageProperties = $ this ->getImageSize ($ image );
818
818
819
819
return $ imageProperties ;
820
820
} finally {
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ private function getWatermark(string $type): array
137
137
ScopeInterface::SCOPE_STORE
138
138
);
139
139
$ width = !empty ($ size ['width ' ]) ? $ size ['width ' ] : null ;
140
- $ height = !empty ($ size ['width ' ]) ? $ size ['height ' ] : null ;
140
+ $ height = !empty ($ size ['height ' ]) ? $ size ['height ' ] : null ;
141
141
142
142
return [
143
143
'watermark_file ' => $ file ,
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ public function getModule()
171
171
private function getMiscPath ()
172
172
{
173
173
return $ this ->encryptor ->hash (
174
- implode ('_ ' , $ this ->convertTotoReadableFormat ($ this ->miscParams )),
174
+ implode ('_ ' , $ this ->convertToReadableFormat ($ this ->miscParams )),
175
175
Encryptor::HASH_VERSION_MD5
176
176
);
177
177
}
@@ -194,7 +194,7 @@ private function getImageInfo()
194
194
* @param $miscParams
195
195
* @return array
196
196
*/
197
- private function convertTotoReadableFormat ($ miscParams )
197
+ private function convertToReadableFormat ($ miscParams )
198
198
{
199
199
$ miscParams ['image_height ' ] = 'h: ' . ($ miscParams ['image_height ' ] ?? 'empty ' );
200
200
$ miscParams ['image_width ' ] = 'w: ' . ($ miscParams ['image_width ' ] ?? 'empty ' );
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ class Media implements AppInterface
82
82
* @var State
83
83
*/
84
84
private $ appState ;
85
+
85
86
/**
86
87
* @var ImageResize
87
88
*/
Original file line number Diff line number Diff line change @@ -148,13 +148,12 @@ public function resizeFromImageName(string $originalImageName)
148
148
*/
149
149
public function resizeFromThemes (array $ themes = null ): \Generator
150
150
{
151
- $ productImages = $ this ->productImage ->getAllProductImages ();
152
-
153
151
$ count = $ this ->productImage ->getCountAllProductImages ();
154
152
if (!$ count ) {
155
153
throw new NotFoundException (__ ('Cannot resize images - product images not found ' ));
156
154
}
157
155
156
+ $ productImages = $ this ->productImage ->getAllProductImages ();
158
157
$ viewImages = $ this ->getViewImages ($ themes ?? $ this ->getThemesInUse ());
159
158
160
159
foreach ($ productImages as $ image ) {
You can’t perform that action at this time.
0 commit comments