summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorOmar <omar@elav.net.br>2012-06-29 15:48:28 +0200
committerOmar <omar@elav.net.br>2012-06-29 15:48:28 +0200
commitbb531d6284e3a936e8e2184104edd9a665c5c363 (patch)
tree6617ff5cc7e8e2bec555d65ba93fd7a197d2e9cc /system
parent7db0f597c78cd5485b566d9cd6e3935a8489c540 (diff)
Fixing imagemagick maintain ratio not implemented
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Image_lib.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/system/libraries/Image_lib.php b/system/libraries/Image_lib.php
index 4735dfd08..ebd214ef0 100644
--- a/system/libraries/Image_lib.php
+++ b/system/libraries/Image_lib.php
@@ -855,7 +855,10 @@ class CI_Image_lib {
}
else // Resize
{
- $cmd .= ' -resize '.$this->width.'x'.$this->height.' "'.$this->full_src_path.'" "'.$this->full_dst_path.'" 2>&1';
+ if($this->maintain_ratio)
+ $cmd .= " -resize ".$this->width."x".$this->height." \"$this->full_src_path\" \"$this->full_dst_path\" 2>&1";
+ else
+ $cmd .= " -resize ".$this->width."x".$this->height."\\! \"$this->full_src_path\" \"$this->full_dst_path\" 2>&1";
}
$retval = 1;