We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23849
    • 223 Posts
    Fantastic!!! Works like a charm, thanks Metaller for the fix!
      Nick Hoag
      Creative Partner
      The FutureForward

      http://thefutureforward.com
      • 16364
      • 13 Posts
      Thank you Metaller, works great! grin
        • 19164
        • 1,215 Posts
        All for you, guys smiley
          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]
          • 16610
          • 634 Posts
          Metaller, you are a genious ! I just realized that you can use PHx logic in DirectResize config file (templates). This really opens completely new possibilities to automate image manipulation and image captions. Wow laugh
            Mikko Lammi, Owner at Maagit
            • 4172
            • 5,888 Posts
            Is there a way that directResize resizes allways from original-image? so when I have an image /assets/images/45/tn_dragoncup2008_218.jpg I want to resize it from /assets/images/45/dragoncup2008_218.jpg. Also when I have /assets/images/45/thumb_dragoncup2008_218.jpg and I resize it again, that directResize uses the original-image?

            thanks for your help and for that great plugin.
              -------------------------------

              you can buy me a beer, if you like MIGX

              http://webcmsolutions.de/migx.html

              Thanks!
              • 4172
              • 5,888 Posts
              Ok, think I have gotten it now:

              need that in the config:

              $dr_local["bind_config_to_css_selector"]["frontend_editor"] = ".xedit img";
              $dr_local["thumbonly"]["frontend_editor"] = true;


              because I have divs with class="xedit" when I am in edit-mode.
              and I have to remove tn_ or thumb_ prefix in the img
              and have to run the function ConvertFromBackend($content) before saving new dragged in or modified thumbs, so directResize resamples allways from original-image.

              genious plugin, Metaller laugh
                -------------------------------

                you can buy me a beer, if you like MIGX

                http://webcmsolutions.de/migx.html

                Thanks!
                • 19164
                • 1,215 Posts
                Great that you can solve your problem by yourself.
                  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]
                  • 6561
                  • 139 Posts
                  (to what) do I need to change my rewrite-rule if my modx website is in subfolder ’modx’?

                  For example if it is in: http://www.somekindofurl.com/modx/

                  If I enable DirectResize now I get nothing but blank pages... if I disable it, I get the ’normal’ pages. I think that has something to do with this.

                    • 16610
                    • 634 Posts
                    I have used DirectResize 0.9 beta rev 6 on multiple servers with different configurations. There is definitely something odd going on with either DirectRezise itself or phpThumb bundled with DR. While DR is absolutely great I have now encountered the same problem too many times:

                    For some reason about 1% of the page loads fails to show images manipulated with DR. When this happens these images are broken because image paths are wrong. Paths are something like "images/f43fdsfsdfad3fd/thumbs/image.jpg". It looks like the rewrite rule in .htaccess file or DR’s furl.php occasionally fails to rewrite the cached images.

                    This same thing has happened with couple different server configurations from shared-servers to virtual private server. I have never encountered the problem with my local XAMPP configuration, so it seems this is a server configuration problem. I have also tried different settings in phpThumb’s configuration file but without success.

                    Does anyone else have this same problem? And better yet, does anyone have clues how to possibly fix it?
                      Mikko Lammi, Owner at Maagit
                      • 4414
                      • 63 Posts
                      Hi,

                      I have installed DirectResize 0.9 to only create thumbnails without a link to the original image.

                      In Resources/Manage Resources/Plugins/DirectResize --> Configuration I wrote &config = Configuration; string; thumb, created a file named thumb.config.php and placed it in assets/assets/plugins/directresize/configs

                      The content of this file is as follows:
                      <?php
                      
                      $dr_global["path"] = "assets/images/sovonex";
                      
                      
                      $dr_local["tpl_thumb"]["all"] = "[+dr.shortcut.source2thumb+]";
                      
                      $dr_local["thumbonly"]["all"] = true;
                      
                      $dr_local["thumb_quality"]["all"] = 95;
                      
                      ?>


                      However, for some reason DirectResize still creates a link to the original image for every thumbnail. The corresponding HTML code looks like this:
                      <a target="_blank" href="images/997c58afd615f2c673d6a2053fd39db5/test.jpg">
                      <img class="img_container_left" width="205" height="138" alt="test" src="images/d4d193353c1a502688ba59c3e36aa2f0/thumb_test.jpg" title="test"/>


                      I have no Idea where the <a> tag might come from but I’m pretty sure it has something to do with my configuration file.

                      Maybe anyone using DirectResize has an idea. Any suggestions are highly appreciated!

                      Best regards,

                      Stefan