projects
/
quix0rs-gnu-social.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c862b3f
)
Be more precise in return array from image scaling
author
Mikael Nordfeldth
<mmn@hethane.se>
Mon, 21 Apr 2014 20:31:13 +0000
(22:31 +0200)
committer
Mikael Nordfeldth
<mmn@hethane.se>
Mon, 21 Apr 2014 20:31:13 +0000
(22:31 +0200)
lib/imagefile.php
patch
|
blob
|
history
diff --git
a/lib/imagefile.php
b/lib/imagefile.php
index a4b77702ec5816c1dcd2a1d12e7abf2fb0f8deff..f99469bbf0b790e518ba7d4eedc9152ece30ecbe 100644
(file)
--- a/
lib/imagefile.php
+++ b/
lib/imagefile.php
@@
-401,8
+401,8
@@
class ImageFile
}
return array(intval($rw), intval($rh),
intval($cx), intval($cy),
- is_null($cw) ?
null
: intval($cw),
- is_null($ch) ?
null
: intval($ch));
+ is_null($cw) ?
$width
: intval($cw),
+ is_null($ch) ?
$height
: intval($ch));
}
}