imagedata not set correctly if large photo AND imagick is not installed

This commit is contained in:
zotlabs 2017-11-03 14:20:49 -07:00 committed by Mario
parent cf5beafcfd
commit 6e48c36519

View File

@ -75,6 +75,9 @@ function photo_upload($channel, $observer, $args) {
$imagedata = @file_get_contents($tmp_name);
@unlink($tmp_name);
}
else {
$imagedata = @file_get_contents($args['os_syspath']);
}
}
else {
$imagedata = @file_get_contents($args['os_syspath']);