TinyMCE + SuperSizer plugin

General project discussion. NOT for help questions.
Post Reply
kendo451

TinyMCE + SuperSizer plugin

Post by kendo451 »

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?
faglork

Re: TinyMCE + SuperSizer plugin

Post by faglork »

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?
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.

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
kendo451

Re: TinyMCE + SuperSizer plugin

Post by kendo451 »

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.
faglork

Re: TinyMCE + SuperSizer plugin

Post by faglork »

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.
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.

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
Post Reply

Return to “General Discussion”