Manuál PHP | ||
---|---|---|
PÅ™edcházejÃcà | Dalšà |
imagejpeg
Popis
bool imagejpeg ( resource image [, string filename [, int quality]] )
imagejpeg() creates a JPEG file from
the given image
.
Seznam parametrů
image
An image resource, returned by one of the image creation functions, such as imagecreatetruecolor().
filename
The path to the saved file. If not set or NULL, the raw image stream will be outputed directly.
To skip this argument in order to provide the
quality
parameter, use NULL.quality
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).
Poznámky
Poznámka: Podpora formátu JPEG je k dispozici jen v pÅ™ÃpadÄ›, že bylo PHP zkompilováno s GD-1.8 nebo novÄ›jÅ¡Ã.
Poznámka: If you want to output Progressive JPEGs, you need to set interlacing on with imageinterlace().
PÅ™edcházejÃcà | Domů | Dalšà |
imageistruecolor | Nahoru |