We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12027
    • 63 Posts
    Me and a friend from #modx modified the php to output .png’s instead of .jpg thumbnails, and to allow for 8 bit transparency when putting it together. Works famously, but I’ve promised to let him post his modification on here, since he did most of the work. smiley I.e., allowing "&thumb_shadow_bgcolor= `transparent`".
      • 3749
      • 24,544 Posts
      Quote from: Henrik at Feb 25, 2008, 07:23 AM

      Me and a friend from #modx modified the php to output .png’s instead of .jpg thumbnails, and to allow for 8 bit transparency when putting it together. Works famously, but I’ve promised to let him post his modification on here, since he did most of the work. smiley I.e., allowing "&thumb_shadow_bgcolor= `transparent`".

      Sounds great. Did you include the js code to enable older browsers (e.g. IE6) to handle the transparency?

      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
        • 12027
        • 63 Posts
        The site is not finished yet, but yeah I will add my own little JS that can even do liquid designs and bg-images with transparency without the horrid ’no-clicky links’ on top smiley

        I was hoping the snippet code could be modded to make PNG thumbnails even from other formats like JPG - right now I have to upload the big pic as PNG for the shadows to work.
          • 3188
          • 75 Posts
          Hi there,

          Is there any way you could share the png mod?
          Would need to have transparent shadow wink

          Kindest Regards.
            • 12027
            • 63 Posts
            The guy that helped me wanted to make a proper mod, check if there was already a fixed version in the SVN etc. So he asked me to wait to share it. My version needs PNGs with transparency on the big pictures to create thumbnails with PNG transparency - so I’m working with a temp patch that makes the pics take way too much space. I think the update is coming soon...