Changes between Version 5 and Version 6 of TileStitchingPrinting
- Timestamp:
- 06/20/12 08:38:39 (11 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TileStitchingPrinting
v5 v6 81 81 $h = imagesy($src_im); 82 82 $cut = imagecreatetruecolor($src_w, $src_h); 83 imagecopy($cut, $dst_im, 0, 0, $dst_x, $dst_y, $src_w, $src_h);84 83 imagecopymerge($dst_im, $cut, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h, $opacity); 85 84 } … … 114 113 115 114 // fetch the tile into a temp file, and analyze its type; bail if it's invalid 116 $tempfile = sprintf("%s/%s.img", TEMP_DIR, md5(microtime().mt_rand()) );115 $tempfile = sprintf("%s/%s.img", $TEMP_DIR, md5(microtime().mt_rand()) ); 117 116 file_put_contents($tempfile,file_get_contents($tile->url)); 118 117 list($tilewidth,$tileheight,$tileformat) = @getimagesize($tempfile);
