public function ImageCrop::setCropDestinations in Image javascript crop 7
Set the crop destinations.
File
- includes/
imagecrop.class.inc, line 285 - Imagecrop class to handle the javascript imagecrop.
Class
- ImageCrop
- @file Imagecrop class to handle the javascript imagecrop.
Code
public function setCropDestinations() {
$this->styleDestination = image_style_path($this->imageStyle['name'], $this->file->uri);
if (file_uri_scheme($this->file->uri) != 'public') {
$this->cropDestination = $this->styleDestination;
}
else {
$this->cropDestination = image_style_path('_imagecrop_temp', $this->file->uri);
}
}