@@ -15,7 +15,7 @@ class ImageResize
1515 const CROPBOTTOM = 3 ;
1616 const CROPLEFT = 4 ;
1717 const CROPRIGHT = 5 ;
18-
18+
1919 public $ quality_jpg = 75 ;
2020 public $ quality_png = 0 ;
2121
@@ -94,7 +94,7 @@ public function __construct($filename)
9494
9595 return $ this ->resize ($ this ->getSourceWidth (), $ this ->getSourceHeight ());
9696 }
97-
97+
9898 /**
9999 * Saves new image
100100 *
@@ -216,7 +216,7 @@ public function output($image_type = null, $quality = null)
216216
217217 $ this ->save (null , $ image_type , $ quality );
218218 }
219-
219+
220220 /**
221221 * Resizes image according to the given height (width proportional)
222222 *
@@ -233,7 +233,7 @@ public function resizeToHeight($height, $allow_enlarge = false)
233233
234234 return $ this ;
235235 }
236-
236+
237237 /**
238238 * Resizes image according to the given width (height proportional)
239239 *
@@ -299,7 +299,7 @@ public function resize($width, $height, $allow_enlarge = false)
299299
300300 return $ this ;
301301 }
302-
302+
303303 /**
304304 * Crops image according to the given width, height and crop position
305305 *
@@ -324,10 +324,10 @@ public function crop($width, $height, $allow_enlarge = false, $position = self::
324324 $ height = $ this ->getSourceHeight ();
325325 }
326326 }
327-
327+
328328 $ ratio_source = $ this ->getSourceWidth () / $ this ->getSourceHeight ();
329329 $ ratio_dest = $ width / $ height ;
330-
330+
331331 if ($ ratio_dest < $ ratio_source ) {
332332 $ this ->resizeToHeight ($ height , $ allow_enlarge );
333333
@@ -350,7 +350,7 @@ public function crop($width, $height, $allow_enlarge = false, $position = self::
350350
351351 return $ this ;
352352 }
353-
353+
354354 /**
355355 * Gets source width
356356 *
@@ -360,7 +360,7 @@ public function getSourceWidth()
360360 {
361361 return $ this ->original_w ;
362362 }
363-
363+
364364 /**
365365 * Gets source height
366366 *
@@ -389,7 +389,7 @@ public function getDestHeight()
389389 {
390390 return $ this ->dest_h ;
391391 }
392-
392+
393393 /**
394394 * Gets crop position (X or Y) according to the given position
395395 *
0 commit comments