What I'm try to do , Is that i have a form that submits an image.
it then crops bits of the image into new images , i want to display these as the return of the submission of the form.
first part is with SimpleImageField or Uploadify, no idea about splitting the image up...
what I'm not sure of how do do is to pass the paths to the images i have created to the template.
You can pass data into a template in many ways, is this data written to the database? If so place...
function CroppedImages() {
return DataObject::get('MyCroppedImages');
}
if it isn't then simply place your data into the same structure manually...
function CroppedImages() {
$arr = array('data1','data2');
$dos= new DataObjectSet();
foreach ($arr as $str) {
$do= new DataObject();
$do->ImageName = $str;
$dos->push($do);
}
return $dos;
}