In SharePoint 2013, upload an image. In addition to the original image, a large image and a small image are generated by default. You can apply different images to different locations as needed.
Splistitemcollection itemcoll = getpiclibraryitemcoll ();
Spweb web = spcontext. Current. Web;
Spfile Sf = spfolder. Files [0];
String folderurl = SF. parentfolder. url;
String filename = SF. Name;
Int expindex = filename. lastindexof ('.');
String subname = filename. substring (0, expindex) + "_" + filename. substring (expindex + 1) + ". jpg ";
Imageurl = web. url + "/" + folderurl + "/_ w/" + subname; // large image address
// Imageurl = web. url + "/" + folderurl + "/_ t/" + subname; // thumbnail address
// Imageurl = web. url + "/" + SF. url; // source image address
SharePoint 2013 code obtains the large image, small image, and original image in the Image Library