open source image
boolean
Thumbnail
(string $imgfile)
-
string
$imgfile: filename of the source image file
Calculate JPEG quality factor for a specific size in bytes
void
CalculateQFactor
(integer $size)
-
integer
$size: maximun file size in bytes
return the result thumbnail
mixed
dump
()
generate image
boolean
process
()
save your thumbnail to file
boolean
save
([string $save = ""])
-
string
$save: output file name
show your thumbnail, output image and headers
void
show
()
set the biggest width or height for thumbnail
boolean
size_auto
([integer $size = 100])
-
integer
$size: width or height
set height for thumbnail
boolean
size_height
([integer $size = 100])
set width for thumbnail
boolean
size_width
([integer $size = 100])