expresso-03.diff
show_user_photo.php 2016-12-06 10:44:34.480503296 -0200 | ||
---|---|---|
61 | 61 |
$theight = $twidth * $height / $width; # calculate height |
62 | 62 |
$thumb = imagecreatetruecolor ($twidth, $theight); |
63 | 63 |
imagecopyresampled($thumb, $pic, 0, 0, 0, 0,$twidth, $theight, $width, $height); # resize image into thumb |
64 |
imagejpeg($thumb,"",80); # Thumbnail as JPEG
|
|
64 |
imagejpeg($thumb,NULL,80); # Thumbnail as JPEG
|
|
65 | 65 |
} |
66 | 66 |
|
67 | 67 |
ldap_close($ldap_conn); |