The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
photos breaking out of dimensions in postbit
Hi. I've edited the postbit template to constrain the size of posts to 760wide. However, the old size was 1024 and images in old posts maybe be up to 1024 wide. I never tested dropping an image larger than 1024 in the old forums.
Is there a way to get vbulletin to resize images placed into posts to a maximum of x pixels wide? Any pointers appreciated! -Dru --------------- Added [DATE]1260474214[/DATE] at [TIME]1260474214[/TIME] --------------- I found this entry in the Admincp->Options->message attachment options: Resize Images: If an image is larger than your maximum allowed dimensions or filesize, an attempt to resize it will be tried. This may fail if the image is too large to be successfully processed or if the image type is not supported for resizing. When this option is enabled, you should limit the Attachment Input options above to one, otherwise the uploading of multiple large images by one user could strain your server. Its turned on, but seems to have no effect. I tested dropping this image (1600x1200) off someone else site http://www.ballslist.com/travel/beaches/beaches.jpg into a new post. It causes the postbit to stretch to 1600 to match the dimensions. No resizing is performed. thoughts? -Doob |
#2
|
|||
|
|||
I'm not sure, but I think that setting didn't affect your image because there is a difference between attachments and just having an image in a post. One issue is, I think, that putting an image in a post is just specifying a url, so the server never deals with it, just passes it to the browser. So the vbulletin server can't really resize it.
Based on previous posts you seem to know more than I do about some of this stuff, so maybe I'm missing something. |
#3
|
|||
|
|||
I tested dropping the same 1600 pixel image into the vbulletin.org forums (here).
These forums are resizing the image down to 500 pixels somehow. I'd like the same functionality in my forums. thanks! Doob |
#4
|
|||
|
|||
When I go to the thread you linked to, the image is 1600 pixels wide (except that IE wants to shrink it down, until I click on it again to get full size).
--------------- Added [DATE]1260479650[/DATE] at [TIME]1260479650[/TIME] --------------- OK, that image is 1600 for me, but there is something going on. It's got some javascript there to open the image in a separate window if you click on it, and then it toggles between full size and a smaller version. I always thought that was an IE feature, but maybe it's just so common that I never noticed it's not. Anyway, it looks like maybe it's something called "imgbox" which seems to be a JQuery thing (or maybe it's just something else that also just happens to be called "imgbox"). I guess I'll stop trying to help you... |
#5
|
|||
|
|||
Ok. This image is 1600 pixels wide. I'm inserting it as an image. For me in IE7, its displaying as 510 pxiels wide. So for other people, is it displaying at a reduced size or at the original 1600 size? These forums display for me at about 1024 fixed. Maybe people are looking at the forums using a different skin than me?
--------------- Added [DATE]1260480624[/DATE] at [TIME]1260480624[/TIME] --------------- Ahhhh. Ok. The forums are resizing the image down in IE, but in Firefox, its breaking the post out of the fixed layout! Is there a multi-browser fix for this? |
#6
|
||||
|
||||
If I recall, there is an option in IE to resize large images to fit your browser window. My guess is you have that on.
|
#7
|
|||
|
|||
Yes, I suppose that could be. Chrome, by the way, resizes the image too.
So what might a good workaround be for preventing over-sizsed image attachments from breaking the layout out of a fixed width forum? -Doob --------------- Added [DATE]1260503410[/DATE] at [TIME]1260503410[/TIME] --------------- Also of interest is that while vbulletin.org resizes images in IE and Chrome (but not firefox) to fit within a fixed width layout, my forums do not. I'm running 3.8.2. Here is a sample page showing the problem. http://travelers411.com/forums/showt...=1406#post1406 |
#8
|
||||
|
||||
There are a few modifications that will resize images. Unfortunately, I am unfamiliar with any of them so I have no recommendation.
|
#9
|
|||
|
|||
I use this mod....works really well on images already posted too
https://vborg.vbsupport.ru/showthread.php?t=184571 |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|