1.2.6 and printCustomSizedImageMaxSpace

I'm upgrading from 1.2.4 to 1.2.6, and it seems like the printCustomSizedImageMaxSpace function is behaving differently. I have a fixed width layout, and would like it to shrink any pics that are wider than 900 pixels. This worked perfectly before (in 1.2.4), but now it is also ENLARGING pics that are smaller than 900 pixel width to be 900 pixels wide.

Does anyone have any pointers as to how to get this function to behave as it did before? Any advice appreciated

Comments

  • btw, allow upscale is not checked in my admin options.
  • Solved it with an if/else statement

    if (getFullWidth() > 840) { printCustomSizedImageMaxSpace(getBareImageTitle(),840,3000);
    } else {
    printDefaultSizedImage(getImageTitle(),NULL,NULL);
    }
  • acrylian Administrator, Developer
    I have not noticed a different behaviour with that function. We would need to have an example (link) to prove that not a bug sneaked in somehow.

    Also please try the nightly build to see if it works there.
Sign In or Register to comment.