Resizing images in Kupu

by Vasily last modified Dec 30, 2008 03:02 PM

How to enable image resizing in Kupu editor

The default Kupu configuration does not support image resizing. Actually it allows you to resize them visually, but afterwards these changes are stripped from the final HTML code.

So, if you want to give users ability to resize images in documents they create, you should make small amendments to your Kupu configuration:

  • Go to Plone Control Panel -> Kupu Visual Editor.
  • You should add two new values to Style Whitelist: width and height.
  • Save changes.

That's it. Now you should be able to resize images to your liking.

(But do note that this just resizes the image by telling the browser the new size, so it might result in blurry images. Doing it with an image editor might produce better results. For quickly reducing the size of the image it 'll be OK, though.)