From 45f9912aa850546e319e32a4052517d67f4e3d8f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 15 Oct 2013 15:26:04 +0100 Subject: Allow no-stretch scaling of video content. --- src/lib/image.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/lib/image.cc') diff --git a/src/lib/image.cc b/src/lib/image.cc index 9a3aa8d45..d56b8763a 100644 --- a/src/lib/image.cc +++ b/src/lib/image.cc @@ -155,10 +155,7 @@ Image::post_process (string pp, bool aligned) const shared_ptr Image::crop (Crop crop, bool aligned) const { - libdcp::Size cropped_size = size (); - cropped_size.width -= crop.left + crop.right; - cropped_size.height -= crop.top + crop.bottom; - + libdcp::Size cropped_size = crop.apply (size ()); shared_ptr out (new Image (pixel_format(), cropped_size, aligned)); for (int c = 0; c < components(); ++c) { -- cgit v1.2.3