Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
druizgui committed Jun 22, 2018
1 parent 9bd1a4f commit 42b1c60
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,22 @@

This is a console tool in Net core 2.0 that allow you to read images and convert to HTML image tag using base64 codification.

This tool is very useful for create rich content and use inside html email content for prevent email tools incompatibility.
This tool is very useful for create rich content and use inside HTML email content for prevent incompatibilities.

Use img base64 tag like this:
The tool read images from a specified directory and generates HMTL file with the `img` tags.

## Usage

### embed style
img2htm <path>

`<path>` The path must be contains images in the top level.

In the same directory the tool generates the file `ImagesAsBase64.html`. This file
contains images as base64 format and the attribute `title` with the file name.

Use Img Base64 generated tag like this:

## Embed style

Use like a style to apply:

Expand All @@ -23,9 +33,9 @@ This allow you to use the image multiple times in the same mail and save mail si

**Remember**: don't use `<head>` tag in email content nd prevent use elements with background image style.

### tag
## Tag

Use like a style to apply:
Use like a style for apply:

<img title="smile.jpg" src="data:image/jpg;base64,/9j/4AAQSkZJRgABAQEAfwB/AAD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/2wBDAQMEBAUEBQkFBQkUDQsNFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBT/wAARCAAaABoDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx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