<commit_before># Meme

Contributors: <NAME>

Tags: meme

Stable tag: 0.1.0

License: GPLv2 or later

License URI: http://www.gnu.org/licenses/gpl-2.0.html

## Description

A meme generator used to create social sharing images

## Design decisions

Images are base64 and javascript is inline because of some strange canvas constructs which don't allow external data sources which can happen when using CDNs or other stuff.

I chose middleman because there are great sensible defaults, but there's no reason this couldn't be a single page html file.


## Extras

### Add fonts
Add your fonts in `stylesheets/_fonts.scss`

Fonts are handled as data attributes in `source/partials/_editor.html.erb`

### Add watermark

Convert an svg to base64 and add here<commit_msg>Added install info to readme<commit_after># Meme

Contributors: <NAME>

Tags: meme

Stable tag: 0.1.0

License: GPLv2 or later

License URI: http://www.gnu.org/licenses/gpl-2.0.html

## Description

A meme generator used to create social sharing images

## Install

* `git clone https://github.com/yurivictor/meme.git`
* `bundle install`
* `bundle exec middleman`


## Design decisions

Images are base64 and javascript is inline because of some strange canvas constructs which don't allow external data sources which can happen when using CDNs or other stuff.

I chose middleman because there are great sensible defaults, but there's no reason this couldn't be a single page html file.


## Extras

### Add fonts
Add your fonts in `stylesheets/_fonts.scss`

Fonts are handled as data attributes in `source/partials/_editor.html.erb`

### Add watermark

Convert an svg to base64 and [add here](https://github.com/yurivictor/meme/blob/master/source/partials/_javascripts.html.erb#L158)
{'fraction_non_alphanumeric': 0.07894736842105263, 'fraction_numerical': 0.013157894736842105, 'mean_word_length': 4.414860681114551, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3534407', 'n_tokens_mistral': 551, 'n_tokens_neox': 513, 'n_words': 218}