Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
0 registered members (), 52 guests, and 222 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
mmkk
mmkk
Beijing
Posts: 28
Joined: November 2012
Show All Member Profiles 
Top Posters(30 Days)
isaac 22
Ruben 10
Gizmo 8
Morgan 3
Geoff 3
FREAK 2
Slaz 2
DennyP 1
Latest Photos
Testing to drag photos
Comfortable Cats
Test
BSA photos
Chinese Buddhist temple.
Previous Thread
Next Thread
Print Thread
UBB attached file size number, does not match #261212
03/09/18 02:13 PM
03/09/18 02:13 PM
J
jorb  Offline OP
newbie
Joined: Mar 2013
Posts: 34
UBB software attached file size number, does not match the actual file size number that was uploaded.

I uploaded a test file 289.7 KB to see if it matches in this post.
When I open attachment it shows file size as 111.38 KB

Does the UBB software compress or reduce the file size that has been uploaded?

Attached Files file size test photo.jpg

Truth Seeker
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
Re: UBB attached file size number, does not match [Re: jorb] #261213
03/09/18 03:22 PM
03/09/18 03:22 PM
Gizmo  Online Tapedshut
UBB.threads Developer
Joined: Jun 2006
Posts: 16,956
Portland, OR; USA
UBB.threads v7.6.1 introduced a feature which compresses images uploaded as attachments, the compression code is similar to the coding utilized in the gallery.

From the v7.6.1 Changelog:
[NEW] Attached images can now be automatically resized at the time of upload.
[NEW] Attached images can now be automatically compressed at the time of upload.
[NEW] New image "Attachments" page has been added to the Control Panel to control the size and compression of image attachments.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: UBB attached file size number, does not match [Re: Gizmo] #261214
03/09/18 04:03 PM
03/09/18 04:03 PM
J
jorb  Offline OP
newbie
Joined: Mar 2013
Posts: 34
Can the attachment compression code be disabled or enabled ?
Is the compression code fixed or is it variable ?

Does the compression code affect the attachment size limit ?

For an example:
The attachment limit is set at 300KB.
You upload a 325 KB file,
Does the 300KB limit reject the file because the file is over the limit
or does the limit look at the file size after it has been compressed ?

Do you know the file compression percentage ?
289 -111= 179KB file reduction


Truth Seeker
Re: UBB attached file size number, does not match [Re: jorb] #261215
03/09/18 04:09 PM
03/09/18 04:09 PM
Gizmo  Online Tapedshut
UBB.threads Developer
Joined: Jun 2006
Posts: 16,956
Portland, OR; USA
You could disable it by setting the compression quality to 100%; though I'm not sure why you'd want to disable compression since image attachments at a 70-80% compression ratio are visually quite similar to an uncompressed image at a fraction of the size.

The attachment size limit (what is allowed to be uploaded) is pre-attachment, as it is an indication of the size of files that the server will allow; then the compression is done after the file is uploaded (to save space on images that're hosted on your server).

The resulting image size is dependent on the output from the image processor (and your settings in the Control Panel); you can't really "guess" what the filesize will be.

Most of these have been answered via threads on these forums, and all settings can be found in the "Attachments" section of the v7.6.1 Control Panel.

Attached Files Screenshot-2018-3-9 Attachments - UBB threads PHP Forum Software Community Control Panel.png

I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: UBB attached file size number, does not match [Re: jorb] #261216
03/09/18 04:19 PM
03/09/18 04:19 PM
Gizmo  Online Tapedshut
UBB.threads Developer
Joined: Jun 2006
Posts: 16,956
Portland, OR; USA
BTW, images are both resized and compressed, if you use a visually low quality image (such as being able to actually see individual pixels) and it resizes it and it looks crappy, it'll still have a similar result with or without compression; a photo with high detail will produce a higher result after being resized.

The attached image has a resolution of 1,920px × 1,080px at 449 KB (459,885 bytes), and is compressed to 285.79 KB (292,646 bytes). Since it was under the indicated resolution (1920px) in the Control Panel it was not resized.

Attached Files sunflower.jpg

I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: UBB attached file size number, does not match [Re: Gizmo] #261217
03/09/18 04:54 PM
03/09/18 04:54 PM
J
jorb  Offline OP
newbie
Joined: Mar 2013
Posts: 34
Thank You for the Software Lesson smile


Truth Seeker

Shout Box
Today's Birthdays
No Birthdays
Recent Topics
UBB.threads 7.6.2 - Released
by isaac. 09/17/18 08:08 AM
7.6.2 Changelog Discussion
by isaac. 09/17/18 06:35 AM
Upgrade Documentation
by DennyP. 09/15/18 03:55 PM
PHP 7.2
by Geoff. 09/12/18 10:22 PM
Email Cleanup-Is it possible?
by Ruben. 09/06/18 11:25 AM
Forum Statistics
Forums36
Topics35,139
Posts191,443
Members12,106
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.2