Add exams from exam156 to exam199
This commit is contained in:
25
exam168/index.php
Normal file
25
exam168/index.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
header('Content-type: image/jpeg');
|
||||
|
||||
if(isset($_GET['image'])){
|
||||
$image = $_GET['image'];
|
||||
|
||||
$image_size = getimagesize($image);
|
||||
$image_width = $image_size[0];
|
||||
$image_height = $image_size[1];
|
||||
|
||||
$new_size = ($image_width + $image_height) / ($image_width * ($image_height / 45));
|
||||
$new_width = $image_width * $new_size;
|
||||
$new_height = $image_height * $new_size;
|
||||
|
||||
$new_image = imagecreatetruecolor($new_width, $new_height);
|
||||
|
||||
$old_image = imagecreatefromjpeg($image);
|
||||
|
||||
imagecopyresized($new_image,$old_image,0,0,0,0,$new_width,$new_height,$image_width,$image_height);
|
||||
imagejpeg($new_image);
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
BIN
exam168/phone2.jpg
Executable file
BIN
exam168/phone2.jpg
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 122 KiB |
Reference in New Issue
Block a user