Previous Thread
Next Thread
Print Thread
Hop To
Joined: Mar 2013
Posts: 51
J
Journeyman
Journeyman
J Offline
Joined: Mar 2013
Posts: 51
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?
Attachments
file size test photo.jpg


Truth Seeker
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
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.
Do you need Forum Install or Upgrade Services?
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!
Joined: Mar 2013
Posts: 51
J
Journeyman
Journeyman
J Offline
Joined: Mar 2013
Posts: 51
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
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
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.
Attachments
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.
Do you need Forum Install or Upgrade Services?
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!
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
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.
Attachments
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.
Do you need Forum Install or Upgrade Services?
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!
Joined: Mar 2013
Posts: 51
J
Journeyman
Journeyman
J Offline
Joined: Mar 2013
Posts: 51
Thank You for the Software Lesson smile


Truth Seeker

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
3 members (rootman, Gizmo, Nightcrawler), 562 guests, and 186 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)