# ngx-image-convertor

> Angular library for image management

Latest version **0.0.7** (published 2020-03-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install ngx-image-convertor
pnpm add ngx-image-convertor
yarn add ngx-image-convertor
bun add ngx-image-convertor
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.7 |
| Published | 2020-03-08 |
| First published | 2020-02-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 186.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Nicolas Ehrenfeld |
| Maintainers | ehrenfeld |
| Keywords | angular, base64, web, front-end, png, svg, canvas |

## Links

- npm: https://www.npmjs.com/package/ngx-image-convertor
- Repository: https://github.com/MeetDeal/ngx-image-convertor
- Homepage: https://github.com/MeetDeal/ngx-image-convertor#readme
- Issues: https://github.com/MeetDeal/ngx-image-convertor/issues
- npm.io page: https://npm.io/package/ngx-image-convertor

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 0.0.7 (latest) — 2020-03-08
- 0.0.6 — 2020-03-08
- 0.0.5 — 2020-03-08
- 0.0.4 — 2020-02-29
- 0.0.3 — 2020-02-29
- 0.0.2 — 2020-02-29
- 0.0.1 — 2020-02-29

## README

# NgxImageConvertor

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.0.3.

## JavaScript VS Image, and why NgxImageConvertor

This library exists because the management of images, `<canvas>`, `<svg>` and base64 is not optimal with javascript or angular.
<br>
With this library **Angular** you can manage your `<img>` tags, image conversion to base64, canvas conversion to base64, svg tag conversion to base64
> **Note:** This library is in development, it is not yet finished

## How to use

Add import **`NgxImageConvertorService`** to top your ``component.ts``:
```angular2
    import {NgxImageConvertorService} from "ngx-image-convertor";
```

Inject **`NgxImageConvertorService`** to the constructor of your ``component.ts``:
```angular2
    constructor(private imageConvertorService: NgxImageConvertorService) {}
```

## Method List 

##### ConvertSvgByIdToBase64

````
    this.imageConvertorService.convertSvgByIdToBase64( id_of_your_SVG_tag: string, width_of_base64_ouput: number, height_of_base64_ouput: number, output_format: string,
         (base64) => {
              console.log(base64);
         }
    );
````

---
_Source: https://npm.io/package/ngx-image-convertor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
