We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12941
    • 87 Posts
    BTW, I modified this line from mac2000 because I noticed it was adding an extra / before the file name:

    $mp_img = .$width.'x'.$height.'_'.basename($file);


    However, it’s still doing this. The initial load works, but if I refresh the page then the images aren’t showing up. If I use firebug and try to view the image, it will just never load the image when you hover over it. The file paths are now exactly the same.

    ???????
    • I just ran into the same problem. I solved it by editing a line near the bottom of the snippet code itself:
      if (is_file($modx->config['base_path'].$mp_img)) {
      //    return '/'.$mp_img;
          return $mp_img;
      }
      
      return include($miniphoto_path.'miniphoto.inc.php');

      I don’t suppose this helps the first time it’s run, but at least every time after when it pulls the thumbnail from its cache it’ll be corrected.
        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
        • 12941
        • 87 Posts
        Susan, you are a rockstar. Thank you so much. I could give you a million hugs.
          • 12941
          • 87 Posts
          I see what you mean about the first time now. It’s just displaying the no photo image instead of the one I uploaded. Is there anything I can do so that they both work? :\
            • 12941
            • 87 Posts
            Nevermind. I figured it out, but I will share with the ModX community so they know too smiley

            When I ran it inside of an uncached Ditto, I had to make the Miniphoto call cached. But, if I’m running it by itself, then I should make the miniphoto call uncached ([!Miniphoto...!])
              • 23653
              • 10 Posts
              Is anyone using this snippet on revolution? I found it incredibly useful and great for SEO, just wondering if there was a package available or any other services that work in the same way.
                • 23653
                • 10 Posts
                Anyone know of any other tools for image resizing for revolution?
                  • 2198
                  • 7 Posts
                  Hi I using version 1,3 its great. thank you. I have searched for several day something like this snippet. And finally founded.

                  So I have question. I want to use watermarks.

                  I am using something like this:
                  <img src="[[MiniPhoto? &file=`[*spost_featured*]` &width=`340` &height=`290`]]" width="340" height="290" alt="" border="o" class="photo left" />

                  What should I add for watermarks. Please help me.

                  Thank you
                  • Hi guys.

                    This is a great little snippet that I prefer to phpThumb, however it uses split() which is deprecated and blew up on me. whoops.

                    I fixed it and have modified it for MiniPhoto1.2 and Miniphoto1.3. They are attached. Hope it helps someone.
                      ________

                      Anne
                      Toad-in-Chief
                      Red Toad Media - Web Design, Louisville KY
                      Hear me tweet: http://www.twitter.com/redtoadmedia
                      "Bring on the imperialistic condiments." - Rory Gilmore
                    • I'll second this recommendation; I used it for years and it always worked great. Excellent fix!
                        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