How can I fix the image size in a "Picture Library Slideshow Web Part"

When I upload images to be used in the Slideshow Web Part they become skewed because they are different sizes. Is there a way to fix this besides uploading images that are all the same size? 
Thanks,
Kathleen

http://webcache.googleusercontent.com/search?q=cache:bfUcFkD_bxgJ:spcodes.blogspot.com/2012/08/display-slide-show-images-within-fixed.html+&cd=4&hl=en&ct=clnk&gl=in
 Display Slide Show Images within fixed size
The Picture Library Slide Show Web Part show the images stored in a picture library with slide show effect.
This slide show web part displays the images with it's original size. Due to this the web part changes its size according to the image size. If we want the slide show to run within the specific size on the page then we need to control the size of the images
to the fixed length during runtime.
To achieve this we need to add the CEWP above the picture Library Slide Show web part & insert the following script in that web part.
<style type="text/css">
.ms-WPBody TD {
    PADDING-BOTTOM: 0px; BORDER-RIGHT-WIDTH: 0px; MARGIN: 0px; PADDING- WIDTH: auto !important; PADDING-RIGHT: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT:
auto !important; VERTICAL-ALIGN: middle; BORDER-LEFT-WIDTH: 0px; PADDING- 0px
.ms-WPBody TD DIV {
    PADDING-BOTTOM: 0px; BORDER-RIGHT-WIDTH: 0px; MARGIN: 0px; PADDING- WIDTH: 100% !important; PADDING-RIGHT: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT:
auto !important; VERTICAL-ALIGN: middle; BORDER-LEFT-WIDTH: 0px; PADDING- 0px
.ms-WPBody TD IMG {
    PADDING-BOTTOM: 0px; BORDER-RIGHT-WIDTH: 0px; MARGIN: 0px; PADDING- WIDTH: 260px !important; PADDING-RIGHT: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT:
190px !important; VERTICAL-ALIGN: middle; BORDER-LEFT-WIDTH: 0px; PADDING- 0px; align: center
.s4-wpcell-plain {
    PADDING-BOTTOM: 0px; BORDER-RIGHT-WIDTH: 0px; MARGIN: 0px; PADDING- WIDTH: 100% !important; PADDING-RIGHT: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT:
auto !important; VERTICAL-ALIGN: middle; BORDER-LEFT-WIDTH: 0px; PADDING- 0px
.ms-PartSpacingVertical {
    MARGIN-"color:#783f04;font-family:'Courier New',Courier,monospace;" />}
.style1 {
    COLOR: #808080
}</style>
We can fix the height & width of the image in the .ms-WPBody TD IMG css.
http://sharepoint.stackexchange.com/questions/66028/picture-slideshow-web-part-image-size-too-small
How to display original images in SlideShow web part
Step 1. Save below JavaScript code to file, for example in SlideshowObjectInitializer.txt and upload it to SiteAssets Library
<script type="text/javascript">
function SlideshowObjectInitializer() {
ShowPic = (function(ShowPicOrig) {
return function() {
var ssObj = arguments[0]; //SlideShow object
var curPicIdx=ssObj.index; //current picture index
ShowPicOrig.apply(this, arguments); //call original ShowPic
//apply some changes to display original picture in SlideShow control
ssObj.image.src = ssObj.linkArray[curPicIdx]; //display original image instead of web image
//change picture & container size to auto instead of fixed (by default web image size is used)
ssObj.image.setAttribute('height','100%');
ssObj.image.setAttribute('width','100%');
var cell = ssObj.cell;
cell.style.width = 'auto';
cell.style.height = 'auto';
cell.style.display = '';
var pcell = ssObj.cell.parentNode;
pcell.style.width = 'auto';
pcell.style.height = 'auto';
})(ShowPic);
ExecuteOrDelayUntilScriptLoaded(SlideshowObjectInitializer, 'imglib.js');
</script>
Step 2. Add CEWP on page where Slideshow web part is located and in the Content Editor tool pane, under Content Link, type
/SiteAssets/SlideshowObjectInitializer.txt. 
If this helped you resolve your issue, please mark it Answered

Similar Messages

  • How can I control the image size when I export form iphoto, the choice is too limited, I need to send a photo under 3 MB but if I choose high quaulity it is only 1.1 and i need to keep the best quaulity I can. Thanks for help.

    How can I control the image size when I export form iphoto, the choice is too limited, I need to send a photo under 3 MB but if I choose high quaulity it is only 1.1 and i need to keep the best quaulity I can. Thanks for help.

    Any image can only be as large as the Original. With a program like Photoshop you can UpRes an image and get it to a bigger size, larger files size as well, but the actual quality of the image will be degraded, depending on the UpRes system and the original quality of the image.
    iPhoto is not the program to be doing that in and I don't think it even has that option.
    So I suspect the image you are trying to send isn't much bigger than what you are getting. You can also try Exporting it from iPhoto to yopur desktop and see what size you end up with. If it is still that 209KB +/- file size then that is the size of the original image.

  • SharePoint 2013 shows the same picture library after add more than two picture library slideshow web part in one page.

    The environment is SP2013 with SP1, I had check the KB, but don't have any hotfix about this.
    I had try it on the different fram, also the same result.
    I try it on sharepoint online is work. So I think that must have hotfix about this.
    I find there is someone have the sam problem.
    http://sharepoint.stackexchange.com/questions/70944/picture-library-slideshow-issue-with-multiple-libraries
    Some snapshot about this :
    Vinci Wang

    Hi Vinci,
    Thanks for posting your issue, This is a known issue in 2013.  You could have multiple slideshow
    webparts on a page in 2010, but it won't work in 2013.  As of now there is no hot fixes for this issue. you can try code mentioned in below URL
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/5ca65f7f-770b-4b0f-8e40-d08578a6442b/sharepoint-2013-picture-library-slideshow-web-part-image-not-displaying-correct-size
    Also, check out below mentioned URLs to know more about this issue and fixes
    http://sharepoint.software.tech.answers.ninja/post/70944
    https://social.msdn.microsoft.com/Forums/office/en-US/63b2ce8c-5f31-4a39-934e-6d759e9afa0c/picture-library-slideshow-web-part?forum=sharepointgeneralprevious
    http://blog.vgrem.com/2013/04/27/beyond-the-slideshow-web-part-capabilities-in-sharepoint-2010/
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • Picture Library Slideshow Web Part - Is it possible to switch between two image librarys in one slideshow

    In our office we have a screen at the front desk that runs a PP slideshow showing welcome messages to guests arriving.
    SharePoint may not be the solution, but the overall objective is to find a way to have a library of X number of photos (say the library size is 30 images) and a separate library of X number of welcome messages (usually ~5 images).
    We want the slideshow to randomly pull 5 images from the 1st pool and then play the images in the 2nd Pool.
    Let me know if you have heard of a solution similar to this. Thanks!

    Hi Twirlz03,
    According to your description, my understanding is that you want to display teo picutre libraries in a picture slideshow web part in SharePoint 2010.
    By default, one Picture Slideshow web part only display images fron one specifical picutre library, it is unable to apply for multiple picture libraries.
    You can try to utilize Content Query web part to aggregate picture items from the site collection or site. However, you mean that you want the slideshow to randomly pull 5 images from first library and then play the images in the second library, I’m afriad
    that it is hard to achieve it.
    More information about aggregating picture items , please refer to section 4 of the link below:
    http://blog.vgrem.com/2013/04/27/beyond-the-slideshow-web-part-capabilities-in-sharepoint-2010/
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • How can I reduce the image size (how to use "Steps X, Y" and "ROI")?

    I upgraded Labview (and NI-DAQ) from 5.X to 7 Express (and NI-DAQ 7). That seems to make PCI_IMAQ1411 to malfunction. I could move ROI and reduce the size by changing "ROI and Step X and Y" of NI_Snap.vi. All of a sudden, IMAQ started not to work properly even under the same code and device. Only difference is LabView and NI-DAQ version. Could you help me working IMAQ1411 under the upgraded LabVIEW and NI-DAQ?
    Thanks, Grace

    Dear Dcoutri
    Thank you for your reply.
    (1) The version I have on my computer is IMAQ 2.5.7 which has been installed together with NI-DAQ 7 when I install the LabView Express 7. It is strange that I cannot find the version on "DownLoad site".
    (2) You said that Imaq 3.0 does not support Step X, Y function. So you recommend that Imaq 2.5.5 is rather proper one. Then how about Imaq 2.6.1 (2.6). Does that support Step X, Y function?
    (3) Using Imaq 3.0, how can one scale down an image?
    Thanks, Hyun

  • How do I set the image size in PS touch to print to my Epson printer w ithout losing any of the picture. PS Touch appears to be showing pixels and not inches, how can I covert it toshow inches?

    I am using PS Touch from my tablet . I am importinga photo from an SD card . When all editing is completed I then send it wireless from the tablet  via Epson I print to the printer. It all works great except that part of the photo at each end is cut off and does not print. I am printing on 8.5 x11 paper.
    How do I convert the image size in PSTouch frm pixels to inches?

    Epson's iPrint has always been an oddball. It will always "zoom in" on an image to print even if you have the proper dimensions and resolution set for actual print size. I think other users have reported this, at least on Android.
    You can't have PS Touch show inches instead of pixels at this time but you can use an online website to find out what you need to fit within a particular resolution. (Google "pixels to inches calculator".)

  • How can I adjust the font size of my printouts?

    I have an HP Officejet 4500 all-in-one printer and a new HP pavilion Slimline computer.  Since I changed to this computer, my printouts have very small font size making them hard to read.  How can I adjust the font size of the printout?  Is it a computer or printer function? I appreciate the help.

    I, too, am frustrated.  This seems like something that would easily be handled within the application software.  However, none of the fixes I've been offered have been very helpful.  My cousin sugested using Control C and Control V to move the text to WORD.  Once in WORD, you can manipulate the text on a WORD page...sometimes.  I've had good and bad luck with this method.  It still requires working in two different programs to get it legible.  Does anyone else have a 4500  All-in -one with this problem, or is it only me?  Thanks,  [Edited for Personal Information]

  • How can I change the page size of a scanned PDF document?

    How can I change the page size of a scanned PDF document?
    I scanned a 50-page document with an HP 5610xi All-In-One using the software that comes with it: HP Scan Pro. Though the physical document has standard 8.5" x 11" pages, the PDF resulting from scanning has page size set to 35.42 × 48.67 inches (according to Preview's "Tools > Inspector". I want to resize the pages to 8.5" x 11". Shouldn't Preview be able to do that with "Tools > Adjust Size..."? When I try, the menu option is grey so I can't select it.
    I'm using Preview Version 4.2.

    Thanks for the insight; that explains why it's the wrong size. I selected 300dpi scanning (which is the default, actually), but HP Scan Pro evidently created a PDF with 72dpi indicated. I want it fixed because I want to distribute the file to other people and have them able to print or display it without problems.
    I still don't know why Preview won't let me change it, but your question about whether I wanted to print it did lead me to find a workaround: "File > Print" and "Save as PDF..." saved it with the correct page size.

  • Photos in album are only a hash-marked outline the image only shows when scrolling how can I see the image and open the photo?

    Photos in iPhoto album are only a hash-marked outline the image only shows when scrolling how can I see the image and open the photo?

    Make a temporary, backup copy (if you don't already have a backup copy) of the library and apply the two fixes below in order as needed:
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Select the options identified in the screenshot. 
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    Download iPhoto Library Manager and launch.
    Click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option
    In the next  window name the new library and select the location you want it to be placed.
    Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • How can I make the media size print option "custum" become available if it is not currently?

    How can I make the media size print option "custum" become available if it is not currently?

    See this article also: http://readwrite.com/2013/10/15/ios-7-fixes-iphone-4-4s#awesm=~oktbEwjOyyvr80

  • How can i find the file size before downloading

    I am trying to decide if I want to download a tv show [Doctor Who] in standard definition or high definition.  How can I see the file size before I purchase the show from iTunes?

    1. That's only getting the file size of the Preview.
    2. Click on a photo to select it. Then click on the info button. You can get the dimensions and the file size in the top of the pane
    Note that the final size of any image will depend on the export settings you choose.

  • HT4995 My iPad 2 Location Service works fine but does not work on my home Airport router. How can I fix the problem?

    My iPad 2 Location Service works fine but does not work on my home Airport router. How can I fix the problem?

    lbryan1987 wrote:
    I dont want the button problem solved i need to know how to restore the phone without using that button or going into settings
    You don't in the condition it's in. You will either have to get the phone replaced by Apple or pay a 3rd party to repair it.
    there seriously should be more than two ways to solve this other wise apple is useless and we will never buy another apple product.
    Seriously? It's physically broken!

  • HT1338 I updated my MacBook Pro with Mountain Lion and now it is starting slow and opening with some of the programs. How can I fix the problem?

    I updated my MacBook Pro with Mountain Lion and now it is slow in starting up and loads a number of probrams. How can I fix the problem?

    Have you tried starting in Safe Mode and see if the slowness still occurs?
    Restart holding the "shift" key.
    (Expect it to take longer to start this way because it runs a directory check first.)
    If this works look in System Preferences > Users & Groups > Login items and delete any third party login items (-), you can always add them back with the (+). Also look in /Library/Startup Items. Nothing is put in that folder by default, so anything in there is yours.
    Reboot normally and test.

  • After upgrading to ios 5.1 on my iphone 3gs, the battery percentage dosent work well, it dosent move. how can i fix the problem?

    after upgrading to ios 5.1 on my iphone 3gs, the battery percentage dosent work well, it dosent move. how can i fix the problem?

    Have you tried doing turning the battery level display off and then General -> "Reset all settings"? You won't loose any data and that should do the trick.

  • I have an iMac with OS Lion. The Smartart feature for Office for Mac will not work when I am logged on to my personal user account. It works with other user accounts on the same computer, and it works after "safe start". How can I fix the problem?

    The Smartart feature of Office for Mac will not work in my user account. It works for all other user accounts on the same computer, and it works after a "safe start". How can I fix the problem?

    You may also want to search/ask in the forums run by the people who make the product which is causing you problems:
    http://answers.microsoft.com/en-us/mac/forum/macoffice2011

Maybe you are looking for