We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31707
    • 6 Posts
    This is an auto-generated support/comment thread for MiniPhoto.

    Use this forum to post any comments about this addition or any questions you have regarding its use.

    Brief Description:
    Snippet to resize on the fly an image for galleris, etc.
      • 2327
      • 214 Posts
      Hello,

      I’m sorry but this snippet is not interpreted in my case :

      can you tell to us the exact installation procedure ?

      My call snippet in a chunk :

      <img src="[[MiniPhoto? &file=`assets/images/myimage.jpg` &width=`100` &height=`100` &quality=`93` &dir=`mini`!]]" width="100" height="100" alt="" class="myimage" />

      And the mini rep is created with myimage.jpg thumb.

      But the result is :

      <img src="" width="100" height="100" alt="" class="myimage"">

        • 19164
        • 1,215 Posts
        It seems that you need a method to resize your images. Try DirectResize, link is in my signature.
          DirectResize 0.9 beta. PHPThumb, sets of configurations, configuration, binded to specific path. No backward compatibility. | DirectResize 0.9. PHPThumb, наборы параметров, параметры, привязанные к определенным путям. Без обратной совместимости.

          Unfortunately, DirectResize project is closed. If you want to continue development, PM me for access to project page on Google Code. К сожалению, проект DirectResize закрыт. Если вы желаете продолжить разработки, обращайтесь через ПМ для получения доступа к репозиторию на Google Code.

          [PLUGIN] DirectResize - as Maxigallery but for single images :: Download :: [url=http://modxcms.com/forums/index.php/topic,21490]
          • 2327
          • 214 Posts
          Thank you Metaller.

          No, i just want to install MiniPhoto correctly, because the snippet don’t work in my case. I just need a expand effect like MiniPhoto..with two files i haved : a smaller and a bigger image...

          I have tested the snippet HighSlide(http://modxcms.com/HighSlide-ext-1-1643.html) .

          Very nice but a little complex just for this need....

          Thank wink
            • 31707
            • 6 Posts
            You must let PHP "write" to the folder where your images are stored.
            Set 777 for this folder.
              • 17815
              • 50 Posts
              To install this snippet you should:

              • Download and extract snippet to assets/snippets/ folder
              • Create new snippet called MiniPhoto and copy to it contents of assets/snippets/miniphoto/miniphoto.tpl
              • Where you need execute created snippet, for example <img src=”[[MiniPhoto? &file=`[*docimg*]` &width=`200` &height=`200` &quality=`93` &dir=`mini`]]”> this is part of template that creates thumbs 200x200 pixels from docimg TV.

              By default snippet writes images to /assets/images/mini directory that must be created manualy and must have write permission.

              Also i noticed that script have one bug, if i change width or height it does no make new thumb. To correct this problem you may change line 27 of your snippet from
              $mp_img = $mp_dir.'/'basename($file);

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



              Thanks for good snippet!
                • 25321
                • 18 Posts
                Update version to 1.2
                  • 21610
                  • 360 Posts
                    Разработка сайтов на MODx
                    • 12941
                    • 87 Posts
                    Thank you for this Snippet. It is very simple and does just what I need it to! I looked at the DirectResize, but it had more features than I needed, watermarking, modals, etc. If you just need to make it easier to upload large images and resize them on the fly then this is perfect!
                      • 6998
                      • 25 Posts
                      Hey, all I can get is the "no photo" image. I’m using a TV for the image and I uploaded one in the TV slot, but it won’t show. Do you need to/need to not use the image widget? Is it a problem with calling the snippet from a Chunk?

                      When I put the value of the TV directly into the snippet, it works, but when I use [*tvname*] in the snippet, I get the "no photo" image. Suggestions?

                      Thanks for any help, I’m new.

                      PS- I’m trying to use this with slimbox, so if anyone has suggestions for the easiest setup, let me know. smiley

                      PPS- I’m using MODx 1.0