I will get images from a URL I need to show it to HTML page, every images is of different size I need ti display this inside a card but all images should be displayed in a standard size.
<ion-row>
<ion-col col-12 col-xl-6 col-sm-12 col-md-6 [ngClass]="animateClass" *ngFor=" let item of animateItems; let i=index " (click)="openProduct(item)" >
<img style=" height: 30vh; background-size:cover; width: auto; margin: auto; display: block;" src='assets/img/Products/{{item.id}}/{{item.img}}' />
<p style="text-align: center; font-size: 90%; color: black;"> {{item.name}} </p>
<p style="text-align: center;"><b> item.price</b></p>
</ion-col>
</ion-row>
For now I stored some sample image inside my app with variable size, on viewing this all my images are stretched, my target device is a tablet, how could I show small and big images in a standard size inside the card