Skip to content
Permalink
Browse files

Add "quotient" mode to JCckContent

  • Loading branch information...
sebastienheraud committed May 24, 2019
1 parent a92424e commit f659b49ff6f428169c4cab359515cde398173f7e
Showing with 5 additions and 0 deletions.
  1. +5 −0 libraries/cms/cck/dev/image.php
@@ -279,6 +279,11 @@ protected function _prepareDimensions( $src_w, $src_h, $dest_w, $dest_h, $action
$thumbHeight = $height;
break;
case "quotient":
$thumbWidth = round( ( $src_w * $dest_w ) / $dest_h ) ;
$thumbHeight = round( ( $src_h * $dest_w ) / $dest_h ) ;
break;
case "shrink":
$width = ( $width > $src_w ) ? $src_w : $width;
$height = ( $height > $src_h ) ? $src_h : $height;

1 comment on commit f659b49

@sebastienheraud

This comment has been minimized.

Copy link
Member Author

commented on f659b49 May 24, 2019

JCckDevImage ... not JCckContent

Please sign in to comment.
You can’t perform that action at this time.