https://github.com/dashawk/angular-text-to-image
Converts any text into an image and retains formating
https://github.com/dashawk/angular-text-to-image
Last synced: 12 days ago
JSON representation
Converts any text into an image and retains formating
- Host: GitHub
- URL: https://github.com/dashawk/angular-text-to-image
- Owner: dashawk
- License: mit
- Created: 2017-06-21T09:21:16.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-30T06:31:28.000Z (about 9 years ago)
- Last Synced: 2026-01-23T05:36:07.653Z (6 months ago)
- Language: JavaScript
- Size: 64.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Introduction
[](https://travis-ci.org/dashawk/angular-text-to-image)
Angular directive to convert any text into an image.
*Need Contributors.*
## Installation
To install, run:
```cli
bower install angular-text-to-image --save
```
then add `jmp.textToImage` as dependency:
```javascript
(function () {
'use strict';
angular.module('mgApp', ['jmp.textToImage']);
...
```
## Usage
You can use this directive like this:
```html
Get Data
```
and in your controller:
```javascript
(function () {
'use strict';
angular
.module('myApp')
.controller('testController', function ($scope) {
$scope.options = {
text: 'The Quick Brown Fox',
fontSize: 37,
width: 200,
height: 100,
textLeft: 0,
textTop: 0,
fontFamily: 'Mr De Haviland, cursive'
};
$scope.getOutput = function () {
var output = $scope.options.getData();
console.log('Output', output);
};
});
}());
```
## License
This project is licensed under the terms of the MIT license.