- We want users to upload a badge: an avatar within a circle.
- Create a function taking a png as input and verifying that: Size = 512x512
- The only non-transparent pixels are within a circle.
- That the colors is the badge give a "happy" feeling.
- Additionally, you can create a parallel function that converts the given image (of any format) into the specified object.
- You can use the language of your choice
- Node.js
- Yarn
- Git
- Clone the repo
- Run
yarn install
- Run
yarn start
Note: You can change the file path by passing the path as an argument to the start
script. For example: yarn start ./path/to/file.png