To convert a image to meme locally
mkmeme create-meme "New Feature|Developers" -i "sample/input.jpg" -o 'sample/output.jpg' -s 1.6 -p "20|500" -a 'C'
To convert an online image to meme
mkmeme create-meme "All memes are dying|This meme:" -i "https://i.imgflip.com/2gnnjh.jpg" -p "10|150"
mkmeme create-meme <text>
where <text>
contains multiple lines delimited by |
symbol
Short Flag | Long Name | Type | Description |
---|---|---|---|
-i | --imagein | string | Input Image - provide path |
-o | --imageout | string | Output Image - provide path |
-s | --scale | float | Multiplier to adjust the image zoom/scale. Default is 1 |
-p | --position | string | Provide values seperated by pipe symbol to place the text at the respective Y-coordinate |
-a | --align | string | Provide a alignment value. Default is center (C) . Possible values are [L,C,R] |
mkmeme create-meme "New Feature|Developers" -i "sample/input.jpg" -o 'sample/output.jpg' -s 1.6 -p "20|500" -a 'C'
From the internet
mkmeme create-meme "All memes are dying|This meme:" -i "https://i.imgflip.com/2gnnjh.jpg" -p "10|150"
mkmeme "When production goes down"
mkmeme "*PHP" -i "https://cdn.ebaumsworld.com/mediaFiles/picture/718392/85780332.jpg" -p ",560"
mkmeme "Who drank the milk|*me" -p "10|[200,200]" -a "C"
mkmeme "Who drank the milk|*me" -p "10|[200,200]" -a "C" -f "opensans-black"
- Fork this repository and
cd
into the directory - Do
npm i -g
- Run the test command to generate a sample MEME
- Create a feature branch and start making changes
- Once you are done, raise a PR.
- Changes (if any) will be suggested. Kindly make the necessary changes.
- Upon approval, PR will be merged !!! 🎉
Contributions are welcome !