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
    Big image is an image that shown when we are click on thumb. If you are not needed lightbox and etc, you need to use thubnail, not big image.

    I don’t know english very well so i can’t to completly understand what you want and why all that i post early was not helped in your case.
      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]
      • 12110
      • 122 Posts
      This is one of the greatest and most client-friendly add-ons to MODx, thanks Metaller!!

      But ... I’m having a BIG problem since today, I am looking for reasons or solutions half the day already.

      When editing a page with DirectResize images inside, the editing stops and says:
      Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 9088 bytes) in [my client's path]/assets/plugins/directresize/includes/Thumbnail.class.php on line 360F


      Can’t edit the page! The images are not very big in KB-size (original images about 150 kB).

      EDIT: some text here removed, as earlier TinyMCE/FCKeditor Resource Browser (images not shown) issues seem solved and semm not related to DirectResize

      But still I can’t edit the page!Maybe someone has a helpful idea, thanks a lot!
        • 19164
        • 1,215 Posts
        Need more information - html code of the page, may be - informaition about images, format, size, name. I have no any ideas right now. It seems that php can’t process that images. Is the document is editable when WYSIWYG is disabled?
          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]
          • 12110
          • 122 Posts
          Hello Metaller,

          thanks for helping.

          The front end in browser looks well: i.E. http://www.hummel-public-relations.de/109.html

          In MODx manager I deactivated Richt Text Editor but still can’t edit the document. I get this message:

          Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1247 bytes) in /kunden/102604_85625/rp-hosting/2039/2042/assets/plugins/directresize/includes/Thumbnail.class.php on line 360


          In the database in the modx_site_content table the image code looked like that:
          <h3><img alt="Prof. Yu Ding Hai zeigt den Bären" height="239" src="assets/images/pressebilder/Prof_yu_Ding_hai.jpg" style="float: right;" title="Prof. Yu Ding Hai" width="250" />Erster Europäischer Gesundheits-Qigong-Kongress in München</h3>
          <p>Vom 17. bis 19. Oktober 2008 veranstaltet Dokuho J. Meindl, Gesundheits QiGong Deutschland,


          I then removed the image tag from the content in database entry and then could edit again the page. (h3 tag didn’t matter, had removed but didn’t change anything).

          I then added the same image in the MODx manager and resized the dimesions to 250 pIxel width - and I got the error message again.

          Then I reduced the original image dimensions from 1247x1100 pixel width and 190KB to 627x600px width and 72 KB. I saved - and then I could edit the page again!

          I don’t know whats going wrong, before I had no problems with image sizes or KB.

          "... tried to allocate 1247 bytes..." in the error message says even this small amount of memory can’t be allocated... huh

          The error occurs with both Firefox 2 and IE 7. The memory setting is: var $memory_limit=’8M’; I also tried 16M and 32M - didn’t matter.

          Thanks again.
            • 19164
            • 1,215 Posts
            Did you use Maxigallery on the same site? Did it work with the same image? It seems that problems is inside php or hosting, because all working good with smaller images.

            Did your restart server when changing memory_limit? And how did your change this option - in php.ini, .htaccess or inside php-script? I think that increasing memory limit must help in your case.
              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]
              • 12110
              • 122 Posts
              Hello,

              no, MaxiGallery wasn’t in use with this site. I changed the memory value to 16MB in php.ini (in manager directory) as well as in Thumbnail.class.php

              It then reads "...Allowed memory size of 16777216 bytes exhausted (tried to allocate 800 bytes) ..."

              I now found one thing that seems to make everything work again: commenting out in Thumbnail.class.php at line 362

              /*
              		$memory_limit = ini_get('memory_limit');
              		if ($memory_limit < $this->memory_limit) {
              			ini_set('memory_limit',$this->memory_limit);
              		}
                      */


              Of course I’m not sure if that’s a good idea. But maybe there’s a ini_get() issue:

              The request "echo ini_get(’memory_limit’);" returns "50M" on a test page. But can you do calculations and < operation with this shorthand notation? I just read this in the PHP ini_get manual http://de3.php.net/ini_get:
              When querying memory size values  Many ini memory size values, such as upload_max_filesize, are stored in the php.ini file in shorthand notation. ini_get() will return the exact string stored in the php.ini file and NOT its integer  equivalent. Attempting normal arithmetic functions on these values will not have otherwise expected results.


              Thanks again ...
                • 12110
                • 122 Posts
                Just want to put the final solution here that solved the problem:

                I had to change the memory_limit value of the php.ini file on the webserver, changed it from 8MB to 50MB, and also put a php.ini file with this value into the manager folder.

                Now even big images are no more producing this "memory size ... exhausted" message when DirectResize is applied..
                  • 8790
                  • 526 Posts
                  Hi,

                  I think DR should be included into the default package ! grin

                  However I just found a little issue about code validity (as far as I know)

                  the xhtml output gives an IMG balise wich is NOT auto closed ( must have " />" vs " >" only)

                  I’m not able to find where is this in the php.

                  Any help ?

                  thank you
                    Schtroumpf Grognon - Grouchy Smurf
                    ---------------------------------
                    Faites pas attention.. - Don&#39;t pay attention
                    http://www.dzi-neo.net
                    • 19164
                    • 1,215 Posts
                    Hi. Thanks!

                    May be this is not hardcoded. Look $tpl in \assets\plugins\directresize\configs\*.config.php. Or may be this IMG was in original document.

                    Are all IMG tags valid in original document?
                      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]
                      • 8790
                      • 526 Posts
                      heeuh.. huh

                      Not sure to understand.

                      As far as I use this snippet it’s mainly naturally through TinyMce. (last release) Do you suggest Tiny do not close it’s img tag ?? hmmmm? This should be strange. Direct resize replace the original image by it’s auto generated thumb (with its size declaration) into the img tag, so I thought it was Dr that was concerned by this /> issue ..

                      I’ll have a look into the config.php.

                      Thank
                        Schtroumpf Grognon - Grouchy Smurf
                        ---------------------------------
                        Faites pas attention.. - Don&#39;t pay attention
                        http://www.dzi-neo.net