To link to a larger picture, the picture size will be limited in 1200 x 1200px, Into a square picture.
For example, the original photo size is 2048 x 1360, Using the same scaling photo, it should become 1200 x 797 (3:2 photo)
How to automatically reduce the image to the correct ratio (3:2), and is limited to less than 950px width?
For example, add a javascript to img resizemod="on" onload="rmw_img_loaded(this)" ??
see below:
http://vanillaforums.org/discussion/899/automatic-image-resizing-to-keep-forums-uniform
https://www.insoler.com/ The first community site supports RAW photo formats ! |
When will you folks learn to give complete details? Where is the image being placed? It's easy to fix this, but first we have to know what to fix.
To link to a larger picture, the picture size will be limited in 1200 x 1200px, Into a square picture.
For example, the original photo size is 2048 x 1360, Using the same scaling photo, it should become 1200 x 797 (3:2 photo)
How to automatically reduce the image to the correct ratio (3:2), and is limited to less than 950px width?
For example, add a javascript to img resizemod="on" onload="rmw_img_loaded(this)" ??
see below:
http://vanillaforums.org/discussion/899/automatic-image-resizing-to-keep-forums-uniform
My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
Wow! That's great! How can I to do this? "install a auto resize plugin in TinyMCE? or modify HTMLPurifier? https://www.insoler.com/ The first community site supports RAW photo formats ! |
curious now too.
is this what we need to do to tiny?
http://www.tinymce.com/wiki.php/Plugin:autoresize
Initialization Example
tinyMCE.init({ theme :"advanced", mode :"textareas", plugins :"autoresize" });
Options
Name |
Summary |
autoresize_min_height |
Min height value of the editor when it auto resizes. |
autoresize_max_height |
Max height value of the editor when it auto resizes. |
ManOfTeal.COM a Proud UNA site, six years running strong! |
RE:
Wow! That's great! How can I to do this? "install a auto resize plugin in TinyMCE? or modify HTMLPurifier?
Neither. It's a simple css change. Whenever you decide to tell me where the images are being posted, I'll tell you how to fix it. Blogs? Forums? Ads? Articles?
What???
My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
How about all? Just kidding!! Blogs, Forums, Articles... should be similar.
Use javascript programming, users can use the mouse to click picture to enlarge the picture to its original size.
for example:
http://www.photoshopforums.com/photoshop-cars-ive-been-working-on-to-try-and-rehone-skills-vt18054.html
please click this picture in that website.
https://www.insoler.com/ The first community site supports RAW photo formats ! |
Let's start with blogs. Try adding this to the end of these two css files:
modules/boonex/blogs/templates/base/css/blogs_common.css
modules/boonex/blogs/templates/base/css/blogs.css
.blog_text2 img { height: auto !important; max-width:600px !important; }
.blog_text img { height: auto !important; max-width:600px !important; }
As usual, clear all cache directories after making the change. Report back with the results.... try not to take 2 days.
My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
Frequently use modules bug all fixed, really thank you very much ! https://www.insoler.com/ The first community site supports RAW photo formats ! |