We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38705
    • 101 Posts
    Hi,

    My client uploads very large photos (6000x4000). pThumb is my resizer of choice but looks to choke on large format images...
    If i try to resize the 6000px to 2000px or even 1500px I end up with a blank page. phpThumbOf / pThumb creates a file nicely if i drop the width to 1000px or lower.

    I need to resize these pictures for a bg-image (parallax) 2000x700

    - I also noticed that the zoom-cropping feature only acceptes zc=1 (used to be all orientations).
    - Resizer set to "yes" also does not generate any thumbnails


    Does anyone have any experience in solving this?
    (obvious to change to phpThumbsUp because this does the resize as wanted)


    My env: PHP 5.5, MODX 2.3.3

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

      Addict since 2012....
    • discuss.answer
      Did you try this?

      [[pthumb?
      &input=`[[+image]]`
      &options=`w=2000&h=700`
      &useResizer=`1`
      ]]
      
        MODX Ambassador (NL) | Responsive web design specialist, developer & speaker
        DESIGNfromWITHIN, MPThemes and Any Screen Size
        Follow me on Twitter | Read my blog | My code on GitHub
      • It could be a timing or memory issue, since it's a PHP script. Check your PHP error logs.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 38705
          • 101 Posts
          Hi Menno,

          Your code works. Feel a little stupid for not trying it that way.

          Thanx
            Addict since 2012....