2016-05-13 20:27:00 +08:00
|
|
|
<div class="imgContainer" #imgContainer>
|
2016-07-04 22:58:10 +08:00
|
|
|
<img *ngIf="showThumbnail()"
|
2016-05-13 20:27:00 +08:00
|
|
|
[style.width.%]="imageSize.width"
|
|
|
|
[style.height.%]="imageSize.height"
|
2016-07-04 22:58:10 +08:00
|
|
|
[src]="thumbnailPath()"/>
|
2016-05-13 20:27:00 +08:00
|
|
|
|
2017-03-26 04:59:30 +08:00
|
|
|
<img *ngIf="gridPhoto !== null"
|
2016-05-13 20:27:00 +08:00
|
|
|
[style.width.%]="imageSize.width"
|
|
|
|
[style.height.%]="imageSize.height"
|
2016-07-04 22:58:10 +08:00
|
|
|
[src]="gridPhoto.getPhotoPath()"
|
|
|
|
(load)="onImageLoad()"
|
|
|
|
(error)="onImageError()"/>
|
2017-03-26 04:59:30 +08:00
|
|
|
|
2016-05-13 20:27:00 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|