Changes between Version 5 and Version 6 of TileStitchingPrinting

Show
Ignore:
Timestamp:
06/20/12 08:38:39 (11 months ago)
Author:
guest
Comment:

fixes to tilestitching PHP

Legend:

Unmodified
Added
Removed
Modified
  • TileStitchingPrinting

    v5 v6  
    8181      $h = imagesy($src_im); 
    8282      $cut = imagecreatetruecolor($src_w, $src_h); 
    83       imagecopy($cut, $dst_im, 0, 0, $dst_x, $dst_y, $src_w, $src_h); 
    8483      imagecopymerge($dst_im, $cut, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h, $opacity); 
    8584  } 
     
    114113 
    115114     // 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()) ); 
    117116     file_put_contents($tempfile,file_get_contents($tile->url)); 
    118117     list($tilewidth,$tileheight,$tileformat) = @getimagesize($tempfile);