Copied to clipboard

Flag this post as spam?

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


  • Jason Espin 368 posts 1335 karma points
    Jan 20, 2015 @ 12:42
    Jason Espin
    0

    Slimsy rendering inconsistent

    Hi all,

    I have been using the fantastic Slimsy plugin to render responsive images to my pages. Currently I am working on a site for a client and I am creating a page of brochures for them that the user can download / view in their brower. As part of this, I am rendering a preview image of the pdf file that I upload to the media section of Umbraco. I am then rendering the images to the page using the following code:

    IPublishedContent image = Umbraco.TypedMedia(brochure.GetPropertyValue<int>("brochureImage"));
    <img src="@image.GetResponsiveImageUrl(200,300)" class="img-responsive" alt="@brochure.Name" />
    

    The problem I have is despite the images being more or less the same size (give or take 1 or 2 pixels) , some of the images are only rendering a segment of the image with a black background above and below as shown below:

    enter image description here

    Does anyone know how this can be addressed? I have checked the original dimensions (before slimmage) of the New York image compared to the others and they are as follows:

    USA katalog 2480 x 3316 New York 2480 x 3507 Florida 2480 x 3316

    The dimensions are hardly a vast difference so this should not be happening. Any pointers would be greatly appreciated.

    /Jason

  • Jeavon Leopold 3072 posts 13628 karma points MVP 10x admin c-trib
    Jan 20, 2015 @ 15:36
    Jeavon Leopold
    100

    Hi Jason,

    I think that image may not have been saved in the ImageCropper, perhaps you converted from a standard Upload data type?

    Try re-saving that image in Umbraco and let me know. If that's not it, could you post the full url being output for that image?

    Jeavon

    p.s. I've moved this thread to the Slimsy forum

  • Jason Espin 368 posts 1335 karma points
    Jan 20, 2015 @ 15:42
    Jason Espin
    0

    Hi Jeavon,

    I've just had a play about with it and it appears it was trying to use a crop even though I hadn't set one. Anyway after some saving and re-saving it is now working.

    Cheers,

    Jason

  • Jeavon Leopold 3072 posts 13628 karma points MVP 10x admin c-trib
    Jan 20, 2015 @ 15:45
    Jeavon Leopold
    0

    Ah, that's great!

    I'm pretty sure it was a image without the cropper data. I have a Crop Healer package ready to launch beta very soon which when installed should stop this annoying type of issue :)

  • AdeleMB 15 posts 39 karma points
    Apr 10, 2015 @ 11:47
    AdeleMB
    0

    Hi, I think we're having a similar issue but I can't pinpoint the problem.

    In the last week or so, we've got uploaded images that don't seem to be cropping. We have a gallery page of 200x200px cropped and linked tile images.

    Most image URL follow this format:
    /houses.jpg?center=0.49,0.49748743718592964&mode=crop&width=200&height=200&rnd=130729640410000000

    - This one is cropped to 200x200.

    Then we get the odd random image URL in this format:
    /p1010826.jpg?crop=0,0.026250000000000002,0,0.22374999999999989&cropmode=percentage&width=200&height=200&rnd=130731330900000000

    - This one is just shrunk from 810x810 to 290x290.

    Have tried re-saving in Umbraco but no effect, any help you can give would be greatly appreciated!

  • Jeavon Leopold 3072 posts 13628 karma points MVP 10x admin c-trib
    Apr 10, 2015 @ 11:51
    Jeavon Leopold
    0

    Hi Adele,

    The first one is using the focal point the second is using a predefined crop. Are they both being rendered by the same GetCropUrl method?

    Jeavon

  • AdeleMB 15 posts 39 karma points
    Apr 10, 2015 @ 12:14
    AdeleMB
    0

    Hi, they should be yes...
    But something has changed, or is being done differently in the last week or so, and I'm just trying to work out what! Thanks again

Please Sign in or register to post replies

Write your reply to:

Draft