Hot answers tagged

11

For displaying pictures in Slideshow web part, web images (stored under /_w folder in Picture Library) are used and not the original images. Unfortunately it is not supported to configure in web part what image type (original, web or thumbnail) should be displayed in Slideshow. The solution described below allows to display original images (without ...


4

using (SPSite site = new SPSite(<siteUrl>) { using (SPWeb web = site.OpenWeb()) { SPList list = web.GetList(<imageUrl>); SPListTemplateType templateType = list.BaseTemplate; int templateTypeInt = (int) templateType; } }


4

You'll want to add a CAMLQuery option to your GetListItems call: CAMLQueryOptions: "<QueryOptions><ViewAttributes Scope="Recursive"/></QueryOptions>", This will result in the recursive querying of all the subfolders.


4

What you're asking is a bit complex to implement, but it's possible. You need to use AssetPickerDialog to get the same behavior as what you've mentioned, to pick up the image from library. I've implemented AssetPicker once, but that's for a different implementation, kind of searching entity from custom database. And that AssetPicker was triggered from a ...


4

Update your code as below SPPictureLibrary pics = (SPPictureLibrary)web.Lists[documentLibraryName]; SPFile file = pics.RootFolder.Files.Add((string) imageId + ".jpg", converttobyte, true); SPListItem item = file.Item; item["Title"] = "First title "; item["Description"] = "Test Description is " ; item.Update(); The issue in your code is that you are ...


3

The maximum file size you can upload is 2GB. Any file over that size will not upload. You can upload all 100GB of pictures as long as they aren't individually 2GB or larger. Here is the TechNet guide on 2010 limitations, http://technet.microsoft.com/en-us/library/cc262787.aspx.


3

I haven't seen anything published as such. The size and type would be limited by the web application blocked file types and the maximum upload size. The maximum number of files would echo the same principles of a large document libary, limit the number of items per view to avoid performance degradation and/or make use of folders.


3

How Picture Library Slideshow web part works Picture items are retrieved via SPQuery from Picture Library and results are saved in internal array of ImageInfo entries public struct ImageInfo { public int width; public int height; public string src; public string fullImageSrc; public string title; public string ...


3

Unfortunately the answer is no, there is no possibility to specify the relative Url for Picture Library. Picture Library Slideshow web part exposes the following properties to query pictures from Picture Library: LibraryGuid - unique identifier (GUID) of the picture library ViewGuid - GUID of the list view in the picture library. These web part ...


3

The difference is same as of a Folder in Windows.. If you are placing all the images in a folder, the view gets different and it uses Thumbnails view.. The same is for Picture Libary/Images App in SharePoint.. It will give you thumbnail view of the images.. Picture Library is actually an enhancement to the Document Library.. Also one of the important usage ...


3

Convert absolute URL into server-relative URL and use SP.Web.getFileByServerRelativeUrl Method to return file object located at the specified server-relative URL as demonstrated below: function getFileProperties(url,success,error) { var ctx = SP.ClientContext.get_current(); var relUrl = url.replace(_spPageContextInfo.siteAbsoluteUrl,''); //convert ...


3

Unfortunately it is not supported to configure in web part what image type (original, web or thumbnail) should be displayed in Picture Library Slideshow Web Part, but you could try to customize the rendering of slideshow using the following approach. The solution described below allows to display original (full-sized) images in Slideshow web part. Step ...


3

It's the way SharePoint works, it only lets you add some specific columns(can't really remember which ones at the moment) as look-up columns, I had same issue few years ago, only solution I could find it that add a item adding event receiver and change Title column to file's name. There is no other way around I ever came across. Similar post: Lookup ...


3

This can be definitely possible while using asset dialog provided OOTB in SharePoint. This dialog uses AssetPickers.js file present in _layouts/15 directory of SharePoint server. I found one blog and try it on my side by creating visual webpart and make the file selector as one of its properties. Link of ...


3

Full Image url is available in property EncodedAbsUrl You can change the webpart property and set this.


3

It seems SharePoint generates thumbnail file name using the following format: thumbnailUrl = <filename>_<fileextension>.jpg Based on that, the following REST endpoint shows to get thumbnail file content: /_api/web/getfilebyserverrelativeurl('{thumbnailUrl}')/$value Example var webUrl = "https://tenant.sharepoint.com"; var fileUrl = ...


2

There is an example on codeplex: SharePoint Ad Rotator Introduction: SPAdRotator is a SharePoint Web Part that can randomly display images from a SharePoint library. Images can be displayed either one at a time (a new random image is selected every time the page is loaded), or all images can be displayed while the user is viewing the page (with a ...


2

You can split it to several web sites with picture libraries accordingly to image type or image meta information or user groups. That will limit number of files within one library. Also you can use folders for items with same permissions. Please check this article for details about planning fine grained permissions from MS - ...


2

Picture libraries do not allow for item level permissions like lists which is unfortunate as you'd think the same should hold true in both places. One option would be to use a workflow tool, like SPD Activities, Nintex, K2, or your own developed action to handle setting item level permissions. With a library of that size, that will cause some performance ...


2

There is no feature to export a picture library out of the box but you can develop a custom feature in VS 2010 and achieve this. Have a look: http://mctalex.blogspot.in/2009/04/adding-export-to-spreadsheet-to-picture.html


2

You can drag and drop multiple Files (pictures or documents) in SharePoint 2013.


2

The only way I know is write a javascript customization to change the shrinks option. You could use something like this: $(document).ready(function() { var divList = $("div[id^='MSOPictureLibrarySlideshowWebPart']"); var currImage= $("img[id$='curr']"); divList.height('100%'); divList.width('100%'); ...


2

Prerequisite for Image Renditions are: Publishing site collection (or publishing feature enabled) A configured BLOB cache An Asset Library (recommended) From your description, I can't read that publishing feature is enabled. Enable publishing features to get image renditions to work.


2

Activate the "Team Collaboration Lists" site feature on the site. You can do so by going to Site Settings > Manage Site Features (under the Site Actions section).


2

if it is team site and picture library app not showing, try to deactivate and reactivate the Team Collaboration List feature. Close all browser and open a fresh session. also try to create a new subsite in the same site collection with team site template and check it their.if failed then try to create a new site collection with team template in same web app ...


2

To get rid of the icons, you could either edit the webpart and deselect "Show Toolbar" or you could add this to a CEWP or a Script Editor Web part to hide those pesky buttons. <style type="text/css"> .ms-WPBody a[onclick ^= "Next"]{ display:none; } .ms-WPBody a[onclick ^= "Play"]{ display:none; } </style>


2

Instead of SPList you should use SPPictureLibrary. I mean SPList picLibCity = (SPPictureLibrary) spWeb.Lists["City"]; And instead of ImageURL, you should use ServerUrl. I mean foreach (var row in EmpList) { if (row.City!= null) { string group = row.city; SPItem lookupItem = picLibCity.GetItemById(group.LookupId); string ...


1

have you set it up? http://suryapulipati.blogspot.co.uk/2011/08/sharepoint-2010-display-thumbnail-view.html or http://www.chaholl.com/archive/2010/01/28/automatically-generating-thumbnail-images-in-sharepoint.aspx hope it guides you into the right direction :)


1

you can use "picture Library Slideshow webpart" and specify time frame like 5 secs to rotate images on a page which are stored in Images Library or any picture Library.


1

You can use a css sprite and upload a single image in the document library corresponding to the rollover.



Only top voted, non community-wiki answers of a minimum length are eligible