I'm trying to index some TIFF assets from S3.
The problem is that the width and height always return 0.
From my understanding, the function imageSizeByStream (src/helpers/Image.php:210) should return the width and height of the stream but it only works for JPG, PNG, and GIF. The issue starts here: src/services/AssetIndexer.php:552 where the indexer tries to get the width and height of the image from a stream but get [0, 0] back.
I got ~125k TIFF to index, that's why I don't want to cache them locally.
So we may need to add support for other image formats inside imageSizeByStream (TIFF, WEBP, etc)
Agree this should be possible, but not sure when we鈥檒l find the time to add support for it ourselves. Is this something you鈥檇 be able to PR?
@brandonkelly I will look into it with TIFF and WEBP in mind. Any other formats that should be supported with the kind IMAGE ?
@alexgilbertDG those would be a great start.
https://github.com/marc1706/fast-image-size/blob/master/lib/Type/TypeTif.php and https://github.com/marc1706/fast-image-size/blob/master/lib/Type/TypeWebp.php will probably be handy to figure out the bytes you would have to look at.