File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
lib/CloudinaryExtension/Image/Transformation Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,8 @@ private function createTransformation()
147147 } else {
148148 return $ this ->_configuration ->getDefaultTransformation ()
149149 ->withDimensions ($ this ->_dimensions )
150- ->withCrop (Crop::fit ());
150+ //->withCrop(Crop::fit());
151+ ->withCrop (Crop::limit ());
151152 }
152153 }
153154}
Original file line number Diff line number Diff line change 44
55class Crop
66{
7- const PAD = 'lpad ' ;
7+ const PAD = 'pad ' ;
8+ const LPAD = 'lpad ' ;
89 const FIT = 'fit ' ;
10+ const LIMIT = 'limit ' ;
911
1012 private $ value ;
1113
@@ -24,11 +26,21 @@ public static function pad()
2426 return new Crop (self ::PAD );
2527 }
2628
29+ public static function lpad ()
30+ {
31+ return new Crop (self ::LPAD );
32+ }
33+
2734 public static function fit ()
2835 {
2936 return new Crop (self ::FIT );
3037 }
3138
39+ public static function limit ()
40+ {
41+ return new Crop (self ::LIMIT );
42+ }
43+
3244 public function __toString ()
3345 {
3446 return $ this ->value ;
You can’t perform that action at this time.
0 commit comments