We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19164
    • 1,215 Posts
    @aour Yes,you do. directresize080en.zip is the first release. All founded bugs fixed in direcresize_bugfix.zip only not in directresize080en.zip


    @ronaldlokers Do you mean that thumbs becoming larger than the original source image? If sizes for image is set more than original sizes - this images is not processed by plugin and skipped. It stretched by browser.
      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]
      • 25483
      • 741 Posts
      Quote from: Metaller at Nov 15, 2007, 03:21 PM

      @ronaldlokers Do you mean that thumbs becoming larger than the original source image? If sizes for image is set more than original sizes - this images is not processed by plugin and skipped. It stretched by browser.

      So I need to create templates that don’t have a with and heigth set?
        with regards,

        Ronald Lokers
        'Front-end developer' @ h2o Media

        • 19164
        • 1,215 Posts
        There is no function in plugin to make images with the specified size. If original image is bigger than size that you set, then thumbs will be created, but if image is lesser - plugin is not process this image.

        You can try to use specified $thumb_default_width, $thumb_default_height and $thumb_default_sizemode = 1 and not set image width and height in img tag.
          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]
          • 18830
          • 161 Posts
          First of all I must say thank you, Metaller, because this ist the plugin I was looking for.

          Nevertheless I´ve problems to get it work.

          When I get you right I have just to put in a simple img-element like this

          <img src="/assets/images/test.jpg" height="150" />
          


          and leave the this plugin configuration

          &config=Configuration;string;highslide
          &clearCache=Cache clear mode;list;0,1,2;2
          


          untouched to resize the image from a height of 200px to 150px?

          But unfortunatally nothing will happen. Did I miss anything?

          Thanks for any advice.
            • 19164
            • 1,215 Posts
            Hi Mazso. Don’t use absolute path for images, only relative. Not "/assets/images/test.jpg" but "assets/images/test.jpg".

            Try to use <base href="[(site_url)]" /> in your <HEAD> section if you have broken links with relative path.
              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]
              • 18830
              • 161 Posts
              Wow, Metaller, that was an super fast answer. And now it works.

              But may I ask another question?

              At the plugin configuration I tried this:

              &clearCache=Cache clear mode;list;0,1,2;2
              &tpl=Template;list;picture,picture2;picture
              &thumb_default_width=Width;list;120,150;150
              


              But neither the default width will work nor the chunk will be used.
                • 19164
                • 1,215 Posts
                Don’t add another params in plugin config tab than default (&config=Configuration;string;highslide
                &clearCache=Cache clear mode;list;0,1,2;0).

                All the plugin configuration is in highslide.config.php in \assets\plugins\directresize\configs. You can create your own config file (myfile.config.php and change Configuration field in plugin configuration tab to "myfile".

                See readme for more details, there is a lot of changes over the previous versions by Arnaud.
                  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]
                  • 18830
                  • 161 Posts
                  Thank you, Metaller.
                    • 25483
                    • 741 Posts
                    Why can’t I use a GIF image with this script? I get a white page if I include a resized GIF image to a document...

                    Maybe you could build in a check so that the scripts leaves the GIF images alone??
                      with regards,

                      Ronald Lokers
                      'Front-end developer' @ h2o Media

                      • 19164
                      • 1,215 Posts
                      Thanks for your report, i’ll check it today.
                        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]