We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39658 ☆ A M B ☆
    • 106 Posts
    I am looking for a solution to autoresize images when they are uploaded. My customers tend to upload enormous images straight from their digital camera. Besides the fact it slows the site down, it also clutters the hosting.

    Is there a way to autoresize uploaded to say max 1200 pixels wide?
      • 17301
      • 932 Posts
      how are they uploading?have you looked into imageslim extra?
        ■ 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.
        • 39658 ☆ A M B ☆
        • 106 Posts
        What do you mean with how are they uploading? They're just using the regular ways of uploading in MODX. I have not looked into an Extra. Do you need an extra for something that simple?
          • 39658 ☆ A M B ☆
          • 106 Posts
          That Extra only works as a TV or snippet. I'd like a site wide solution for every image that is uploaded anywhere.
            • 45189
            • 35 Posts
            I just did a bit of Googling because my solution to this has always been to keep the image upload size limit low to force them to resize images before uploading, along with some instructions on how to resize the images in Paint or whatever.

            Anyway....apparently you'd need to set up a cron job to fire image-resizing code on image upload.
              • 4172
              • 5,888 Posts
                -------------------------------

                you can buy me a beer, if you like MIGX

                http://webcmsolutions.de/migx.html

                Thanks!
                • 39658 ☆ A M B ☆
                • 106 Posts
                Ok, thanks. Usually I limit the upload size as well. But then customers want to upload video's...

                I installed Autoresizeonupload, but there's no single explanation how to use that extra. So I uninstalled it again.

                I'm not a developer, but a frontend designer. I'm not familiar with cron jobs, PHP, etc. MODX is really really nice, but rather backend developer oriented, which gives me hard times setting up sites.
                  • 32507
                  • 142 Posts
                  This is one important feature missing in MODX. I haven't found any easy solution for this.

                  Would build one just dunno how wink
                    • 32507
                    • 142 Posts
                      • 39658 ☆ A M B ☆
                      • 106 Posts
                      phpThumbOf is only of use with TV's, not 'plain' images.