Skip to content
Permalink
Browse files

Merge pull request #14 from iilab/master

Do not constrain if crop or resize are not set
  • Loading branch information...
radgeek committed Sep 30, 2019
2 parents dd8a6a9 + 1274491 commit f63335dc8685b4aaad524e58d891943a8934ed38
Showing with 3 additions and 1 deletion.
  1. +3 −1 SicEm.php
@@ -662,7 +662,9 @@ public function attach_image ($url, $to, $args = array()) {
endif;
// Apply (if applicable) crop and resize settings
$imgBits->constrain($p['crop'], $p['resize']);
if ($p['crop'] or $p['resize']) :
$imgBits->constrain($p['crop'], $p['resize']);
endif;
if ($imgBits->is_image()) :
$attach_id = $imgBits->upload(/*attach_to=*/ $to);

0 comments on commit f63335d

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