Add parameter to specify the decoding strategy on content-aware-images
Signed-off-by: trivernis <trivernis@protonmail.com>pull/4/head
parent
03cdc3ea0c
commit
448d55aa1e
@ -1,5 +1,4 @@
|
||||
<div #imageContainer (window:resize)="this.adjustSize(image, imageContainer)" class="image-container">
|
||||
<img #image (load)="this.adjustSize(image, imageContainer)" [class.scale-height]="(!scaleWidth) && maximizeHeight" [class.scale-width]="scaleWidth && maximizeWidth"
|
||||
[src]="this.imageSrc" alt=""
|
||||
decoding="async">
|
||||
[src]="this.imageSrc" alt="">
|
||||
</div>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<div (click)="fileSelectEvent.emit(this.file)" [class.selected]="this.file.selected" class="image-wrapper">
|
||||
<mat-progress-spinner *ngIf="!contentUrl"></mat-progress-spinner>
|
||||
<app-content-aware-image *ngIf="contentUrl" [imageSrc]="contentUrl"></app-content-aware-image>
|
||||
<app-content-aware-image decoding="async" *ngIf="contentUrl" [imageSrc]="contentUrl"></app-content-aware-image>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue