JSPM

  • Created
  • Published
  • Downloads 34202
  • Score
    100M100P100Q152962F
  • License ISC

angular2+ module for compressing any image format

Package Exports

  • ngx-image-compress

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ngx-image-compress) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ngx-simple-crypt

Angular utility for compressing image to a satisfying size, that you choose

Warning: working project, please read "Updates" sections above

Import

npm i ngx-image-compress
# or 
yarn add ngx-image-compress

Usage

No module import needed, you can use anywhere:

import {ImageCompress} from "ngx-image-compress";
// To get your image data source string (aka "data:image/jpeg:base64...")
ImageCompress.uploadFile(...)
// To start the compression
ImageCompress.compress(...)

How it works?

We will use Renderer2, and transform the image multiple time through HTML canvas.

Update

####2017/12/06

Upload to Github

Still a some fixes to be make as static, external library