vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   photos breaking out of dimensions in postbit (https://vborg.vbsupport.ru/showthread.php?t=229926)

doob 12-10-2009 05:10 PM

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

kh99 12-10-2009 06:49 PM

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.

doob 12-10-2009 06:55 PM

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

kh99 12-10-2009 07:00 PM

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...:)

doob 12-10-2009 07:28 PM

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?

http://www.ballslist.com/travel/beaches/beaches.jpg

--------------- 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?

Lynne 12-10-2009 07:46 PM

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.

doob 12-11-2009 01:43 AM

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

Lynne 12-11-2009 03:48 AM

There are a few modifications that will resize images. Unfortunately, I am unfamiliar with any of them so I have no recommendation.

christon26 12-13-2009 08:50 AM

I use this mod....works really well on images already posted too :)

https://vborg.vbsupport.ru/showthread.php?t=184571


All times are GMT. The time now is 09:08 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01010 seconds
  • Memory Usage 1,732KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete