Показать сообщение отдельно

  #7294  
Старый 26.12.2008, 18:12
ntldr
Постоянный
Регистрация: 04.12.2007
Сообщений: 424
С нами: 9702986

Репутация: 479
По умолчанию

Цитата:
Сообщение от geforce  
imagejpeg() Сначало выводит картинку в браузер а потом сохраняет ее! А мне не надо выводить мне надо тока сохранять! как это зделать?

Description
bool imagejpeg ( resource image [, string filename [, int quality]] )


imagejpeg() creates the JPEG file in filename from the image image. The image argument is the return from the imagecreatetruecolor() function.

The filename argument is optional, and if left off, the raw image stream will be output directly. To skip the filename argument in order to provide a quality argument just use a NULL value. By sending an image/jpeg content-type using header(), you can create a PHP script that outputs JPEG images directly.

Замечание: JPEG support is only available if PHP was compiled against GD-1.8 or later.

quality is optional, and ranges from 0 (worst quality, smaller file) to 100 (best quality, biggest file). The default is the default IJG quality value (about 75).

If you want to output Progressive JPEGs, you need to set interlacing on with imageinterlace().
 
Ответить с цитированием