3
$logo = 'images/logo.jpg';
4
$logofile = '../'.$logo;
7
$imageInfo = @getimagesize($logofile);
8
$src_width = $imageInfo[0];
9
$src_height = $imageInfo[1];
11
$dest_width = 100;//$src_width / $divide;
12
$dest_height = 90;//$src_height / $divide;
14
$src_img = @imagecreatefromjpeg($logofile);
15
$dst_img = imagecreatetruecolor($dest_width,$dest_height);
16
@imagecopyresampled($dst_img, $src_img, 0, 0, 0, 0, $dest_width, $dest_height, $src_width, $src_height);
17
@imagejpeg($dst_img,$full_url);
18
@imagedestroy($src_img);
19
#new resized image file
20
$logofile = $full_url;
21
#NB: ili hii ifanye kazi lazima images folder kwenye academic liwe writable!!!
b'\\ No newline at end of file'