Skip to content

Instantly share code, notes, and snippets.

View smihaylov1986's full-sized avatar

Svetoslav Mihaylov smihaylov1986

View GitHub Profile
@smihaylov1986
smihaylov1986 / app.component.html
Created November 30, 2019 20:32
Basic Image compression service - Angular .
<input type="file" accept="image/*" multiple (change)='change($event.target.files)'>
<div *ngIf="compressedImages ">
<div *ngFor="let image of compressedImages | async" >
<img [src]='sanitize(image.imgUrl)'>
</div>
</div>