Skip to content

Commit

Permalink
Fix color parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 authored Oct 1, 2023
1 parent 04bc785 commit 06b1d24
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions swatch/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from swatch.image import ImageProcessor
from swatch.models import Detection
from swatch.snapshot import SnapshotProcessor
from swatch.util import mask_image
from swatch.util import mask_image, parse_colors_from_image


logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -88,9 +88,7 @@ def test_colors() -> Any:
)

test_image = request.files.get("test_image")
main_color, palette = current_app.image_processor.parse_colors_from_image(
test_image
)
main_color, palette = parse_colors_from_image(test_image)

return make_response(
jsonify(
Expand Down

0 comments on commit 06b1d24

Please sign in to comment.