Everything about Image Resize goes here
papp0us
Posts: 21
Reputation: 0

Message # 16 | 7:59 PM
Hi again, i've got a brand new question:P Is there any way to auto-resize the images added with the bb-code??it already happens if you add a picture as an attachment but you can't put the attachment anywhere in the post it just lies in the end of your post..What about bb-code?any tricks?thanx anyway
Sunny
Posts: 9296
Reputation: 456

Message # 17 | 8:35 AM
Quote (papp0us)
it already happens if you add a picture as an attachment but you can't put the attachment anywhere in the post

You can. Copy the code, e.g. $IMAGE1$, and paste it in any place of your post.


I'm not active on the forum anymore. Please contact other forum staff.
guitarmantra
Posts: 30
Reputation: 5

Message # 18 | 1:51 PM
Code
[img]image url[/img]
this can also be used. If the image is too big..

u can use rimg instead of img


Sunny
Posts: 9296
Reputation: 456

Message # 19 | 8:57 AM
Quote (guitarmantra)
u can use rimg instead of img

guitarmantra, what are you talking about?


I'm not active on the forum anymore. Please contact other forum staff.
TheaSH90
Posts: 1
Reputation: 0

Message # 20 | 10:50 AM
My query is, how can I resize my pics that are posted on forums
suppose, a 1024*768 image to a 640*480
or how to shrinks large images automatically to suit the specified dimensions
the option is not working 4 me
the images are not being resized and still on their original size
Tommy
Posts: 454
Reputation: 38

Message # 21 | 11:11 AM
TheaSH90, automatic resizing of images works if they are added as attachments, and not by means of [img] bb code.
"I don't like to commit myself about heaven and hell - you see, I have friends in both places"
Dartz
Posts: 1931

Message # 22 | 4:46 PM
Tommy is right but it can be done by modifying CSS code. (We have it in here as well)
[... With uCoz since December 2 2007 ...]
shadychiri
Posts: 62
Reputation: 2

Message # 23 | 11:33 AM
Actualy resizing of images entered using [IMG]......[/IMG] is possible sadly though it involves some change in code.

first locate the following code in your css templates

Quote

.posttdMessage { background:#202020; padding:5px; }

i am using a custom stylesheet but for default templates, its in the folder _st and is named My.css
you can customize this through the control panel>>>design templates [css]
in a my.css locate the following
Quote

/* Posts View */
.postPoll {padding:5px;background:#F4F4F4;text-align:center;background-image: url('http://forum.ucoz.com/12.gif');}
.postFirst {background:#FFFFFF;}
.postRest1 {background:#FFFFFF;}
.postRest2 {background:#FFFFFF;}
.postSeparator {height:2px;background:#D2D2D2;}
.postTable {background:#EFEFEF;}

.postTdTop {background:#F4F4F4;height:20px;border-bottom:1px solid #B5B5B5;}
.postBottom {background:#F4F4F4;height:20px;border-top:1px solid #B5B5B5;}

.postUser {font-weight:bold;font-family:Tahoma,Arial;}
.postTdInfo {border-right:1px solid #C1C5CA;text-align:center;padding:5px;background:#FFFFFF;background-image: url('http://forum.ucoz.com/12.gif');}
.postRankName {margin-top:5px;}
.postRankIco {margin-bottom:5px;margin-bottom:5px;}
.reputation {margin-top:5px;}
.signatureHr {margin-top:20px;color:#B5B5B5;}
.posttdMessage {padding:5px;background:#FFFFFF;background-image: url('http://forum.ucoz.com/12.gif');}

<!--<Paste Here>--->

.pollQuestion {text-align:center;font-weight:bold;}
.pollButtons,.pollTotal {text-align:center;}
.pollSubmitBut,.pollreSultsBut {width:140px;font-size:7pt;}
.pollSubmit {font-weight:bold;}
.pollEnd {text-align:center;height:30px;}

.codeMessage {background:#FFFFFF;font-size:9px;}
.quoteMessage {background:#FFFFFF;font-size:9px;}

Now type the following code in the green Zone above

Quote

.posttdMessage img {max-width: 640px; max-height: 480px; size: auto;}

Word of caution though if your image exceeds eigther of the limitations it will be compressed to that required dimension

before attemting to do this i always recomend that you back up your templates coz you may mess up and get stuck with a broken site
Rep me if that was helpful


CodeResolution
Posts: 1570
Reputation: 58

Message # 24 | 1:16 PM
shadychiri, thanks for bumping an old thread.

It can be done by just placing the following code in your CSS:

Code
.posttdMessage img {
max-width:700px;
width:expression((this.width>700) ? "700px" : true);
}
.posttdMessage img {
max-height:700px;
height:expression((this.height>700) ? "700px" : true);
}

Kind regards,
Elliott.

"The best uCoz" critic since 2007.
Qualified website, branding, print & user interface designer.

I'm on Behance and Twitter.
Susmoy
Posts: 185
Reputation: 6

Message # 25 | 9:50 AM
If I Post A High Resolution Image Then The Forum Does Not Resize That Automatically As I Want.
I want the forum automatically resize the images of threads.

But How??

Hope I'll Get The Solution From The World's Best Stuff's Of uCoz.

Regards.

If I Help you then Please +Rep and Awards
Natashko
Posts: 3366
Reputation: 171

Message # 26 | 10:10 AM
Susmoy, the images are re-sized automatically on the forum, if you attach them. (click "Browse' button at the bottom of the post adding form, embed the $image$ code in the post). If you use BB-codes or HTML tags to post images they are not going to be re-sized automatically, only manually by means of scripts. Unfortunately, we do not provide help with it.
Susmoy
Posts: 185
Reputation: 6

Message # 27 | 10:18 AM
Natashko, Thanks For Your Attention At Me Master.And Ok, If I Enable Attachments On Forum Then If Users Attach Pictures And Copy And Paste The $images$ then It Will Automatically Resize?
If I Help you then Please +Rep and Awards
Natashko
Posts: 3366
Reputation: 171

Message # 28 | 10:23 AM
Susmoy, after you have attached the image, the system generates code - $images$. Copy and paste it into the post. The image to appear in the post will be re-sized.
Susmoy
Posts: 185
Reputation: 6

Message # 29 | 10:24 AM
Natashko, Thanks You Are The Best.

And Bro Will You Kindly Please Check This Out?

Available for users only

If I Help you then Please +Rep and Awards
Natashko
Posts: 3366
Reputation: 171

Message # 30 | 2:14 PM
Search: