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

    I have this call:

    [!MaxiGallery? &display=`embedded` &embedtype=`slimbox` &pics_per_row=`3` &max_thumb_size=`100x130` &max_pic_size=`900x450` &thumb_use_dropshadow=`1` &lang=`es` &pic_use_watermark=`1` &pic_watermark_type=`image` !]

    As you can see I specified the max_thumb_size to `100x130` but after I upload the images, the thumbs exceed the specified size (for instance: some are resized to 116 × 118).

    Is there anything I might be missing to make the max_thumb_size work?

    Your help will be appreciated.

    Mc
      • 3749
      • 24,544 Posts
      Quote from: mcclausky at Aug 06, 2008, 11:25 AM

      [!MaxiGallery? &display=`embedded` &embedtype=`slimbox` &pics_per_row=`3` &max_thumb_size=`100x130` &max_pic_size=`900x450` &thumb_use_dropshadow=`1` &lang=`es` &pic_use_watermark=`1` &pic_watermark_type=`image` !]


      You probably know this but the &max_ parameters only affect the upload process. If you change or add them, you need to clear the site cache and your browser cache, and *then* upload the pics.

      If that’s not the problem, try making those parameters a single number which will specify the largest possible dimension (e.g. &max_thumb_size=`130`) and see it that works.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 18878
        • 210 Posts
        Quote from: BobRay at Aug 06, 2008, 12:24 PM

        You probably know this but the &max_ parameters only affect the upload process. If you change or add them, you need to clear the site cache and your browser cache, and *then* upload the pics.

        If that’s not the problem, try making those parameters a single number which will specify the largest possible dimension (e.g. &max_thumb_size=`130`) and see it that works.
        I followed your suggestion, this is what I did:

        - I deleted the picture from the gallery
        - I specified max_thumb_size=`100`
        - I cleared the site cache
        - I cleared the browser’s cache, and then I closed the browser
        - I renamed the picture to avoid cache problems
        - I opened the browser and uploaded the picture again (the renamed picture)

        Unfortunately the thumb size is 113x116.

        I don’t know what can be wrong.
          • 7923
          • 4,213 Posts
          Do you have some filters enabled? eg. drop shadows? they are added to the image once the image is resized first..


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 18878
            • 210 Posts
            Quote from: doze at Aug 06, 2008, 02:37 PM

            Do you have some filters enabled? eg. drop shadows? they are added to the image once the image is resized first..

            Doze,

            You were right, it was the &thumb_use_dropshadow=`1` filter that was adding the extra pixels.

            Thanks for your help.

            Mc