Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • suzyb 464 posts 877 karma points
    May 19, 2012 @ 22:03
    suzyb
    0

    media picker picking crops

    I'd like to display thumbnails of images on my page which open the large versions in a lightbox.  I have used the imagecropper data type to create a cropped version of all the images to ensure they will be the same size.

    I have been manually changing the filename in the insert image dialog however when I change the size to that of the thumbnail it keeps the aspect ratio of the large one which is often different to the crop.

    Is there a way to select the cropped images using the media picker or a way to stop the dialog changing to keep the aspect ratio of the image selected.

  • Trevor Loader 199 posts 256 karma points
    May 20, 2012 @ 03:35
    Trevor Loader
    0

    Do you need to add the images into a richtext box?  If not, I'd use the uCompnents MultiNode Tree Picker and set it to select media instead of content (you can also set the starting media folder which is also handy).  Using that, the content editor can then select all media required for that page.

    On the page template, write a macro (either xslt or razor) to loop through the selected media items and display the *cropped* version of each image.

  • suzyb 464 posts 877 karma points
    May 20, 2012 @ 13:54
    suzyb
    0

    It depends on the page.  On some I will be able to do as you suggest although I am going to use the DAMP to select the images.

    On other pages though I will need to add the thumbnails into the richtext box as they are interspersed in the content.  Guess for those instances I'll just need to have the thumbnails created manually and uploaded as their own media items.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies