Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
Select the first image in a multi-image file format such as tiff when…
Browse files Browse the repository at this point in the history
… generating a still.
  • Loading branch information
fmeisschaert committed Nov 13, 2017
1 parent 184a42d commit 2e0076c
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -73,6 +73,10 @@ class mediamosa_tool_image {
// Source.
$mediafile_source = mediamosa_storage::get_realpath_mediafile($mediafile_id_source);

// Select the first image in a multi-image file format such as tiff. (mind the shell escaping for [])
// This is a nop for single-image file formats.
$mediafile_source .= '"[0]"';

// Dest.
$mediafile_dest = mediamosa_storage::get_realpath_temporary_file($job_info['job_id'] . sprintf(mediamosa_settings::STILL_EXTENSION, 1) . '.jpeg');

Expand Down

0 comments on commit 2e0076c

Please sign in to comment.