We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36926
    • 701 Posts
    Hi,

    Is it possible to get aoe=1 and zc=1 to work together.

    I’m trying to using the following:
    [[+image:phpthumbof=`w=330&h=330&zc=1&aoe=1`]]
    


    But the aoe is ignored when zc is used. An image has been uploaded that is only 310px and i want it to made 330. I can remove the zc which works fine, but then any larger image looks rubbish as i want to centre crop. I’ve also tried far and iar.

    Anyone know if this is possible.

    Many Thanks

    Ben
      • 19328
      • 433 Posts
      Hi Bennyb, did you ever find a solution for this?
      Thanks, Michèlle
        • 19328
        • 433 Posts
        Hi Bennyb, did you ever find a solution for this?
        Thanks, Michèlle
          • 20371
          • 58 Posts
          I've just run into this also.. Accodring to the phpthumb readme on sourceforge zc is supposed to override iar and far but not aoe.

          zoom-crop. Will auto-crop off the larger dimension
          so that the image will fill the smaller dimension
          (requires both "w" and "h", overrides "iar", "far")
          Set to "1" or "C" to zoom-crop towards the center,
          or set to "T", "B", "L", "R", "TL", "TR", "BL", "BR"
          to gravitate towards top/left/bottom/right directions
          (requies ImageMagick for values other than "C" or "1")
            • 12410
            • 353 Posts
            any fix?
              • 20371
              • 58 Posts
              Quote from: howster at Jul 14, 2014, 08:34 PM
              any fix?

              Yeah.. phpthumbof seems kindof abandoned, use pthumb instead which solves this bug and many others.

              edit: actually, mun.ee is a pretty awesome alternative for many use cases.