Image resizing/cropping with Redactor

Howdy folks!

Could anyone point me in the right direction? I’m trying to figure out how to implement image resizing (from 4000x3000 to 400x300) and cropping(4000x3000 to 400x150) within redactor. I’d like to be able to specify a set of crop/size values for the user to choose from as well.

Thanks!

Hey Jamison,

If you enable the imagepx plugin (redactor.plugin_imagepx setting iirc), that will add two fields to the editing image modal where you enter the size in pixels. It wont automatically crop the image, but you can use the AutoFixImageSize MODX plugin or imageSlim to process the content and get those images resized to their actual used size automatically.