Posts: 1,182
Threads: 23
Joined: Jan 2005
Если кто-нить имеет опыт работы по обработки графичиских файлов с помощью PHP, поделитесь опытом.
потому как мало инфы нашел... нужно не счетчики исовать, а обрабатывать, скалить итд итп фотки загружаемые пользователями... и тыт затык <img src='http://forum.1dv.ru/public/style_emoticons/<#EMO_DIR#>/sad.gif' class='bbc_emoticon' alt='

' />
Спасибо.
Posts: 369
Threads: 18
Joined: Jul 2005
04-05-2007, 10:14 PM
(This post was last modified: 04-05-2007, 10:17 PM by m00nk.)
Взято отюда: _http://www.php.net/manual/ru/ref.image.php
imagecopyresampled
(PHP 4 >= 4.0.6, PHP 5)
imagecopyresampled -- Copy and resize part of an image with resampling
Description
bool imagecopyresampled ( resource dst_image, resource src_image, int dst_x, int dst_y, int src_x, int src_y, int dst_w, int dst_h, int src_w, int src_h )
imagecopyresampled() copies a rectangular portion of one image to another image, smoothly interpolating pixel values so that, in particular, reducing the size of an image still retains a great deal of clarity. Возвращает TRUE в случае успешного завершения или FALSE в случае возникновения ошибки.
dst_image is the destination image, src_image is the source image identifier. If the source and destination coordinates and width and heights differ, appropriate stretching or shrinking of the image fragment will be performed. The coordinates refer to the upper left corner. This function can be used to copy regions within the same image (if dst_image is the same as src_image) but if the regions overlap the results will be unpredictable.
Там же описаны и остальные функции для работы с графикой. Кстати, классный справочник, частично переведенный на русский. Его же можно скачать в формате chm, только не помню где.
Posts: 369
Threads: 18
Joined: Jul 2005
А версия какая? А то они время от времени его обновляют, стоит ли качать?
У меня: This file was generated: Thu Nov 17 04:04:31 2005
Posts: 2,838
Threads: 47
Joined: Feb 2005
Reputation:
0
Моё was generated: Thu May 25 00:51:15 2006
За более актуальными не лазил - пока необходимости такой не возникало.