Forum

Thread tagged as: Question, Problem, Redactor

Redactor Stop Image Resize!

Anyone else using the Redactor editor? Does it resize any images that are entered in it? It it outputting 640px by default (no matter how large the image I upload is). I can resize it a bit in the editor but this adds inline styles.

I've looked into the Redactor docs, tried a few settings, to no avail. I've google search the problem, but it seems that all the results are complaining that Redactor does NOT resize images... which is exactly what I want! I just want a plain old <img> tag, even it does wrap it in <p> (which is also very irritating).

Nicholas Nelson

Nicholas Nelson 0 points

  • 7 years ago

I just tried the CKEditor with the same result. It defaults to 640px, I even deleted the suggested size (cke asks you to give a width) but it still out put a 640px img.

If I use the Web Link option to add an image in Redactor, the image size is not affected.

So is this not particular to a js editor, but perhaps the perch blog?

Drew McLellan

Drew McLellan 2638 points
Perch Support

What size have you set on your template tag?

This is in a textarea template tag. I have nothing specified for images except bucket="blog" and I have no size="" attribute set.

Drew McLellan

Drew McLellan 2638 points
Perch Support

You should set the dimensions to a very high number then. Images will always be smaller and so won't be resized.

https://docs.grabaperch.com/docs/templates/attributes/type/textarea/

We use Redactor exclusively and have made thousands of pages with it.

The way we resize is to use the drag'n'drop options (in the menu select Insert Image) and after dragging the image into the dialogue we manually adjust the size on the Edit page by clicking the right hand lower corner and moving the cursor. Our editors have gotten pretty click at making the adjustment 'just-so' to get it looking right on the page.

This may not work for everyone, but it does for us.