smsqert.blogg.se

Angular image compress
Angular image compress







angular image compress

angular.module('myApp', 'ngImageCompress') This is how you can achieve what you want. This module depends on angularjs, so make sure you've added angularjs dependency and then angular-image-compress.js.

#Angular image compress how to#

So how to reduce the size of images while uploading to database without affecting too much image quality) Also I don't want validation to restrict user selecting images with size greater that 170KB. This Angular directive compresses jpeg or png files using angularjs on client side. I need to store image with maximum size as 170KB (Client Requirement). Sample images provided by Windows7 (Chrysanthemum.jpg, Desert.jpg etc) having sizes greater than 500KB. A angular-cli project based on rxjs, tslib, zone.js, angular/core, angular/forms, angular/common, angular/router, angular/compiler, ngx-image-compress, angular/animations, angular/platform-browser and angular/platform-browser-dynamic. Sample images provided by Windows7 (Chrysanthemum.jpg, Desert.jpg etc) having sizes greater than 500KB. In my Angular application, I have browse and upload image functionality. In my Angular application, I have browse and upload image functionality.









Angular image compress