This code is functioning properly for .png images.
getNextImage(imageObj:{imageName:string,cityImageId:number,imgNumber:number}):void{
this.imgNumber= imageObj.imgNumber;
this.imagePath=`assets/images/${imageObj.imageName}.png`;
this.cityImageId=imageObj.cityImageId;
}
However, when using images of .tif format, the image does not load and simply displays a blank space.
getNextImage(imageObj:{imageName:string,cityImageId:number,imgNumber:number}):void{
this.imgNumber= imageObj.imgNumber;
this.imagePath=`assets/images/${imageObj.imageName}.tif`;
this.cityImageId=imageObj.cityImageId;
}
What steps should be taken to make it function properly for tif format images as well?