Web Wiz - Solar Powered Eco Web Hosting

  New Posts New Posts RSS Feed - Forum Picture Resize
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum Picture Resize

 Post Reply Post Reply
Author
Lupus Dei View Drop Down
Groupie
Groupie


Joined: 04 December 2015
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote Lupus Dei Quote  Post ReplyReply Direct Link To This Post Topic: Forum Picture Resize
    Posted: 16 November 2022 at 1:00am
Eventually forum members fill up there allotted space in their file manager with oversized pictures.

It would seem that anything over 500kb gets rejected (understandably) and anything over 750 dpi will get downsized for display on the forums, so picture in excess of this is just wasted space.

The solution that we have been doing is zipping up all of their pictures and downloading the zip file. Deleting all of their files.
We then use a resizing tool and resize all their pictures down to 720 DPI, zip it back up, upload and expand the files into their folder. we then delete the zip file as it takes space.

For some reason this time most of the pictures are shown as broken.

In inspecting the properties of the broken files it shows a width of the original size photo. (over 720 DPI)

Finding all of the posts and replacing the pictures can be quite the time consuming task.

Is there some different way this should be handled?
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Poole
Status: Offline
Points: 9740
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 16 November 2022 at 8:34am
I think you may mean 72 DPI which is what you usually use for the web.

If your the server hosting your forum has Persits AspJPEG installed you can configure your forum 'Upload Settings' in the forum admin to resize images as they are uploaded to your forum by setting the maximum image width and height. 
Back to Top
Lupus Dei View Drop Down
Groupie
Groupie


Joined: 04 December 2015
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote Lupus Dei Quote  Post ReplyReply Direct Link To This Post Posted: 16 November 2022 at 2:11pm
Bruce, I should have wrote PPI or pixels.

I believe we are using Web Wiz as our server. Upload settings :Persits AspUpload 3.0 or above.
Image types  jpg;jpeg;gif;png
Maximum image size 500kb
Maximum image width 1000 pixels
Maximum image height 1500 pixels

I have uploaded a 1000 pixels wide picture followed by a 750 pixels wide picture. The both display the same size. So the forum software is downsizing the photo to a decent viewable size.

When the allotted 40MB of user space is used up I batch resize them to 720 pixels as I mentioned above.

In the latest instance most of the users pictures are displaying as broken.

Last night I deleted the user file in the Web Wiz Hosing Control Panel, Created a new file with the same user identifier. I uploaded the original zip file of photos that I compressed from the hosting panel and expanded to that folder. I am having the same issue where many of these photos do not display.
I do not know if the following is of any help,
Inspecting the pictures from the browser tools it seems the forum software is not recognizing the photos. It shows the photo as wider than the resized picture is.

Thoughts?



Edited by Lupus Dei - 16 November 2022 at 2:16pm
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Poole
Status: Offline
Points: 9740
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 16 November 2022 at 4:29pm
An image that is 1000 pixels by 1500 pixels is large and will use around 4 MB at this size. If you set the user diskspace at 40 MB, then each user may be restricted to around 10 images each.

Downloading the images and changing the size will likely cause issues as the post will likely have the image dimensions saved as part of the HTML within the post. The images will likely look pixelated and distorted.

From your description this is what is sounds like is happening and without editing each post to set the changed image size there is not anyway to avoid this.

If you wish to save diskspace and have images at 750 x 750 pixels then the best way to achieve this is to set the maximum image width and height in the forum admin area to 750 pixels.
Back to Top
Lupus Dei View Drop Down
Groupie
Groupie


Joined: 04 December 2015
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote Lupus Dei Quote  Post ReplyReply Direct Link To This Post Posted: 16 November 2022 at 7:36pm
Bruce, Thank you for the quick response. As stated the maximum upload is limited to 500kb, so a photo that large cannot be uploaded. Being that photos are very important to our discussions this allows for about 400 pictures at 720 pixels wide, 300 @ 1000 pixels.
If we set the threshold to low then many cannot downsize from mobile devices and the information may not be shared.

I have compressed about a dozen folder that were full and never had a problem.

If it is the HTML that is the problem, I question why when the originals are restored to to the folder that they still do not display? File name the same, just smaller.
There has to be a way to resize and upload.


Sounds like I may have to edit all of his posts with his pictures.


Edited by Lupus Dei - 16 November 2022 at 7:55pm
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Poole
Status: Offline
Points: 9740
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 18 November 2022 at 11:44am
I would strongly advise against resizing images after they have been uploaded as it is likely to break the forum showing those images which it sounds like has happened.

Maybe the answer is to provide your forum users with a larger amount of available space they have to upload images.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.05
Copyright ©2001-2022 Web Wiz Ltd.


Become a Fan on Facebook Follow us on Twitter Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Policy

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2022 Web Wiz Ltd. All rights reserved.