Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion color_extractor/resize.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import division
import numpy as np
from skimage.transform import resize

Expand Down Expand Up @@ -37,7 +38,7 @@ def _resize(self, img):
src_h, src_w = img.shape[:2]
dst_h = self._settings['rows']
dst_w = int((dst_h / src_h) * src_w)
return resize(img, (dst_h, dst_w))
return resize(img, (dst_h, dst_w), mode='constant')

def _crop(self, img):
src_h, src_w = img.shape[:2]
Expand Down