Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*---------------------------------------------------------------------------*/
- include('./effects/crop.php');
- include('./effects/scale.php');
- /*---------------------------------------------------------------------------*/
- $crop = new EffectCrop(array(
- 'bg' => '000000',
- 'width' => 960,
- 'xalign' => 'center',
- 'yalign' => 'top'
- ));
- $scale = new EffectScale(array(
- 'bg' => '000000',
- 'width' => 582,
- 'height' => 347,
- 'trim' => true,
- 'xalign' => 'center',
- 'yalign' => 'top'
- ));
- $crop->apply($image);
- $scale->apply($image);
- /*---------------------------------------------------------------------------*/
- ?>
Add Comment
Please, Sign In to add comment