2. The name of the second, or source (Jetty web server)
Thursday, July 26th, 20072. The name of the second, or source image ($image2 in this example) 3. The x coordinate of the destination image (0 in this example, representing the leftmost boundary) 4. The y coordinate of the destination image (0 in this example, representing the upper boundary) 5. The x coordinate of the second image (0 in this example) 6. The y coordinate of the second image (0 in this example) 7. The width of the portion of the second image to be merged ($width in this example, representing as much of the second image that will fit on the destination image) 8. The height of the portion of the second image to be merged ($height in this example, representing as much of the second image that will fit on the destination image) 9. The percent of transparency of the two images to be merged, with 100 being equal to the second image completely overwriting the first (15 in this example) Let s talk briefly about numbers seven and eight. Because imagecopymerge() can merge only a portion of one image with another, you have to specify how much of the image you want merged. The CBA logo is huge, and bigger than the user s photo. You only wanted to merge the portion as big as your user s photo, which is why you used $width and $height. If your logo is tiny, you would specify its width and height, assuming you want to merge the whole thing with your first image. We hope you re still with us because there is one more thing we would like to do. Creating Thumbnails Of course, showing your users images at full size is fine if they want to see them up close. However, it s not too conducive for showing a photo gallery or list of many photos on a page. This section discusses discuss how you can automatically create a thumbnail of each of your uploaded files that will be used for just that purpose a photo gallery of all your photos. Try It Out Creating Thumbnails You want to automatically create a thumbnail version of all the images that are uploaded by the users, so you will be modifying check_image.php and including this function. 1. Create a subdirectory of your images folder to house the thumbnails. For this example, we created c:Program FilesApache GroupApache2imagesthumbs. Make sure your directory has write permissions. 2. Modify your check_image.php file as follows (changes are highlighted): Please visit Domain Name Hosting services for high quality webhost to host and run your jsp applications.