|
|
|
exif_thumbnail search codefetch
Retrieve the embedded thumbnail of a TIFF or JPEG image
image_type_to_mime_type search codefetch
Get Mime-Type for image-type returned by getimagesize, exif_read_data, exif_thumbnail, exif_imagetype
cpdf_place_inline_image search codefetch
Places an image on the page
exif_imagetype search codefetch
Determine the type of an image
getimagesize search codefetch
Get the size of an image
|
| Most relevant API matches shown. View All. |
![]() |
|
|
FdnPHPforDW8/site_check/ch11/gallery_03.php (128 lines)
50 <div id="wrapper">
51 <div id="titlebar"><img src="images_common/bluebells_top.jpg" alt="East-West Seasons" width="738" height="122" /></div>
52 <div id="maincontent">
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 62 <h1>The changing seasons in Britain and Japan </h1>
63 <div id="pictureWrapper">
64 <div id="mainpic"><img <?php echo getDims($row_getPictures['image'], 'images_gallery/'); ?> src="images_gallery/<?php echo $row_getPictures['image']; ?>" alt="<?php echo $row_getPictures['caption']; ?>" /></div>
65 <p id="picCaption"><?php echo $row_getPictures['caption']; ?></p>
66 </div>
67 <div id="thumbnails">
68 <table>
69 <tr>
Additional matches viewable in cache of FdnPHPforDW8/site_check/ch11/gallery_03.php. FdnPHPforDW8/site_check/ch11/gallery_04.php (129 lines)
51 <div id="wrapper">
52 <div id="titlebar"><img src="images_common/bluebells_top.jpg" alt="East-West Seasons" width="738" height="122" /></div>
53 <div id="maincontent">
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 63 <h1>The changing seasons in Britain and Japan </h1>
64 <div id="pictureWrapper">
65 <div id="mainpic"><img <?php echo getDims($row_getPictures['image'], 'images_gallery/'); ?> src="images_gallery/<?php echo $row_getPictures['image']; ?>" alt="<?php echo $row_getPictures['caption']; ?>" /></div>
66 <p id="picCaption"><?php echo $row_getPictures['caption']; ?></p>
67 </div>
68 <div id="thumbnails">
69 <table>
70 <tr>
Additional matches viewable in cache of FdnPHPforDW8/site_check/ch11/gallery_04.php. |
![]() |
|
|
phphacks/slideshow/index.php (62 lines)
13 <style>
14 body { background: black; }
15 #thumbnails { height: 140px; width: 100%; overflow: auto; }
16 #pic { text-align: center; height: 400px; padding: 20px; }
17 </style>
18 <script>
19 var image_list = [
20 <?php $first = true; foreach( $files as $image ) { ?>
21 <?php echo( $first ? "" : ", " ); ?>"<?php echo( $image ); ?>"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 44 </head>
45 <body>
46 <div id="thumbnails">
47 <table width="100%">
48 <tr>
49 <?php $ind = 0; foreach( $files as $image ) { ?>
50 <td width="160" nowrap align="center">
51 <a href="javascript:switchimg( <?php echo($ind); ?> )">
Additional matches viewable in cache of phphacks/slideshow/index.php. phphacks/thumbs/mkthumbs.php (59 lines)
12 {
13 $im = imagecreatefromjpeg( "pics/$fname" );
14 $ox = imagesx( $im );
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 24 print "Creating thumb for $fname\n";
25
26 imagejpeg( $nm, "thumbs/$fname" );
27 }
28
29 print "Creating index.html\n";
30
31 ob_start();
32 ?>
33 <html>
34 <head><title>Thumbnails</title></head>
35 <body>
36 <table cellspacing="0" cellpadding="2" width="500">
Additional matches viewable in cache of phphacks/thumbs/mkthumbs.php. |
![]() |
|
|
chapter 15/cart.php (115 lines)
32 <td>Quantity</td>
33 <td>Item Image</td>
34 <td>Item Name</td>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 56 echo "<td>";
57 echo "<a href=\"getprod.php?prodid=" . $products_prodnum . "\">";
58 echo "THUMBNAIL<br>IMAGE</a></td>";
59 echo "<td>";
60 echo "<a href=\"getprod.php?prodid=" . $products_prodnum . "\">";
chapter 15/cbashop.php (44 lines)
23
24 // Show only Name, Price and Image
25 while ($row = mysql_fetch_array($results)) {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 27 echo "<tr><td align=\"center\">";
28 echo "<a href=\"getprod.php?prodid=" . $products_prodnum . "\">";
29 echo "<em>THUMBNAIL<br>IMAGE</em></a></td>";
30 echo "<td>";
31 echo "<a href=\"getprod.php?prodid=" . $products_prodnum . "\">";
chapter 15/checkout2.php (293 lines)
226 <td>Quantity</td>
227 <td>Item Image</td>
228 <td>Item Name</td>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 254 echo "<a href=\"getprod.php?prodid=" .
255 $products_prodnum . "\">";
256 echo "THUMBNAIL<br>IMAGE</td></a>";
257 echo "<td>";
258 echo "<a href=\"getprod.php?prodid=" .
chapter 07/check_image-rev03.php (133 lines)
9 //make variables available
10 $image_caption = $_POST['image_caption'];
11 $image_username = $_POST['image_username'];
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 92 //**INSERT THESE LINES
93
94 $newthumbname = $ImageThumb . $lastpicid . ".jpg";
95
96 //get the dimensions for the thumbnail
97 $thumb_width = $width * 0.10;
98 $thumb_height = $height * 0.10;
99
100 //create the thumbnail
101 $largeimage = imagecreatefromjpeg($newfilename);
102 $thumb = imagecreatetruecolor($thumb_width, $thumb_height);
103 imagecopyresampled($thumb, $largeimage, 0, 0, 0, 0,
Additional matches viewable in cache of chapter 07/check_image-rev03.php. |
![]() |
|
|
corephp/16-2.php (10 lines)
2 $file = 'waterfall.jpg';
3 $thumbnail = exif_thumbnail($file, $width, $height, $type);
4
5 if($thumbnail !== FALSE)
6 {
7 header("Content-type: " . image_type_to_mime_type($type));
8 print($thumbnail);
9 }
10 ?>
corephp/16-14.php (36 lines)
1 <?php
2 function makeThumbnail($source, $destination, $width, $height)
3 {
4 //load source image
5 if(!($sourceImage = @imagecreatefromjpeg($source)))
6 {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 26
27 //save image
28 imagepng($destinationImage, $destination);
29 }
30
31 makeThumbnail("waterfall.jpg", "waterfall_thumb.jpg", 64, 64);
32 ?>
33 <h1>Original</h1>
Additional matches viewable in cache of corephp/16-14.php. |
![]() |
|
|
Documents and Settings/matthewma/My Documents/phpdwmx/graphics/graphics.php (28 lines)
2
3 //load the image into memory and get it's properties
4 $img = imagecreatefrompng("goldengate.png");
5 $imgsz = getimagesize("goldengate.png");
6
7 //create new image for thumbnail 1/8 the size of the original
8 $thumb = imagecreate($imgsz[0]/8, $imgsz[1]/8);
9
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 12 $imgsz[0]/8, $imgsz[1]/8, $imgsz[0], $imgsz[1]);
13
14 //write the thumbnail to disk
15 imagepng($thumb, "goldengate_thumb.png");
16
17 //get the image size of the thumbnail for use in the html below
18 $thumbsz = getimagesize("goldengate_thumb.png");
19
Additional matches viewable in cache of Documents and Settings/matthewma/My Documents/phpdwmx/graphics/graphics.php. |
![]() |
|
|
progphp-examples/ch10/10-12.php (33 lines)
6 $top = pdf_add_bookmark($p, "Countries");
7 $im = pdf_open_png($p, "fr-flag.png");
8 pdf_add_thumbnail($p, $im);
9 pdf_close_image($p,$im);
10 $font = pdf_findfont($p,"Helvetica-Bold","host",0);
11 pdf_setfont($p, $font, 20);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 16 pdf_begin_page($p,595,842);
17 $im = pdf_open_png($p, "nz-flag.png");
18 pdf_add_thumbnail($p, $im);
19 pdf_close_image($p,$im);
20 pdf_setfont($p, $font, 20);
21 pdf_add_bookmark($p, "Denmark", $top);
|
|
|