Hi! I'm not quite sure where to report CKFinder bugs. http://dev.fckeditor.net appears to be only for CKEditor and FCKeditor..?
Well, I've found a small typo in Thumbnail.php that produces makes it fail when preserverAspectRatio is set to false. In the code block below,
if ($preserverAspectRatio) { // Gets the best size for aspect ratio resampling $oSize = CKFinder_Connector_CommandHandler_Thumbnail::GetAspectRatioSize($iFinalWidth , $iFinalHeight, $sourceImageWidth, $sourceImageHeight ); } else { $oSize = array($iFinalWidth, $iFinalHeight); }
'Width' => and 'Heigh' => is missing in the second last line. It should be corrected to
$oSize = array('Width' => $iFinalWidth, 'Height' => $iFinalHeight);
Re: Bug: CKFinder Thumbnail typo
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Bug: CKFinder Thumbnail typo
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Bug: CKFinder Thumbnail typo
Great, thanks