Browse Source

all files created as part of creating derivative should now be deleted and renamed image process inc

pull/122/merge
Paul Pound 13 years ago
parent
commit
fa9f1b60dc
  1. 1
      islandora_basic_image/includes/image.process.inc
  2. 2
      islandora_basic_image/islandora_basic_image.module

1
islandora_basic_image/includes/image_process.inc → islandora_basic_image/includes/image.process.inc

@ -19,6 +19,7 @@ function islandora_basic_image_create_all_derivatives($object){
if (islandora_basic_image_create_derivative($medium_file, 500, 700)) { if (islandora_basic_image_create_derivative($medium_file, 500, 700)) {
islandora_basic_image_add_datastream($object, 'MEDIUM_SIZE', $medium_file); islandora_basic_image_add_datastream($object, 'MEDIUM_SIZE', $medium_file);
} }
file_delete($original_file);
} }

2
islandora_basic_image/islandora_basic_image.module

@ -210,7 +210,7 @@ function islandora_basic_image_islandora_ingest_post_ingest($object) {
} }
foreach ($models as $model) { foreach ($models as $model) {
if (isset($cmodel_list[$model])) { if (isset($cmodel_list[$model])) {
module_load_include('inc', 'islandora_basic_image', 'includes/image_process'); module_load_include('inc', 'islandora_basic_image', 'includes/image.process');
islandora_basic_image_create_all_derivatives($object); islandora_basic_image_create_all_derivatives($object);
} }
} }

Loading…
Cancel
Save