mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +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
|
* PHPExiftool throws exception on some files not supported
|
||||||
*/
|
*/
|
||||||
try {
|
try {
|
||||||
|
$this->app['exiftool.writer']->reset();
|
||||||
$this->app['exiftool.writer']->write($this->getFile()->getRealPath(), $metadatas);
|
$this->app['exiftool.writer']->write($this->getFile()->getRealPath(), $metadatas);
|
||||||
} catch (PHPExiftoolException $e) {
|
} catch (PHPExiftoolException $e) {
|
||||||
|
|
||||||
|
@@ -303,9 +303,10 @@ class task_period_writemeta extends task_databoxAbstract
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->dependencyContainer['exiftool.writer']->reset();
|
||||||
foreach ($tsub as $name => $file) {
|
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 {
|
try {
|
||||||
$this->dependencyContainer['exiftool.writer']->write($file, $metadatas);
|
$this->dependencyContainer['exiftool.writer']->write($file, $metadatas);
|
||||||
|
Reference in New Issue
Block a user