Parameters are passed via URL: image.php?image=1.jpg;
You can set the type of your output image to JPG, GIF or PNG format like this: image.php?image=1.jpg&type=png; If you don’t specify the type of the output image, the script will output the image in the original format image.php?image=1.jpg;
To add a watermark to image you heave to set 2 variables: watermark_text and watermark_color(optional).Black will be use if you do not set the watermark_color;
Example:
1) image.php?image=1.jpg&watermark_text=1234567890&watermark_color=fffff;
2) image.php?image=1.jpg&watermark_text=1234567890;
Resizing images:
a. Exact size:
Variables: w and h
Example: image.php?image=1.jpg&w=100&h=100
b. Maxim size:
Variable: maxim_size
Example: image.php?image=1.jpg&maxim_size=300
c. Percent:
Variable: percent
Example: image.php?image=1.jpg&percent=50
d. Square:
Variable: square
Example: image.php?image=1.jpg&square=100
I use this type of resizing for creating thumbnails that heave the same size
It for study…
Continue reading