Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-04-2011, 05:09 PM
paulket paulket is offline
 
Join Date: Oct 2010
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 12-04-2011, 05:28 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #3  
Old 12-04-2011, 05:49 PM
paulket paulket is offline
 
Join Date: Oct 2010
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #4  
Old 12-04-2011, 05:53 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #5  
Old 12-04-2011, 06:41 PM
paulket paulket is offline
 
Join Date: Oct 2010
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
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.
Reply With Quote
  #6  
Old 12-04-2011, 06:45 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by paulket View Post
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.
Reply With Quote
  #7  
Old 12-04-2011, 07:19 PM
paulket paulket is offline
 
Join Date: Oct 2010
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is a screen shot from my attachment manager. Your assistance is appreciated a lot, kh99.
Attached Images
File Type: jpg sgrab.JPG (110.0 KB, 0 views)
Reply With Quote
  #8  
Old 12-04-2011, 07:34 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 12-04-2011, 07:59 PM
paulket paulket is offline
 
Join Date: Oct 2010
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 12-04-2011, 08:03 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:50 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.04184 seconds
  • Memory Usage 2,278KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete