I can currently display thumbnail of documents using rest api by using the ServerRedirectedEmbedUri-
But i also have images e.g png files stored in the library. But for the images files the rest api returns null for ServerRedirectedEmbedUri
Any ideas how i can get the thumbnail for images e.g png .
I can use getpreview.ashx
But would like to use the same query for both. Is it possible?