Merge pull request #685 from romainneutron/icc-profiles

[3.8] Fix ICC profiles management
This commit is contained in:
Romain Neutron
2013-10-09 04:13:52 -07:00
2 changed files with 3 additions and 1 deletions

View File

@@ -143,6 +143,7 @@ class File
* PHPExiftool throws exception on some files not supported
*/
try {
$this->app['exiftool.writer']->reset();
$this->app['exiftool.writer']->write($this->getFile()->getRealPath(), $metadatas);
} catch (PHPExiftoolException $e) {

View File

@@ -303,9 +303,10 @@ class task_period_writemeta extends task_databoxAbstract
);
}
$this->dependencyContainer['exiftool.writer']->reset();
foreach ($tsub as $name => $file) {
$this->dependencyContainer['exiftool.writer']->erase($name != 'document' || $this->clear_doc);
$this->dependencyContainer['exiftool.writer']->erase($name != 'document' || $this->clear_doc, true);
try {
$this->dependencyContainer['exiftool.writer']->write($file, $metadatas);