Copied to clipboard

Flag this post as spam?

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


  • Søren Linaa 255 posts 208 karma points
    Jul 30, 2010 @ 17:39
    Søren Linaa
    0

    Bug creating thumbnails

    Hi Matt,

    Great package - It works really really well.

    Only tiny error tough - the thumbnails is created wrong.

    When setting the thumbnail size on the upload datatype in Umbraco and uploads manually Umbraco takes this/theese size(s) for the width of the image. Your package set the size for the hight of the image.

    /cheers

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Jul 30, 2010 @ 18:46
    Matt Brailsford
    0

    Ooops.

    Thanks Soren. I'll get that sorted in the next upload.

    Cheers

    Matt

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Jul 30, 2010 @ 19:27
    Matt Brailsford
    0

    Hi Soren,

    I've just looked into this, and I belive this is the correct functionality. The prevalues you define on the upload data type are a max width/height combo, not just width. So the generated thumbnail will be resized to fit within a box that size, meaning if your image is portrait, it will resize the height to fit, and if it's landscape, it will resize the width.

    I've checked the source, and this is indeed how the media upload data type works, and if you also read the label for the prevalue, it reads:

    Thumbnail sizes (max width/height, semicolon separated for multiples):

    Unless I've misunderstood the issue?

    Many thanks

    Matt

  • Søren Linaa 255 posts 208 karma points
    Aug 01, 2010 @ 13:57
    Søren Linaa
    0

    Hi Matt,

    I think you are right. No need to change anytihng then.

     

    cheers.

    /Søren

Please Sign in or register to post replies

Write your reply to:

Draft