Skip to content

Instantly share code, notes, and snippets.

@samayo
Created March 12, 2014 11:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samayo/9504908 to your computer and use it in GitHub Desktop.
Save samayo/9504908 to your computer and use it in GitHub Desktop.
Comparing style
<?php
$a->crop(["width"=>100, "height"=>100])
->watermark('logo.png')
->upload($_FILES["name"]);
# compare with below approach.
$b->set([
"crop-width"=>100,
"crop-height"=>100,
"watermark"=>"logo.png",
]);
$b->upload($_FILES["name"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment