diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-23 17:13:58 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-23 17:13:58 +0000 |
commit | c0049dce03920bfd0e841c6a7a0a7d0a4c7c2c5c (patch) | |
tree | db898791346a7cfa4458709f76dd39eaaeddf7a4 /core/helpers/graphics.php | |
parent | 2ed850652b30590cc685a2db74c5367f0d533486 (diff) |
1) Optimize the loop in graphics::generate so it uses the $ops as the
key and path. This way it won't try to generate a resize for movies.
2) Changed the options on the ffmpeg command in movie::extract_image
so we actually see a frame not the black one that starts the movie.
Diffstat (limited to 'core/helpers/graphics.php')
-rw-r--r-- | core/helpers/graphics.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/helpers/graphics.php b/core/helpers/graphics.php index 8418bd6b..a03d1f75 100644 --- a/core/helpers/graphics.php +++ b/core/helpers/graphics.php @@ -104,9 +104,7 @@ class graphics_Core { return; } - foreach (array("thumb" => $item->thumb_path(), - "resize" => $item->resize_path()) as $target => $output_file) { - + foreach ($ops as $target => $output_file) { if ($input_item->is_movie()) { // Convert the movie to a JPG first movie::extract_frame($input_file, $output_file); @@ -139,6 +137,7 @@ class graphics_Core { $item->resize_dirty = 0; } $item->save(); + print "exiting generate\n"; } /** |