Welcome Guest, Not a member yet? Register   Sign In
Added to Wiki: image resizing and squaring library
#6

[eluser]JoostV[/eluser]
Code:
$sourceimagepath = '/path/to/image/folder/';
$sourceimagename = 'test.png';
$sourcefile = $sourceimagepath . $sourceimagename;
$destinationpath = '/path/to/destination/folder/';
$this->load->library('images');

// Resize the original image and store it
$destinationfile = $destinationpath . '/sq_' . $sourceimagename;
$this->images->squareThumb($sourcefile, $destinationfile, 160);


Messages In This Thread
Added to Wiki: image resizing and squaring library - by El Forum - 12-07-2009, 05:29 AM
Added to Wiki: image resizing and squaring library - by El Forum - 02-03-2010, 03:16 PM
Added to Wiki: image resizing and squaring library - by El Forum - 02-04-2010, 05:12 AM
Added to Wiki: image resizing and squaring library - by El Forum - 02-04-2010, 07:29 AM
Added to Wiki: image resizing and squaring library - by El Forum - 06-07-2010, 03:02 AM
Added to Wiki: image resizing and squaring library - by El Forum - 06-07-2010, 03:46 AM
Added to Wiki: image resizing and squaring library - by El Forum - 06-07-2010, 05:08 AM
Added to Wiki: image resizing and squaring library - by El Forum - 06-08-2010, 02:22 AM
Added to Wiki: image resizing and squaring library - by El Forum - 06-08-2010, 09:37 AM
Added to Wiki: image resizing and squaring library - by El Forum - 06-08-2010, 10:06 AM
Added to Wiki: image resizing and squaring library - by El Forum - 04-21-2011, 05:55 AM
Added to Wiki: image resizing and squaring library - by El Forum - 04-27-2011, 05:04 AM
Added to Wiki: image resizing and squaring library - by El Forum - 04-27-2011, 05:11 AM
Added to Wiki: image resizing and squaring library - by El Forum - 04-27-2011, 05:40 AM
Added to Wiki: image resizing and squaring library - by El Forum - 04-27-2011, 06:29 AM
Added to Wiki: image resizing and squaring library - by El Forum - 04-28-2011, 06:36 AM
Added to Wiki: image resizing and squaring library - by El Forum - 06-24-2011, 01:14 AM
Added to Wiki: image resizing and squaring library - by El Forum - 06-24-2011, 01:27 AM
Added to Wiki: image resizing and squaring library - by El Forum - 07-18-2011, 11:32 AM
Added to Wiki: image resizing and squaring library - by El Forum - 05-06-2012, 01:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB