By paradigmshifter on
Does anyone know of a way to set a maximum pixel size on images linked to or uploaded through any available Drupal WYSIWYG editor?
Does anyone know of a way to set a maximum pixel size on images linked to or uploaded through any available Drupal WYSIWYG editor?
Comments
bump... Has anyone heard if
bump... Has anyone heard if this is possible?
'Linking to' and 'uploading'
'Linking to' and 'uploading' are two completely different things.
For 'linked to' images, I don't think there is any way stop a user linking to a massive image. I think the best you can do is set the content div overflow to 'hidden', so it doesn't break your theme layout.
For uploaded images, you can resize and compress them depending on which file browser solution you use. Eg. IMCE, fckeditor's own file browser, cck image cache, paid plugin for TinyMCE, etc. You'd need test the various solutions and see which one you preferred (and many of them do not automatically process images on upload).
Thanks for the reply... That
Thanks for the reply... That was what I feared but hoped someone had already figured out a work around. Thanks for the overflow "hidden" idea, I hadn't thought of that.
Since a user can set the size of the linked image (although it doesn't actually resize the file size just browser size) in FCKeditor, it seems possible to disable that feature and instead check the size then output a browser scaled down version.
I don't know javascript very well or have a debugger for it, but plan on looking into it if there is no premade solution.