We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30456
    • 37 Posts
    Hi, as I understand dropshadows is good only at white background because on other colors it gives my pictures white border. Are there any solution to make them transperant?
      • 17802
      • 190 Posts
      Hi,
      I think Maxigallery uses tiny pictures with a grey to white gradient to create the dropshadow effect. The best option would be to recreate these pictures yourself with the right background colour. Or use transparent png-24 pictures, these will look great on any background. Unfortunately they look very ugly on Internet Explorer 6 (and lower), because IE6 doesn’t support alpha channel transparency >:(
        Thanks for MODx - I love it!
        • 23562
        • 57 Posts
        True, it will look nasty in IE6 and earlier, but you can check this link to fix that
        http://www.modxcms.com/PNG-Alpha-Transparency-for-MSIE-652.html

        Hope it helps
          • 30456
          • 37 Posts
          Got the plugin installed, but cannot understand what

          Plugin configuration:
          ----------------------
          &spacer=PNG Spacer Path;string;assets/images &sm=Size Method;list;Scale,Crop,Image;Image

          means.

          PNG border images are in right place, they are transparent, but still I see ugly white border in MSIE7 and Firefox
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            That code breaks down to "variable name is ’spacer’, lable is ’PNG Spacer Path’, data type is ’string’, value is ’assets/images’. This simply sets the path to the png spacer image file.

            The other one sets up a drop-down menu (data type ’list’) with ’scale’, ’crop’ and ’image’ as the options, and the default set to ’image’.

            The border issue sounds more like a CSS issue.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
              • 3749
              • 24,544 Posts
              If you turn on drop shadows, I think you need to set &pic_shadow_bgcolor to the page’s background color. (the default is FFFFFF).

              &big_shadow_bgcolor and &thumb_shadow_bgcolor may need to be set as well depending on what you show.

              Remember that whenr you change most things in MG, you have to reupload the pics for it to have any effect.

              Hope this helps,

              Bob
                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
                • 30456
                • 37 Posts
                Dont know wazzup with the dropshadows.... just repainted the background in photoshop for those templates... Thx anyway huh
                  • 7923
                  • 4,213 Posts
                  Quote from: torsher at Feb 13, 2008, 04:42 AM

                  Hi, as I understand dropshadows is good only at white background because on other colors it gives my pictures white border. Are there any solution to make them transperant?
                  Yeah.. like BobRay already said above, you can use the &pic_shadow_bgcolor (&thumb_ for thumbnails and &big_ for big images) parameters to control the color of the shadow background. Eg. put it to the one that is your page bg color.

                  Or sometimes this is not suitable, for example when you have a black background you may want to change the whole dropshadow color to something else. So you can also do what you did and replace the default dropshadow images with another ones, or create a new ones to another path and use the &pic_shadow_path parameter to define a path to the dropshadow images.

                  Please, see the available parameters from maxigallery wiki page http://wiki.modxcms.com/index.php/MaxiGallery


                    "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                    • 30456
                    • 37 Posts
                    thx! But altogether is interesting why these PNGs although are transparent in image editor but don’t work as it should in web. Just my inquisitiveness
                      • 7923
                      • 4,213 Posts
                      Because the shadow images are attached to the image files itself during upload and the image is saved in a format that does not support transparency. IE the thumbnail class that MaxiGallery uses do not offer transparency support.


                        "He can have a lollipop any time he wants to. That's what it means to be a programmer."