No announcement yet.

Upload and Auto Resize Pictures

  • Filter
  • Time
  • Show
Clear All
new posts

  • Upload and Auto Resize Pictures


    I have searched the forum, but cannot find exactly what I am looking for, in addition I am very new to this !

    I want a simple way for users to upload pictures. So if they take a pic on their camera and upload it, I obviously want to reduce the photo size from 2mb down to an acceptable size to save on storage space.

    How can I go about this, so that a user would click upload and the wesite would auto resize and post into the thread.

    Maybe I am making this seem more difficult than it is ????

    Any help mush appreciated


  • #2
    If you have a working image library setup:

    Admin CP -> vBulletin Options -> Image Settings

    Then it will automatically resize uploaded images to confirm to the maximum dimensions that are defined in your:

    Admin CP -> Attachments -> Attachment Manager

    I just tested this on my test forum.


    • #3
      YOU ARE A STAR !!

      Much appreciated, can you tell I am new to this !!



      • #4
        OK Jake anohter question !

        I have done as you have said, now when i try uploading a picture I click on a paperclip (attach) button in the message box, and then specify where my pic is, then click upload, however i keep getting upload failed.

        Also what size do you sugguest for the image?

        I am testing it by uploading a 2,2MB file and want to to resize it down to a useable size



        • #5
          Try uploading that image in your:

          Admin CP -> Maintenance -> Diagnostics -> Upload

          Those uncompressed images from digital cameras can be quite large. You might be exceeding a server limit like the upload_max_size setting which is revealed by the upload diagnostic.


          • #6
            Also, be mindful of this restriction in the includes/config.php file:

            // Image Processing Options
            // 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;


            • #7
              Thanks Jake

              I am able to attach a file using the attach (paperclip) but is there any way i can have the picture displayed within the body of the posting instaed of an attachment at the bottom?



              • #8
                Click the paperclip again and insert image.


                • #9

                  is there any way i can disable or remove a lot of the buttons in the message window.

                  I really only want the paperclip / attach button



                  • #10
                    Admin CP -> vBulletin Options -> BB Code Settings -> Enabled Built-in BB Codes

                    That will disable the BB codes and their shortcuts. Or you can just use an editor that doesn't have all of the options:

                    User CP -> Edit Options -> Message Editor Interface


                    • #11
                      Hi Jake

                      What editor would you recommend as a basic editor? and how do i install it?




                      • #12
                        I recommend the Basic Editor as a basic editor. That is what it is called. It's in your:

                        User CP -> Edit Options -> Message Editor Interface

                        In addition, you can set the default for new registrations in your:

                        Admin CP -> vBulletin Options -> User Registration Options -> Default Registration Options

                        You can mass update the preferences of exsiting users in your:

                        Admin CP -> Maintenance -> Execute SQL Query

                        There is a menu with predefined queries. You must have permission to execute queries in your includes/config.php file:

                        	//	****** USERS WITH QUERY RUNNING PERMISSIONS ******
                        	//	The users specified here will be allowed to run queries from the control panel.
                        	//	See the above entries for more information on the format.
                        	//	Please note that the ability to run queries is quite powerful. You may wish
                        	//	to remove all user IDs from this list for security reasons.
                        $config['SpecialUsers']['canrunqueries'] = '';


                        Related Topics


                        • MyIce
                          Error uploading image
                          by MyIce

                          On our site, I was able to upload a single image, however I have yet to be able to upload any additional images. I have tried multiple browsers, and I receive the same error message:...
                          Mon 25 Feb '13, 4:08pm
                        • Mecha
                          Image gallery
                          by Mecha

                          Question number 1.
                          When I upload an image in the user profile album gallery, the image resizes which is fine but when you click to open in an external window, it is still 'resized',...
                          Wed 26 Oct '16, 2:37am