Skip to content

Instantly share code, notes, and snippets.

@samayo
Created Mar 12, 2014
Embed
What would you like to do?
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