I changed All Assets view for Images library in SharePoint 2013:
SPList imageList = web.Lists["Images"];
var view = imageList.Views["All Assets"];
view.ViewFields.DeleteAll();
view.ViewFields.Add("ThumbnailOnForm");
view.ViewFields.Add("LinkFilename");
view.ViewFields.Add("Width");
view.ViewFields.Add("Height");
view.ViewFields.Add("Modified");
view.ViewFields.Add("Editor");
view.Query = @"<OrderBy><FieldRef Name='Modified' Ascending='False' /></OrderBy>";
view.DefaultView = true;
view.Update();
imageList.Update()
but, when I upload images, then the Thumbnail displays blank image. Only when I add "PreviewOnForm" field to view, then Thumbnail displayed correctly.
How can I display Thumbnail using ThumbnailOnForm column?