ThomasR
05-08-2011, 01:02 PM
Hi,
I would like to know if it was possible through a plugin, CSS or code modification, to crop the thumbnail to a fixed size, like 150x100.
Any idea?
Thanks!
--------------- Added 1304877655 at 1304877655 ---------------
Ok, with more researches, I found a way to do that through CSS:
.crop
{
float: left;
position: relative;
width: 150px;
height: 100px;
border: 1px solid #000;
margin: 4px;
overflow: hidden;
background-color: #303030;
}
.crop IMG
{
margin: 0;
position: absolute;
top: 0;
left: 0;
clip: rect(0px, 150px, 100px, 0px);
background-color: #000000;
}
But now, I have an other issue: vBulletin, when creating the thumbail, use the size setting for defining the maximum size from the height or width. I would like to have the setting -only for the width- and not the height.
Someone know where can I change this setting (or code), or a way to create a simple plugin which do the job?
Thanks ! :)
I would like to know if it was possible through a plugin, CSS or code modification, to crop the thumbnail to a fixed size, like 150x100.
Any idea?
Thanks!
--------------- Added 1304877655 at 1304877655 ---------------
Ok, with more researches, I found a way to do that through CSS:
.crop
{
float: left;
position: relative;
width: 150px;
height: 100px;
border: 1px solid #000;
margin: 4px;
overflow: hidden;
background-color: #303030;
}
.crop IMG
{
margin: 0;
position: absolute;
top: 0;
left: 0;
clip: rect(0px, 150px, 100px, 0px);
background-color: #000000;
}
But now, I have an other issue: vBulletin, when creating the thumbail, use the size setting for defining the maximum size from the height or width. I would like to have the setting -only for the width- and not the height.
Someone know where can I change this setting (or code), or a way to create a simple plugin which do the job?
Thanks ! :)