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
parent 1159dd59ed
commit fae9c23637

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']);