We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27672
    • 168 Posts
    in my gallery thumbTpl i call this (to get image quality higher):
    <div class="[[+cls]]"><img class="[[+imgCls]]" src="[[+image]]&q=100" alt="[[+name]]" /></div>

    but would rather call this:
    <div class="[[+cls]]"><img class="[[+imgCls]]" src="[[+image:phpthumbof=`q=100`]]" alt="[[+name]]" /></div>
    

    but it doesn’t seem to work. any ideas?
      • 28215
      • 4,149 Posts
      Gallery does not support phpThumbOf integration.
        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
        • 27672
        • 168 Posts
        boo. thanks for the quick reply.

        is there any way to get gallery to pass over "&q=100" in the img src other than what i did? i see there’s a mention of "imageQuality", which "If being used by a plugin, the quality of the image, from 0-100.", but i couldn’t figure out what to do with that. i put it in my call, but it didn’t seem to do anything.
          • 20178
          • 82 Posts
          ahh this expains why i could not apply phpthumb of watermark filter - is there any other work around for this have a client crying out for watermarks ?
            • 14368
            • 56 Posts
            Here’s what I did to use both watermarks and gallery:
            <a title="[[+galitem.name]]" rel="lightbox" href="[[+galitem.image]]&fltr[]=wmi|/i/watermark.png|C|100|10|10|0"><img class="[[+galitem.imgCls]]" src="[[+galitem.image]]&fltr[]=wmi|/i/watermark.png|C|100|10|10|0" alt="[[+galitem.name]]" /></a>


            So basically you make a normal call to galitem.image and just add the filter, or any other phpthumbof parameters, to the end. It works for me!
              • 20178
              • 82 Posts
              this wasn’t far off what i have i can apply phpthumbof filters but it mucks up some of the features of my jquery gallery -


              this is my ; galItemThumb ;

              <div class="[[+cls]]">
              <a href="[[+image]]&fltr[]=wmt|TESTER TEXT" rel="prettyPhoto&#91;[[+album]]&#93;">
              <img class="[[+imgCls]]" src="[[+thumbnail]]" alt="[[+name]]" />
              </a>
              </div>


              if i place the phpthumbof watermark text it appears however when using with prettyphoto which has a nice thumbail bar within the large image the thumbnails do not show - is fine if i remove the line ;
              &fltr[]=wmt|TESTER TEXT

              • Actually, phpthumbof works perfectly in the Gallery template, but you have to change the placeholder to the direct image URL (fileurl). I find some JQuery scripts work much better if you use phpthumbof instead of the Gallery resizer:
                [[+fileurl:phpthumbof=`w=890&h=890`]]

                Gallery was causing too much of a delay in serving the image for my JQuery gallery.
                  WebsiteZen.com - MODX and E-Commerce web development in the San Francisco Bay Area
                  • 27672
                  • 168 Posts
                  the `fileurl` method works great. is it just me, or is this not documented in the http://rtfm.modx.com/display/ADDON/Gallery page? i never saw this parameter referenced in there, and flipping through it and don’t see mention of it.
                    • 14822
                    • 61 Posts
                    Quote from: Oleg at Mar 06, 2011, 07:27 AM

                    Actually, phpthumbof works perfectly in the Gallery template, but you have to change the placeholder to the direct image URL (fileurl). I find some JQuery scripts work much better if you use phpthumbof instead of the Gallery resizer:
                    [[+fileurl:phpthumbof=`w=890&h=890`]]

                    Gallery was causing too much of a delay in serving the image for my JQuery gallery.

                    Hi, I try used this and not work for me sad

                    My gallery chunck:

                    <article class="bEspecialidades">
                      <div class="fblanco">
                        <ul>[[!Gallery? &album=`7` &thumbTpl=`Especialtpl`]]</ul>
                      </div>  
                      <h2>Nuestras especialidades</h2>
                    </article>


                    and my thumbTpl

                    <li>
                      <div class="image"><img src="[[+fileurl:phpthumbof=`w=420&h=224`]]" alt="[[+name]] - [[++site_name]]" /></div>
                      <h3 class="data">[[+name]]</h3>
                    </li>
                    


                    what is wrong??

                    I used MODx Revolution 2.0.8-pl (traditional) and Gallery 1.2.0 RC1. I want use phpthumbof because this error http://modxcms.com/forums/index.php/topic,63281.0.html makes me crazy sad

                    tnx
                    • Did you install the phpthumbof package? If so, what errors are you getting?
                        WebsiteZen.com - MODX and E-Commerce web development in the San Francisco Bay Area