mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 22:13:13 +00:00
Merge pull request #685 from romainneutron/icc-profiles
[3.8] Fix ICC profiles management
This commit is contained in:
@@ -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) {
|
||||
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user