see live demo!

Not signed in (Sign In)

Categories

 

buy Monoslideshow

via PayPal / credit card

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorpaul
    • CommentTimeJan 5th 2007
     permalink

    Sometimes the downscaleToFit scale mode doesn't seem to work. For instance I have a large banner image. which is 900x115, and a slideshow viewport of 650x600. In this case it shows the image centered at its original size, with the ends truncated. I also have a portrait that is 600x800, and it appears stretched to fill instead of fit. In all other other cases it seems to work fine.

    Any ideas what the problem could be? I can send you the images if you need them as examples.

    • CommentAuthorvip101
    • CommentTimeJan 6th 2007
     permalink

    This is me just taking a wild uneducated guess (because I really am not sure) but did I see something in the XML code that says Scale to Fit? If that is set to true perhaps it is adjusting your images like you say?

    • CommentAuthorpaul
    • CommentTimeJan 8th 2007 edited
     permalink

    scaleToFit works fine. Its just downscaleToFit that has the bug.

    I figured out the pattern. If the both the height *and* the width of the image are larger than the viewport, downscaleToFit works. But if only the height *or* only the width are larger than the viewport it decides not to downscale the image. Sound like its just a logic bug.

    I'm guessing the code looks like this:
    <code>
    if (img.height > viewport.height && img.widht > viewport.width) {
    downscaleImage();
    }
    </code>

    but it should be testing with an or instead:
    <code>
    if (img.height > viewport.height || img.widht > viewport.width) {
    downscaleImage();
    }
    </code>

    Any chance of getting this fixed anytime soon?

    •  
      CommentAuthorMonokai
    • CommentTimeJan 8th 2007
     permalink

    Hi Paul, thanks for thinking with me. Could very well be the logic bug like you've mentioned. I'll check this out and will fix it for the next version. This should not be released very soon, but you'll get a mail when it does.

    For now I guess the only way is to (batch)resize it manually, or use "scaleToFit" instead.

    creator of Monoslideshow
    • CommentAuthormadshutter
    • CommentTimeFeb 25th 2007
     permalink

    Hey Monokay, could you release a 1.2.1 with just this fix? I have run into this problem as well and is slightly annoying. That should take you very little and would be very much appreciated. I am optimizing my site for different size views and having to batch resizing and uploading images would mean for me to have to manage 3 times all my images - not very practical... thanks!

    • CommentAuthorJaeho Huh
    • CommentTimeApr 5th 2007
     permalink

    I found same bug. Could you release bug fix version ASAP?

    • CommentAuthorJaeho Huh
    • CommentTimeApr 5th 2007
     permalink

    Sorry. Something different. I tested various sized pictures. The only picture having large height with in-sized width doesn't work in downsizetofit Mode.
    Plz fix it and release the small modified version.
    Thank you.

    • CommentAuthormarujobhz
    • CommentTimeNov 17th 2008 edited
     permalink

    Monokai, my images doenst accept the scaleToFit.
    my flashmovie is 620px width and 420px height. some images are with 400px widht and 480px height.
    all of them appears with the 620px width...
    how can i fix this bug??????
    i try downscaleToFit and doesnt work too.
    please, i meed this solution ASAP!!

    HI, IM SORRY. I DISCOVER.... THIS IS NOT A BUG:
    IT IS BECAUSE MY KEN BURNS ARE ENABLE... ITS ONLY DISABLE KENBURNS...

monokai logo © 2009 Monokai, all rights reserved. Buy Monoslideshow.