We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7455
    • 2,204 Posts
    OK nice Will be looking forward to this

    Dimmy
      follow me on twitter: @dimmy01
      • 30138
      • 11 Posts
      Just wanted to say this is an awesome plugin! It’s exactly what I’ve been looking for, it just takes all the hassle out of adding images to my site.

      Cheers
        • 6038
        • 228 Posts
        I have a problem which seems to be caused by this plug-in clashing with something else.

        When it is installed I get this javascript error reported by Firebug on pages, when using the lightboxv2 configuration:
        this.getElements is not a function
        [Break on this error] eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a...
        mootools.js line 2


        If i set the configuration to use slidebox there this error also:
        el.removeEvents is not a function
        [Break on this error] eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a...
        mootools.js (line 2)
        


        I have noticed this only happens when configuration of plug is using lightboxv2 or slidebox
        The error doesnt happen for me with slimbox or highslide.

        I am not a javascripter, so I’m not sure how to resolve this. Has anyone else had this problem, or even managed to resolve it/

        Using: MODX v0.9.6.1
        DirectResize v0.8.0.2
          • 7455
          • 2,204 Posts
          I somehow cant get the png watermark working and also the cropping does not what i want.
          maybe you can help me out with this?

          I like to use this plugin to create croped images no link and no lightbox etc. only resize and thumb generation is needed (thumbs are use in ditto)
          so I tryed this:

          
          <?php
          
          // This is the template to markup your thumbnails. See readme for possible placeholders.
          $tpl = '<img src="[+dr.bigPath+]" width="[+dr.bigWidth+]" height="[+dr.bigHeight+]" />';
          
          // All CSS and JS files and all other code that we need in our <HEAD> tag.
          // $header  = 	'';
          
          // Mode for lightbox links generating. 2 means that links will be genereted for all images with the allowed paths.
          $lightbox_mode = 2;
          
          // Very important parameter - paths to folders, where the images will be proccesed. Use comma as separator. You can use remote paths with http://.
          $allow_from="assets/images/home-grootnieuws";
          
          $resize_method = 0;
          $big_width = 485;
          
          $thumb_default_sizemode = 3;
          
          $thumb_default_width = 485; 
          $thumb_default_height = 225; 
          
          $big_use_watermark = 1;
          $big_watermark_img = '/gfx/nieuwsfoto_masker.png';
          $big_watermark_halign = 'left';
          $big_watermark_type = 'image';
          ?>


          when I remove $lightbox_mode = 2; then the plugin is not working anymore.

          also I tryed cropping using:
          $resize_method = 0;
          $big_width = 485;
          $big_height = 200;

          but then I get an image that is NOT 485 wide BUT it IS 200 HEIGHT its not cropped but only resized.
          would it not be better to create an image that is 485x200 by resizing to 480xcoresponding height and then crop the center of the image to 480x200?

          so this is not working for me:

          no png image for big image with the above code
          no cropping (only resizing even when resize is set to 0 for the big image)

          Dimmy
            follow me on twitter: @dimmy01
            • 19164
            • 1,215 Posts
            You can use label "drthumbonly" on images from you need to make thumbs.

            So in ditto template will be something like this

            <img src="[+img+]" width="485" height="200" drthumbonly />

            with default configs.

              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]
              • 7455
              • 2,204 Posts
              Quote from: Metaller at Jun 11, 2008, 06:45 AM

              You can use label "drthumbonly" on images from you need to make thumbs.

              So in ditto template will be something like this

              <img src="[+img+]" width="485" height="200" drthumbonly />

              with default configs.

              thumb is not the problem i made a nifty phx:snippet for that that grabs the url from the tv and then extracts the filename then I add the assets/drgalleries/[+id+]/thumb_[*imagetv:filename*]

              the problem is the pngwatermark and the cropping part.
                follow me on twitter: @dimmy01
                • 19164
                • 1,215 Posts
                I think about cropping position. Now image crops from top and from left. So if we have vertical photo with people on the bottom, after cropping there will be only sky. In next version crop direction will be customizable option.

                About watermarking, try $thumb_use_watermark.
                  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]
                  • 36451
                  • 264 Posts
                  Very nice plugin. Just my 2ç:
                  Line 648 in directResize.php
                  $path_to_gal = "assets/drgalleries/".$this->drconfig['docID']."/";

                  should read
                  $path_to_gal = DIRECTRESIZE_GALLERYDIR.$this->drconfig['docID']."/";

                  Line 838
                  SureRemoveDir($modx->config['base_path']."assets/drgalleries/".$_REQUEST[id]);

                  should read
                  SureRemoveDir($modx->config['base_path'].DIRECTRESIZE_GALLERYDIR.$_REQUEST[id]);

                  Line 843
                  SureRemoveDir($modx->config['base_path']."assets/drgalleries");

                  should read
                  SureRemoveDir($modx->config['base_path'].DIRECTRESIZE_GALLERYDIR);

                  Thank you and privjet!
                    • 19164
                    • 1,215 Posts
                    Thank you, all will be fixed in next verion. And hallo 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]
                      • 7455
                      • 2,204 Posts
                      Quote from: Metaller at Jun 11, 2008, 07:51 AM

                      I think about cropping position. Now image crops from top and from left. So if we have vertical photo with people on the bottom, after cropping there will be only sky. In next version crop direction will be customizable option.

                      About watermarking, try $thumb_use_watermark.

                      ok but cropping is not happening

                      and i do not want a watermark on the thumb i want it on the big image
                        follow me on twitter: @dimmy01