Advertisement
Guest User

Untitled

a guest
Sep 17th, 2014
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. gm = require( 'gm' );
  2.  
  3. gm()
  4. .in( '-page', '+0+0' )
  5. .in( 'public\media\background.png' ) //Load the background
  6. .in( '-page', '+150+150' ) //X and Y position of the tree
  7. .in( 'public\media\tree.png' )
  8. .mosaic()
  9. .write( 'result.png', function (err) {
  10.  
  11. if ( !err ) console.log( err )
  12.  
  13. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement