Forums / Cotonti / General / Image Resize

Twiebie
#1 2011-10-13 10:25

There was a plugin (Slimbox + Image Scaling) for Genoa that would resize images to a set width/height to fit in a div so it wouldn't stretch/overflow in pages and forums.

Is there something that can be used on Siena?

Kingsley
#2 2011-10-13 12:19

Littledev has Fancybox for Sienna:

http://littledev.ru/page.php?id=27

Twiebie
#3 2011-10-13 12:31

Does it actually resize the image that is in for example a forum post?

Kingsley
#4 2011-10-14 10:26

dunno, Im still on genoa, but I think that it does the same things as slimbox for genoa, so in that case, Yes, it will resize your forum post images.

Twiebie
#5 2011-10-14 11:10

I gave it a go but it doesn't resize any of the images...

pieter
#6 2011-10-14 11:24

If you work with BBcode, you can add a class to [img] and resize it this way.

I used this before: 


/* for understanding browsers */
.resizeimage   { max-width:250px;max-height:250px;}
/* for Internet Explorer */
/*\*/
* html .resizeimage{
border-width:1px solid #000000;
height: expression(this.height >= this.width && this.height > 250 ? '250px' : true);
width: expression(this.height < this.width && this.width > 250 ? '250px' : true);
}

 

... can we help you ...
Twiebie
#7 2011-10-14 11:49

I'm using CKEditor with HTML parsing so that's not really a solution i'm afraid.