Is there any way to crop larger?

#6
[eluser]Mat-Moo[/eluser]
Been playing with this today as well, watermark works perfect! Create a watermark same size as your thumbnail, save it as a JPEG (Don't use GIF!)
Code:
list($width,$height)=getimagesize($filenamedata["full_path"]);
            
            $config['source_image'] = $_SERVER[ 'DOCUMENT_ROOT' ].'/assets/blank100_100.jpg';
            $config['wm_overlay_path'] = $filenamedata["full_path"];
            $config['wm_type'] = "overlay";
            $config['wm_hor_offset']=round((100-$width)/2);
            $config['wm_vrt_offset']=round((100-$height)/2);
            $config['wm_opacity'] = 100;
            $config['new_image'] = $filenamedata["full_path"];
            $this->image_lib->initialize($config);
            if (!$this->image_lib->watermark())
            {
                print "watermark failed";
            }
Works great!


Messages In This Thread
Is there any way to crop larger? - by El Forum - 11-18-2009, 01:53 PM
Is there any way to crop larger? - by El Forum - 11-18-2009, 08:08 PM
Is there any way to crop larger? - by El Forum - 11-18-2009, 11:03 PM
Is there any way to crop larger? - by El Forum - 11-19-2009, 12:06 AM
Is there any way to crop larger? - by El Forum - 11-19-2009, 12:13 AM
Is there any way to crop larger? - by El Forum - 11-19-2009, 11:39 AM
Is there any way to crop larger? - by El Forum - 11-19-2009, 01:07 PM
Is there any way to crop larger? - by El Forum - 11-19-2009, 04:21 PM
Is there any way to crop larger? - by El Forum - 11-19-2009, 09:54 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.