diff --git a/README.md b/README.md index d1fc2e4..8efc912 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,22 @@ -TODO: -- Actual readme -- Transparency support -- Prettier frontend \ No newline at end of file +# Partify + +## What does this actually do? + - Great question! The magic behind the scenes takes an image and applies a Red, Blue, Green, Aplha (RGBA) filter to the image. The RGBA filter is what gives the illusion this image is having a party. + +## I love this! Do I need to download anything to get started? + - Nope! This web application is deployed to heroku. You can get started with Partify by clicking [this link](https://ancient-fjord-96143.herokuapp.com/). + +## How can I see this in action? +- Original image: + +![LGBT Heart](static/images/lgbtheart.png) + +- Party Image: + +![LGBT Heart Party](static/images/party_lgbtheart.gif) + +## I want to contribute. How can I contribute? + - We're always accepting pull requests. So fork the repo and then start developing. + +## TODO: +- Transparency support \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 750e18b..6d9f02b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,5 +2,7 @@ version: '3' services: app: build: . + volumes: + - .:/app ports: - "3333:3333" \ No newline at end of file diff --git a/partify/webapp.py b/partify/webapp.py index 5dfb5ef..95c109b 100644 --- a/partify/webapp.py +++ b/partify/webapp.py @@ -8,7 +8,7 @@ async def partify_image(request): request_body = await request.post() try: result = partify(request_body['image'].file.read()) - except KeyError: + except AttributeError: return web.json_response({'error': 'Missing image'}, status=400) except IOError: return web.json_response({'error': 'Image could not be processed'}, status=400) diff --git a/static/index.html b/static/index.html index 0d9297c..90a4de4 100644 --- a/static/index.html +++ b/static/index.html @@ -1,8 +1,27 @@ - + - Partify - + 🎉 Partify 🎉 + + + + + + + -

Partify

-

- Every emoji should be a party -

-
- - -
-
+
+

Partify

+

🥳 Every emoji should be a party 🥳

+
+
+
+
+
Before:
+
+ +
+
After:
+
+
- + \ No newline at end of file