Compress images upon upload?

Hi is there a way to compress images upon upload? Or edit the template for so i can put Pthumb in there?
clients keep placing crazy big images in content.
RDG

It would be ideal to configure this site-wide, so an extra like ImageOptimOnUpload would be nice: https://modx.com/extras/package/imageoptimonupload

There’s also some code for it on Vasily’s site at https://bezumkin.ru/sections/components/118/ - not sure if that ever got packaged up into an installable package though.

Or, if you don’t need it on upload per-se, you could use AutoFixImageSize or imageSlim on your templates. Those will both look at your content, and the width/height set on images, and rewrite that dynamically to a thumbnail that matches that size.