Subscribe: RSS
  • Quote from: sitsol at Sep 17, 2013, 02:49 PM
    I think this isn't right, because the image is taken the
    &thumbWidth=`120` &thumbHeight=`120`
    in the code from Cliche. I don't know how to overrule this so it takes the values of the phpthumbsup instead.

    Like I said, I've never used Cliche, but looking at default/image.tpl on the rtfm, you could try:

    <dl class="item">
        <dt class="album-icon">
            <a class="zoom" title="[[+name]]" href="[[+image]]">
                <img title="[[+name]]" alt="[[+description]]" class="attachment-thumbnail" src="[[+image:phpthumbsup=`&w=120&h=120&zc=1&q=90`]]"/>
            </a>
        </dt>
    </dl><!-- End .item -->


    And leave out the &thumbWidth parameters.
    • phpThumbOf gave problems within a getImageList template with this code:

      [[+image:phpthumbof=`w=218&h=145&zc=1`]]


      When I deleted phpThumbOf and installed pThumb it worked like a charm.

      • Another vote for pThumb.
        I tried phpThumbOf and phpThumbsUp but the only one that worked as I wanted was pThumb. - So a big thanks to the developer of this.
          www.9thwave.co.uk
             WEB | DESIGN | PRINT
        • Sure; I'm glad to hear people find it useful!
            Extras :: pThumbResizerimageSlimsetPlaceholders
          • I must be dense or maybe it's just too late in the day. In any case I do not under stand the snippit call [[+image:phpthumbof=`w=2508&h=188&zc=1`]]? where do I put the image url? I have tried the conventional type call:
            [[pThumb?
            &input=`photos/07/Bryce 2015-07-31 008.jpg`
            &options=``
            ]]
            but I'm not sure how to list the options. as it is now it just copies the full size image to the cache.
            Any and all help appreciated.
            Thanks
            • Quote from: jerry325 at Oct 13, 2016, 02:47 AM
              I must be dense or maybe it's just too late in the day. In any case I do not under stand the snippit call [[+image:phpthumbof=`w=2508&h=188&zc=1`]]? where do I put the image url? I have tried the conventional type call:
              [[pThumb?
              &input=`photos/07/Bryce 2015-07-31 008.jpg`
              &options=``
              ]]
              but I'm not sure how to list the options. as it is now it just copies the full size image to the cache.
              Any and all help appreciated.
              Thanks

              Has been a while ago since I wrote the code for our site but this is what I used (and is working too...)

              [[getImageList?
              		&tvname=`portfolio.tv`
              		&tpl=`portfolio-page-other-images`
              		&docid=`[[+id]]`
              		&limit=`0`
              		&offset=`1`
              		&data-caption=`[[+data-caption]]`]]
              


              The "&tpl=`portfolio-page-other-images`" contains:

              <li ><a href="[[+image]]"><img data-caption="[[+property.data-caption]]" src="[[+image:phpthumbof=`w=218&h=145&zc=1&q=45`]]" alt="[[+property.data-caption]]" height="145" width="218"></a></li>
              


              • Quote from: jerry325 at Oct 13, 2016, 02:47 AM
                I must be dense or maybe it's just too late in the day. In any case I do not under stand the snippit call [[+image:phpthumbof=`w=2508&h=188&zc=1`]]? where do I put the image url? I have tried the conventional type call:
                [[pThumb?
                &input=`photos/07/Bryce 2015-07-31 008.jpg`
                &options=``
                ]]
                but I'm not sure how to list the options. as it is now it just copies the full size image to the cache.
                Any and all help appreciated.
                Thanks

                [[+image]] has to be a variable in your Migx and you have to put in your chunk that you use as tpl in your getImageList.
                • OK, thanks. I was hoping to use this in conjunction with another snippit of mine and i know nothing about Mgix or getImageList. Can you tell me what the variable contains?
                  • Quote from: jerry325 at Oct 13, 2016, 02:57 PM
                    OK, thanks. I was hoping to use this in conjunction with another snippit of mine and i know nothing about Mgix or getImageList. Can you tell me what the variable contains?

                    OK just in case I am not the only weird-o who just wants to use this as a straight snippit call I was able to do what I wanted using:
                    <img src="[[pThumb? &input=`photos/family/07/Bryce 2015-07-31 008.jpg`
                    &options=`&w=250&h=188`
                    ]]
                    " />
                    

                    Thanks to the great information found here: http://www.belafontecode.com/image-manipulation-with-phpthumbof-in-modx-revolution/
                    • Here is a comparison of pthumb, phpthumbof and phpthumbsup:
                      https://github.com/modxcms/pThumb/wiki/Thumb-War

                      Here is my way to avoid the old phpthumb of the Gallery. I use pthumb, the parameters stay the same:

                      Gallery call:
                      [[Gallery?
                          &album=`[[*lightGalleryPics]]`
                          &linkToImage=`1`
                          &thumbTpl=`galThumb2`
                          &toPlaceholder=`lightGallery`
                      ]]
                      [[!If?
                          &subject=`[[+lightGallery]]` 
                          &operator=`!empty` 
                          &then=`
                      <div id="lightgallery" class="lbContainer">
                          [[+lightGallery]]
                      </div>
                      `]]
                      


                      chunk: galThumb2
                      <a href="" data-responsive="[[+fileurl:phpthumbof=`w=375&h=375&useResizer=1`]] 375, [[+fileurl:phpthumbof=`w=480&h=480&useResizer=1`]] 480, [[+fileurl:phpthumbof=`w=800&h=800&useResizer=1`]] 800" data-src="[[+fileurl:phpthumbof=`w=1600&h=1200&useResizer=1`]]" data-sub-html="<h4>[[+name]]</h4><p>[[+description]]</p>" data-pinterest-text="Pin it1" data-tweet-text="share on twitter 1">
                          <img[[+imgCls:notempty=`class="[[+imgCls]]"`]] src="[[+fileurl:phpthumbof=`w=156&h=156&zc=1&useResizer=1`]]" alt="[[+description]]" title="[[+name]]"[[+image_attributes:notempty=` [[+image_attributes]]`]] />
                          <div class="zoomer">
                              <img src="template/hotel-gutshof-busch/js/vendor/lightgallery/img/zoom.png" alt="zoom" />
                          </div>
                      </a>
                      


                      In the Settings of pthumb (name: phpthumbof) I switched the pthumb-cache on, resizer off.
                      I had a strange issue: Switching Resizer in the System-Settings on gave me some errors: Memory exceeded!
                      Switching it off and puttig the Parameter in galThumb2 everything was OK!
                      With every try I deleted the cache of course.