We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 51315
    • 67 Posts
    I have a gallery I made using MIGX.
    Now I would like images to be resized with pThumb.
    getImageList's chunk looks as following:
    <img src="assets/images/[[+property.docid]]/[[+image:pThumb=`w=1000&h=800&zc=1`]]" />
    
    Nothing happen to pictures as if pThumb were not installed (and it's not the case).
    Should it work?

    This question has been answered by Bruno17. See the first response.

      • 17301
      • 932 Posts
      You just need the pthumb call in the src as it'll output the full path also. What is being outputted when you inspect?
        ■ email: [email protected] | ■ website: https://alienbuild.uk

        The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
        • 51315
        • 67 Posts
        The path is good and image is properly displayed but at its original size.
        assets/images/20/image.JPG
          • 51315
          • 67 Posts
          Same thing calling the snippet:
          <img src="assets/images/[[+property.docid]]/[[pthumb? &input=`[[+image]]` &options=`w=1000&h=800&zc=1` &useResizer=`1`]]" /></a>
          

          Same path and output:
          assets/images/20/image.JPG
          • discuss.answer
            • 4172
            • 5,888 Posts
            try it this way:

            <img src="[[pthumb? &input=`assets/images/[[+property.docid]]/[[+image]]` &options=`w=1000&h=800&zc=1` &useResizer=`1`]]" /></a>

              -------------------------------

              you can buy me a beer, if you like MIGX

              http://webcmsolutions.de/migx.html

              Thanks!
              • 51315
              • 67 Posts
              Of course I should've tried, it works thanks!