auto-orient uploaded wall photos and profile photos also
This commit is contained in:
parent
63f10f6c6b
commit
9fbe921051
4 changed files with 16 additions and 3 deletions
|
@ -740,8 +740,7 @@ function photos_post(&$a) {
|
|||
killme();
|
||||
}
|
||||
|
||||
if($ph->getType() != 'image/png')
|
||||
$ph->orient($src);
|
||||
$ph->orient($src);
|
||||
@unlink($src);
|
||||
|
||||
$max_length = get_config('system','max_image_length');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue