Search not my friend: resize images mod

Snitz™ Forums 2000
https://forum.snitz.com/forumTopic/Posts/66853?pagenum=1
05 November 2025, 00:20

Topic


Dean_OK
Search not my friend: resize images mod
13 April 2008, 23:37


Ok, came up with a neat wrapper for my forum, now I realize that images posted in the forum are going to blow out my neat design if they are too big.
I looked at several posts about resizing, but soon became lost in the maze of changes and modifications.
Can someone point me to a mod that will resize images in that are included in the posts and set a maximum width and maintain the original aspect ratio?
<moved from="Help: General / Current Version (v3.4.xx)" by="Shaggy" /><

 

Replies ...


Shaggy
14 April 2008, 04:51


[Link]
<
Dean_OK
15 April 2008, 20:15


Well, I did this mod. Easy enough to do, but I never got it to work. No JavaScript errors... just nothing. Can't figure out what I did wrong.<
MaD2ko0l
15 April 2008, 21:23


i did somthing similar to that, but it also worked for long words, as in when comeone enters a laod of letters without spaces, works the same when images are to big as well. i use this bit of css in a div tag

.MessageText {width:847px; overflow: auto}

may not be the best, but i saw somthign similar on another forum so i though i would give it a crack and see if i could do it and make it work.
altho i do try and keep images to 640x800, but u know what some people are like when they aint got a clue how to resize a pic<
radiodelicate
07 July 2008, 14:18


I might be a bit late here, and I could be completely wrong, but... isn't it possible just to in inc_func_common.asp, around line 1200 add a bit of css to the end of the image tags?
Code:
ImgTags(1,1,2) = "<img src="""
ImgTags(1,2,2) = """ border=""0"" style=""max-width:600px; max-height:400px;"">"

set the max width and height to whatever you fancy, and then do the same with all of the image tags? I haven't tried this, but I reckon it ought to work.<
© 2000-2021 Snitz™ Communications