I am trying to modify this project for showing images in a directory. But the problem is that the code does not work for all images like this one. So the problem is
BitmapFrame bitmapFrame = BitmapFrame.Create(new Uri(path))
Here on the repository BitmapFrame.Thumbnail property is null for some images. I don't find anything about what's wrong with those images.
How to make it work for all images?


You can use the following method for creating the thumbnails for images which don't have one.