Skip to content

Commit

Permalink
Merge pull request #11 from romainneutron/photoshop-preview
Browse files Browse the repository at this point in the history
Add photoshop preview extraction
  • Loading branch information
romainneutron committed Aug 7, 2013
2 parents 396ff78 + 3e43ff4 commit 7c4c8dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -5,6 +5,7 @@ CHANGELOG

* Add possibility to erase metadata except ICC profile.
* Fix sync mode support.
* Add support for Photoshop preview extraction.

* 0.2.2 (2013-04-17)

Expand Down
4 changes: 3 additions & 1 deletion lib/PHPExiftool/PreviewExtractor.php
Expand Up @@ -33,7 +33,9 @@ public function extract($pathfile, $outputDir)
throw new LogicException(sprintf('%s is not writable', $outputDir));
}

$command = "-if " . escapeshellarg('$jpgfromraw') . " -b -jpgfromraw "
$command = "-if " . escapeshellarg('$photoshopthumbnail') . " -b -PhotoshopThumbnail "
. "-w " . escapeshellarg(realpath($outputDir) . '/PhotoshopThumbnail%c.jpg') . " -execute "
. "-if " . escapeshellarg('$jpgfromraw') . " -b -jpgfromraw "
. "-w " . escapeshellarg(realpath($outputDir) . '/JpgFromRaw%c.jpg') . " -execute "
. "-if " . escapeshellarg('$previewimage') . " -b -previewimage "
. "-w " . escapeshellarg(realpath($outputDir) . '/PreviewImage%c.jpg') . " "
Expand Down

0 comments on commit 7c4c8dc

Please sign in to comment.