It would be extremely useful if the TinyMCE insert Image function could be made to use Jeremy Bass's SuperSizer plugin to automatically resize images to the display dimensions.
Is it possible to do this without hacking the module code?
TinyMCE + SuperSizer plugin
Re: TinyMCE + SuperSizer plugin
Well ... there's an option in the TinyMCE config where you can set the desired image size. So, if you set thumbnail size to, say, 200x200 and file resize on upload to e.g. 800x600 *and* activate "show thumbnails in the filepicker" ... should be pretty easy.kendo451 wrote: It would be extremely useful if the TinyMCE insert Image function could be made to use Jeremy Bass's SuperSizer plugin to automatically resize images to the display dimensions.
Is it possible to do this without hacking the module code?
BUT. A biiiig BUT.
In my experience, users tend to upload VERY BIG images. You can imagine what happens when a user uploads a 8 or 10 MB jpg file ...
So you have to downsize them anyway ...
Cheers,
Alex
Re: TinyMCE + SuperSizer plugin
Right, Alex. The idea was to change the image insertion to use a {supersizer} tag with the correct dimensions. This would automatically resize the image.
Alternatively, I guess you could write a udt that takes the entire page content, and replaces the tags in the content section with supersizer tags.
Alternatively, I guess you could write a udt that takes the entire page content, and replaces the tags in the content section with supersizer tags.
Re: TinyMCE + SuperSizer plugin
And create the same problem IMO ... most server won't resize big (>10 megapixel) images because they run out of memory. Or you get problems with the http upload.kendo451 wrote: Right, Alex. The idea was to change the image insertion to use a {supersizer} tag with the correct dimensions. This would automatically resize the image.
What I am looking for is an extension for TinyMCE which behaves like the editor (TinyMCE?) in WORDPRESS:
You still have to upload an image with the correct end size, but it creates a small and a medium sized thumbnail AND *automatically* inserts the chosen thumbnail with a link to the big image AND it lets you specify a caption AND it adds the required attributes for THICKBOX ...
If this were possible, I'd be in CMS heaven ...
Cheers,
Alex