vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Desperate for help! (https://vborg.vbsupport.ru/showthread.php?t=275033)

paulket 12-04-2011 05:09 PM

Desperate for help!
 
The following has been copied and pasted from vBulletin.com where customer support is the worst that I have ever experienced. I have gone from being annoyed and frustrated to being angry. I cannot wait 24 hours between asking questions to get help with this problem:

Quote:

My uploaded images keep being re-sized smaller for no apparent reason... for instance if I upload a picture from my computer to an album or post that is 800px wide, it was some times getting uploaded at 800px, some times at 750px and recently at 620px or 518px. I tried globally turning off plugins and it made no difference. If I upload pictures to a folder on my server and then use image tags in a post they are shown at the correct size. This is extremely frustrating and annoying! I'm using a fresh install of vBulletin version 4.1.8 and this happens with a custom style or the default. Any help with getting this issue solved will be appreciated greatly. Link to my site http://panaworldonline.com/forum.php

------------------------------------------------------------

My site is dedicated to travel and photography, I need to get this taken care of as soon as possible. I can't ask people to join if they will be unsure of what size their uploaded pictures will be and I can't start new threads that will have pictures in them with different sizes... which is almost all of them.
All of the pictures in this album were the same size BEFORE being uploaded and now none of them are the same size http://panaworldonline.com/members/p...a-romania.html

kh99 12-04-2011 05:28 PM

I don't really know anything about how images are handled, but (from your vbulletin.com post):

Code:

The image sizes set in the config.php are much larger than what the uploaded images are on my site.
and according to the comment in config.php

Code:

// Images that exceed either dimension below will not be resized by vBulletin. If you need to resize larger images, alter these settings.

so maybe you should *reduce* those dimensions in your config.php. (Or maybe the comment is wrong...)

ETA: which version do you have installed? It looks like maybe the values in config.php aren't used in version 4.1.8

Would you be willing to attach a zip of the original images in the album you linked to, so I can try uploading them?

paulket 12-04-2011 05:49 PM

Thank you for the reply, kh99. I'm using version 4.1.8. The dimensions in the config.php shouldn't be resizing images randomly that are much smaller than what is stated in the file, should they? For instance, the dimensions say:
Code:

$config['Misc']['maxwidth'] = 2592;
$config['Misc']['maxheight'] = 1944;

Why would an image that is 800px wide be re-sized to 518px wide in one upload or maybe 750px in another upload?

kh99 12-04-2011 05:53 PM

I really don't know why it's resizing at all to be honest. But it doesn't make sense to me to *not* resize images that are *larger* than the given dimensions, but that's what the comment seems to say. But as I added in my post above, in 4.1.8 it doesn't look like those values are used anywhere (the line has been commented out).

[S]Are you able to provide those original images for testing?[/S] If not I can probably find my own somewhere.

ETA: Don't worry about it, I'll just resize some images to 800x533.

--------------- Added [DATE]1323027606[/DATE] at [TIME]1323027606[/TIME] ---------------

In your attachment manager, what do you have for maximum file size, width, height for each file type? To answer your above question, I think you could end up with "randomly" resized images if you have the max file file set to something small, because it looks like the code first resizes the image if necessary to be within the max dimensions, then resizes again if the file size is > the max.

BTW, when I did a test with 5 .jpg images that were all 800x533, they all ended up the same size but larger than the originals (I haven't quite figured out why yet).

paulket 12-04-2011 06:41 PM

Quote:

Originally Posted by kh99 (Post 2274619)
But as I added in my post above, in 4.1.8 it doesn't look like those values are used anywhere (the line has been commented out).

I just downloaded 4.1.8 again from the vBulletin.com customer area and at the bottom of the config.php(.new) file it says:

Code:

Images that exceed either dimension below will not be resized by vBulletin. If you need to resize larger images, alter these settings.
$config['Misc']['maxwidth'] = 2592;
$config['Misc']['maxheight'] = 1944;

But the problem is not having images that are too big re-sized, it is having images that should be uploaded at their original upload size kept from being resized. Maybe my frustration with the issue is keeping me from understanding what you are saying.

kh99 12-04-2011 06:45 PM

Quote:

Originally Posted by paulket (Post 2274633)
IBut the problem is not having images that are too big re-sized, it is having images that should be uploaded at their original upload size kept from being resized. Maybe my frustration with the issue is keeping me from understanding what you are saying.

I'm saying that the comment sounds like it *won't* resize images that are larger than the dimensions shown there, so if you didn't want images to be resized, you would want to reduce those values. However, like I said above the values don't seem to be used, and it could well be that the comment is wrong or I'm misunderstanding it.

What do you have in your attachment manager for max dimensions and file sizes? Maybe post a screen grab of it if you can. If I can reproduce the problem you're having then I might be able to tell you why it's happening.

paulket 12-04-2011 07:19 PM

1 Attachment(s)
Here is a screen shot from my attachment manager. Your assistance is appreciated a lot, kh99.

kh99 12-04-2011 07:34 PM

Well, I set mine up like yours and I can't really reproduce your problem. But what I do see is that 4 images were rsized from 800x533 to 820x553, and one is smaller (the Train image) because it is larger than the 100K limit. So the only thing I can think is that maybe your original images (which I'm assuming were all of type .jpeg) were much larger than mine and so got resized to reduce the file size. Maybe try increasing the max file sizes and see what happens.

paulket 12-04-2011 07:59 PM

All of the image file size maximums have been increased to 1000000, the system cache was cleared and the problem still persists. This has only been a problem recently, when I first installed vBulletin the images were uploading at the correct size.

kh99 12-04-2011 08:03 PM

When you say the problem still persists, you mean when you upload new files they get resized, right? Because of course it won't fix files that were already uploaded.

I'll look at the code again and see if I can see anything else.


All times are GMT. The time now is 10:05 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.01198 seconds
  • Memory Usage 1,749KB
  • 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
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete