Support » Plugin: Flash Gallery » [Plugin: Flash Gallery] Square images cropped in fullscreen

  • Resolved nakedczechs

    (@nakedczechs)


    flash gallery seems to crop square images when they are displayed in full screen
    my full images are usually around 1500px – so a 1500x1499px image gets the top / bottom cropped when viewed in fullscreen
    this happens regardless of which display option is chosen (fit / fill / noscale)
    is there any way to correct this?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author ulfben

    (@ulfben)

    link?

    Thread Starter nakedczechs

    (@nakedczechs)

    Plugin Author ulfben

    (@ulfben)

    Yeah; your modification have disabled the scaling behavior – the original never crops in fullscreen or otherwise. You can confirm this by changing back to the unmodified swf.

    Make sure fitToScreen (the function is on the layer “slide”, don’t ask me why) is still called after loading an image in your version.

    I like your HTML-presentation of the gallery. Very cool with the tabs for “Flash Gallery” vs. “Original Gallery”. Good job!

    Thread Starter nakedczechs

    (@nakedczechs)

    nah, it does the same with the original .swf
    all I changed was:
    var thumbsize = (_root._thumbsize)+_thumbpadding;
    to
    var thumbsize = 160+_thumbpadding;

    I enabled:
    //initFloat(shadowBoxContainer);

    and under flashvars, settings, etc I changed the color:
    color = Number(_root["color"]) || 0xFF0099;// highlight color set

    color = Number(_root["color"]) || 0x0066FF;// highlight color set

    Plugin Author ulfben

    (@ulfben)

    I can’t replicate your problem.

    1. Make sure you’re actually loading the original SWF and not just reloading your modified version from cache.

    2. Add some traces and use Vizzy to catch them while running in the browser.

    3. Make sure the function fitToScreen is called when you expect, and is handed the movieclip you expect.

    4. Make sure _scalingStrategy really changes when toggling from the right-click menu.

    5. Try dumping the value of maxHeight.

    6. Dump the stage info (Stage.width and Stage.height).

    … you know. Just make sure everything is what you’re assuming it is.

    Thread Starter nakedczechs

    (@nakedczechs)

    you do see the issue when going to my site though, right?
    maybe you could grab the images from my site and upload them to a site you have to do a test?

    1 – yeah, I’ve been doing that. if the cache isn’t cleared it’ll just load the last one it cached

    2-6 – these are all a bit above my head.
    I don’t understand the coding enough.

    I can give some other information:
    fill / fit / noscale all work fine on the webpage (not in fullscreen)
    it’s only when switching to fullscreen that they don’t work
    the fill and noscale options work while in fullscreen – just not the fit

    the sizes will transition just fine outside of fullscreen mode
    but as soon as I choose ‘fit’ in fullscreen – the current image will no longer apply the selected scaling scheme.
    it will transition from noscale to fill without an issue though (but then will no longer change as you must select fit since it’s next)

    the described behavior only occurs with the square images
    if I load a more ‘normal’ image like a 1000×1500
    they seem to transition fine while in fullscreen mode
    I can continuously transition between the modes

    these issues are the same even if I delete your plugin from my site
    and extract the rar to it – modifying nothing
    a fresh / clean installl

    Plugin Author ulfben

    (@ulfben)

    Thanks for taking the time to describe the problem in more detail. This was an interresting case. The routine checks for image dimensions and scales along the longest edge to fit in the display area.

    Your images are one pixel wider than they are high and thus are fitted to the width of the display area. This works well on your site due to the stage being in “portrait” orientation. In full screen however the stage is in “landscape”-orientation and the images (one pixel…) shorter side ends up being way to tall still.

    I’ll see what I can do.

    Thread Starter nakedczechs

    (@nakedczechs)

    awesome – thanks
    hope you can find a fix!
    I don’t have square pics very often, but every now and then I do.

    Plugin Author ulfben

    (@ulfben)

    Could you email me (ulf at ulfben dot com)?

    I’d like you to test a possible fix for me.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: Flash Gallery] Square images cropped in fullscreen’ is closed to new replies.