getResizedImage() Examples

Actual size

Crop to 300px'auto'

$this->getResizedImage($this->document->getValue('document_thumbnailimage') , 300 , 'auto'));

Crop to 'auto'x150px

$this->getResizedImage($this->document->getValue('document_thumbnailimage') , 'auto' , 150));

Crop to 300x300px

$this->getResizedImage($this->document->getValue('document_thumbnailimage') , 300 , 300 , 'crop'));

Crop to 300x300px left aligned

$this->getResizedImage($this->document->getValue('document_thumbnailimage') , 300 , 300 , 'crop' , 'FFFFFF' , 'auto' , 'auto' , 'auto' , 0));

Crop to 300x50px top aligned

$this->getResizedImage($this->document->getValue('document_thumbnailimage') , 300 , 50 , 'crop' , 'FFFFFF' , 0 , 'auto' , 'auto' , 0));

Crop to 150x300px bottom right aligned

$this->getResizedImage($this->document->getValue('document_thumbnailimage') , 100 , 300 , 'crop' , 'FFFFFF' , 'auto' , 0 , 0 , 'auto'));

Add Whitespace to 300x300px bottom 15px offset

$this->getResizedImage($this->document->getValue('document_thumbnailimage') , 300 , 300 , 'whitespace' , 'FFFFFF' , 'auto' , 'auto' , 15 , 'auto'));

Add whitespace to 300x300px

$this->getResizedImage($this->document->getValue('document_thumbnailimage') , 300 , 300 , 'whitespace'));

Add whitespace to 500x100px left aligned

$this->getResizedImage($this->document->getValue('document_thumbnailimage') , 500 , 75 , 'whitespace' , 'FFFFFF' , 'auto' , 'auto' , 'auto' , 0));

Add whitespace to 500x100px right aligned

$this->getResizedImage($this->document->getValue('document_thumbnailimage') , 500 , 75 , 'whitespace' , 'FFFFFF' , 'auto' , 0 , 'auto' , 'auto'));

Add color fill to 300x300px

$this->getResizedImage($this->document->getValue('document_thumbnailimage') , 300 , 300 , 'whitespace' , 'FF0000'));

Add color fill to 300x300px align top

$this->getResizedImage($this->document->getValue('document_thumbnailimage') , 300 , 300 , 'whitespace' , 'FF0000' , 0 , 'auto' , 'auto' , 'auto'));

Add color fill to 300x300px align bottom

$this->getResizedImage($this->document->getValue('document_thumbnailimage') , 300 , 300 , 'whitespace' , 'FF0000' , 'auto' , 'auto' , 0 , 'auto'));

Contact Us

Address: 22a Fishergate York, YO10 4AB · Tel: 01904 636677 · Email: info@dotadmin.com