$tmpimage = $this->create_transparent_image($wsizes->width, $wsizes->height); imagecopy($tmpimage, $image, 0, 0, $x, $y, $wsizes->width, $wsizes->height); imagecopy($tmpimage, $watermark, 0, 0, 0, 0, $wsizes->width, $wsizes->height); imagealphablending($image, false); imagecopymerge($image, $tmpimage, $x, $y, 0, 0, $wsizes->width, $wsizes->height, $this->config['watermark_alpha']); imagealphablending($image, true);
'default' => array( 'name' => 'value', 'name' => 'value', 'name' => 'value' ), 'other' => array( 'name' => 'value', 'name' => 'value', 'name' => 'value' ), 'another' => array( 'name' => 'value', 'name' => 'value', 'name' => 'value' )
array('resize_crop', 150, 150), array('save', 'prepend_text_$1_thumb_150x150_100')
Image::run_preset('thumbnail', 'filename_goes_here')
'actions' => array( array('crop_resize', 100, 100), )
'actions' => array( array('resize', 200), )
<?php class MyImage extends Image { public static function gradientmap() { return 'bla'; } }then, in my controller method, I call it
MyImage::load($facebook_image_location."_original.jpg") ->gradientmap('#000000','#8dbfd5') ->output("jpeg");
It looks like you're new here. If you want to get involved, click one of these buttons!