Редакция 93 | Редакция 101 | К новейшей редакции | Весь файл | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 93 | Редакция 95 | ||
---|---|---|---|
Строка 49... | Строка 49... | ||
49 | $newheight = $height * $percent; |
49 | $newheight = $height * $percent; |
50 | 50 | ||
51 | $output = ImageCreateTrueColor($newwidth, $newheight); |
51 | $output = ImageCreateTrueColor($newwidth, $newheight); |
52 | $source = ImageCreateFromPNG($folder); |
52 | $source = ImageCreateFromPNG($folder); |
53 | 53 | ||
54 | ImageCopyResized($output, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height); |
54 | ImageCopyResampled($output, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height); |
55 | ImagePNG($output, $folderEM); |
55 | ImagePNG($output, $folderEM); |
56 | 56 | ||
57 | $percent = 15/$height; |
57 | $percent = 15/$height; |
58 | $newwidth = $width * $percent; |
58 | $newwidth = $width * $percent; |
59 | $newheight = $height * $percent; |
59 | $newheight = $height * $percent; |
Строка 98... | Строка 98... | ||
98 | 98 | ||
99 | $output = ImageCreateTrueColor($newwidth, $newheight); |
99 | $output = ImageCreateTrueColor($newwidth, $newheight); |
100 | $black = ImageColorAllocate($output, 0, 0, 0); |
100 | $black = ImageColorAllocate($output, 0, 0, 0); |
101 | $source = ImageCreateFromPNG($folder); |
101 | $source = ImageCreateFromPNG($folder); |
102 | 102 | ||
103 | ImageCopyResized($output, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height); |
103 | ImageCopyResampled($output, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height); |
104 | ImageColorTransparent($output, $black); |
104 | ImageColorTransparent($output, $black); |
105 | ImagePNG($output, $folderEM); |
105 | ImagePNG($output, $folderEM); |
106 | 106 | ||
107 | $percent = 15/$height; |
107 | $percent = 15/$height; |
108 | $newwidth = $width * $percent; |
108 | $newwidth = $width * $percent; |