We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13428 ☆ A M B ☆
    • 1,031 Posts
    0.9 works fine here. Is there any way to exclude the big image from resampling?

    Translated the config to 0.9

    Regards
    Jako
      • 19164
      • 1,215 Posts
      In the 0.9 everithing is possible smiley Just wait some time while Fuzzy from russian-speaking community will able to find the time to translate all the docs.

      PS You can set big_width (default 800px)  and big_height (default 600px) to very big values, and the big image will never be resampled.
        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]
        • 23849
        • 223 Posts
        Having this strange issue when i resize images via TinyMCE. The src of the image gets all messed up. If i turn off TinyMCE everything works fine but as soon as I turn it on and save a page the src looks like this:

        src="http://missvermont.org/image.php?&src=assets/images/image.jpg&w=281&h=388&fltr[]=crop|0|0|0|0&f=jpeg&q=75&sia=thumb_image.jpg"

        rather than just assets/images/image.jpg

        Any ideas would be much appreciated!
          Nick Hoag
          Creative Partner
          The FutureForward

          http://thefutureforward.com
          • 28033
          • 925 Posts
          « MODx Parse Error »
          MODx encountered the following error while attempting to parse the requested resource:
          « PHP Parse Error »

          PHP error debug
          Error: array_combine() [function.array-combine]: Both parameters should have at least 1 element
          Error type/ Nr.: Warning - 2
          File: /home/wynen/public_html/talesunion/assets/plugins/directresize/directResize.php
          Line: 546
          Line 546 source: $result_style = array_combine($match[1],$match[2]);

          Parser timing
          MySQL: 0.0068 s (40 Requests)
          PHP: 1.1922 s
          Total: 1.1990 s

          Any idea why this is happening (it’s doing it on ANY page that has images, even if I specified a specific folder in the highslide.config.php file...
            My Snippets
            -> PopUpChunk v1.0
            • 13428 ☆ A M B ☆
            • 1,031 Posts
            @Soshite: This issue should be fixed with this patch. Or you don’t ’style’ any image on your site in the img tag directly.

            Regards
            Jako
              • 28033
              • 925 Posts
              That fixed the fatal error, but I’m not getting it to work...

              <?php
              $dr_global["path"] = "
              manga/vesperia/main/
              ";

              $dr_local["big_width"]["all"] = 100;
              $dr_local["big_height"]["all"] = 100;

              $dr_local["header"]["all"] = ’’;

              $dr_local["tpl_thumb"]["all"] = <<<HTML
              [+dr.shortcut.source2thumb+]
              HTML;

              $dr_local["tpl_lightbox"]["all"] = <<<HTML
              <a href="[+dr.big.src+]" class="highslide" onclick="return hs.expand(this, {captionId: ’caption[+dr.id+]’})">
              [+dr.shortcut.tpl_thumb+]
              </a>
              <div class="highslide-caption" id="caption[+dr.id+]">
              [+dr.title+]
              </div>
              HTML;

              ?>

              That’s my config. On http://www.talesunion.com/x360/vesperia/manga/main/1, it should have resized it, right?

              (The 100 values are just as a test until I find the dimensions I need.)

              Also, the image is called on that page as so...

              <img src="manga/vesperia/main/1.jpg" alt="Tales of Vesperia Manga (Page 1)" />
                My Snippets
                -> PopUpChunk v1.0
                • 13428 ☆ A M B ☆
                • 1,031 Posts
                The new lines could cause a problem with the path.
                  • 19164
                  • 1,215 Posts
                  @presson83 Did you check OnBeforeDocFormSave in plugin system events? DirectResize must convert PHPThumb src format to normal before document will be saved.

                  @Jako Plugin must correctly work with empty lines in $path parameter.

                  @Soshite Image is not resized because width or height of thumb is not set in config or source code.

                  $dr_local["thumb_width"]["all"] = 100; // we will use thumb, not big image.
                  $dr_local["thumb_height"]["all"] = 100;
                  $dr_local["thumb_use_defaults"]["all"] = 4; // override width/height settings of image, all size settings in source code will be ignored

                  or just set image width/height in source:

                  <img src="manga/vesperia/main/1.jpg" alt="Tales of Vesperia Manga (Page 1)" width="100" height="100" />

                    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]
                    • 13137
                    • 204 Posts
                    I have an image that I am using as a link and I dont want DR to touch it.
                    Is there a way to omit a resized image?
                      • 19164
                      • 1,215 Posts
                      DR will be resize images that allowed to resize in $dr_global["path"] parameter. Default is assets/images.

                      You can create new folder like assets/images/dr and put there files you want to resize. Than in assets/plugins/directresize/config/ folder in your config file set path parameter

                      $dr_global["path"]  = "assets/images/dr";

                      Now DR will be resize images only in this folder, not others.
                        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]