function imagefield_crop_file_admin_original_path in Imagefield Crop 6
2 calls to imagefield_crop_file_admin_original_path()
- imagefield_crop_recrop in ./
imagefield_crop.drush.inc - Utility function used if you want to recrop all images in a specific node. This might be useful if you want to reprocess your nodes using a different toolkit, or a different toolkit configuration
- imagefield_crop_widget_value in ./
imagefield_crop_widget.inc
File
- ./
imagefield_crop_file.inc, line 42 - hook_file and imagefield_crop file functions.
Code
function imagefield_crop_file_admin_original_path($file) {
// the displayed and original are the same. Yay Jcrop!
$original_path = imagefield_crop_file_admin_crop_display_path($file);
if (!file_exists($original_path)) {
// orig file does not exist, use what we have as original
file_copy($file['filepath'], $original_path);
}
return $original_path;
}