summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2015-12-08 14:26:05 -0800
committerJason Ekstrand <jason.ekstrand@intel.com>2015-12-08 14:34:48 -0800
commit90f603156cd202afb9c6c14292809adc3f29d077 (patch)
tree6c66036cd406ef1d38a0ae003c9bf08a493a888c /misc
parente7451f4361c5c79b4f96297a1aff6630a3aab083 (diff)
cru: Also use gen_image for cropping
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/gen_image2
1 files changed, 2 insertions, 0 deletions
diff --git a/misc/gen_image b/misc/gen_image
index 50d79fa..b15f096 100755
--- a/misc/gen_image
+++ b/misc/gen_image
@@ -44,6 +44,8 @@ def main():
if operation == 'scale':
res = cv2.resize(img, (width, height), interpolation = cv2.INTER_CUBIC)
+ elif operation == 'crop':
+ res = img[:width, :height]
else:
die('invalid operation: {!r}'.format(dest_filename))