File tree 1 file changed +3
-3
lines changed
app/code/Magento/Cms/Model/Wysiwyg/Images
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -567,10 +567,10 @@ public function getThumbnailUrl($filePath, $checkFile = false)
567
567
* Create thumbnail for image and save it to thumbnails directory
568
568
*
569
569
* @param string $source Image path to be resized
570
- * @param bool $keepRation Keep aspect ratio or not
570
+ * @param bool $keepRatio Keep aspect ratio or not
571
571
* @return bool|string Resized filepath or false if errors were occurred
572
572
*/
573
- public function resizeFile ($ source , $ keepRation = true )
573
+ public function resizeFile ($ source , $ keepRatio = true )
574
574
{
575
575
$ realPath = $ this ->_directory ->getRelativePath ($ source );
576
576
if (!$ this ->_directory ->isFile ($ realPath ) || !$ this ->_directory ->isExist ($ realPath )) {
@@ -587,7 +587,7 @@ public function resizeFile($source, $keepRation = true)
587
587
}
588
588
$ image = $ this ->_imageFactory ->create ();
589
589
$ image ->open ($ source );
590
- $ image ->keepAspectRatio ($ keepRation );
590
+ $ image ->keepAspectRatio ($ keepRatio );
591
591
$ image ->resize ($ this ->_resizeParameters ['width ' ], $ this ->_resizeParameters ['height ' ]);
592
592
$ dest = $ targetDir . '/ ' . pathinfo ($ source , PATHINFO_BASENAME );
593
593
$ image ->save ($ dest );
You can’t perform that action at this time.
0 commit comments