Previous Thread
Next Thread
Print Thread
Hop To
#260294 07/22/2017 1:22 PM
Joined: Jun 2006
Posts: 987
Likes: 24
Old Hand
Old Hand
Joined: Jun 2006
Posts: 987
Likes: 24
now that photobucket changed the terms for thirt party exposure then I keep getting questions from our members.
I don't want to allow all members to be able to upload image/photos however with a small fee they can upgrade membership.
they need to reduce the size to less than 300KB to upload in a thread.

If I allow them to upload more then I have a bunch of questions

1, it happens that I need to delete members or delete threads, what happen if I delete a post that has an uploaded photo does the uploaded photo vanish as well when I delete the post?
2, if I delete a member and his posts does the photos delete too?

3, how many photos will over time be uploaded, let say different members upload 100 or 1000 or 10000 or 100000 or even 1000000+ what is maximum photos that a folder can contain? is there a max amount photos or combined mb or gb size?

I think that all attached photos ends up in one folder for all the posts - right? and three folders for gallery photos right? small med and large.

Think its best to know as much as possible before I encourage members to upload more.

Thank you for your advice

PS any other info on this subject is highly appreciated

Last edited by Morgan; 07/22/2017 1:25 PM.

Morgan Johansson
BritBike Forum
https://www.britbike.com/forums/ubbthreads.php
Morgan #260295 07/22/2017 3:46 PM
Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
The only way to delete a image is via the file manager attached to that post.

Delete a post : Images are stored in upload directory and not deleted.

Delete a member same as above.

Your limited by the physical disc space of your server.

Uploads my users have used about 7Gb over 5yrs.



BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Morgan #260296 07/22/2017 3:49 PM
Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
My min upload size is now 3mb. Max 6mb.
You will find it difficult for a modern mobile device to take a picture less than 1mb.


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Morgan #260297 07/22/2017 4:52 PM
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
ATTACHMENTS and GALLERY are two different systems, both of which are deleted when a post is removed (see deletepost.inc.php ~line 118-224 in v760).

v7.6.+ has seen significant improvements from the v7.5 series, especially in the upcoming v7.6.1 release which will compress image attachments like what's done for Gallery Forums. clicky

I have my forums setup to allow 8mb uploads, they're compressed according to the settings in the control panel (which will reflect 7.6.1 settings when released).

If you delete a member and choose to delete his posts, it'll delete attachments and gallery posts. If you chose not to, it won't.


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!
Morgan #260298 07/22/2017 6:38 PM
Joined: Jun 2006
Posts: 987
Likes: 24
Old Hand
Old Hand
Joined: Jun 2006
Posts: 987
Likes: 24
Gizmo

This sounds promising I know that 7.6.1 will compress sizes but I was not aware it included regular forum posts I believed it was only for gallery posts.
will it compress excisting photos also or only new uploaded photos?

I'm very happy to hear that when I delete threads or posts that it will also delete attached files. Good smile

when 7.6.1 becomes available I would really be interested to know which settings is the best to use.
In the past I have tried to use 800pixels as the largest possible for the reason that otherwise large images could screw up the layout fo the thread.

Then we have the KB or MB on ea image settings but that is more important to know when we come near to download next version.

Btw you look like a happy scout on your avatar smile





Morgan Johansson
BritBike Forum
https://www.britbike.com/forums/ubbthreads.php
Morgan #260299 07/22/2017 6:57 PM
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Gallery posts have always compressed, general attachments will compress as of 7.6.1 (once it's out the door anyhow). It will only affect new uploads; you could use something like JPEGMini to compress old attachments.

As for gallery/attachments settings we always recommend ImageMagick over GD as it produces clearer images; the defaults as of 7.6 are 125, 480, 1920 pixels; 80% 70% 60% quiality

And TY, it was a fun trip last week, luckly I didn't throw my back out until AFTER we got home, lol.


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!
Morgan #260300 07/23/2017 6:06 AM
Joined: Jun 2006
Posts: 987
Likes: 24
Old Hand
Old Hand
Joined: Jun 2006
Posts: 987
Likes: 24
Thanks Giz, I have not really a need to resize old files as I have restricted images to less than 300kb.

hmm, I am using GD2 cause it was only available in my CP. Dunno how to start to use ImageMagick, could you point me how to install it?

So I just reset my settings to 125, 480, 1920 pixels; 80% 70% 60% quality to use same as default.
I think the only different is that it used to be 200, 480, 1920 pixels; 80% 70% 60% quiality.



Morgan Johansson
BritBike Forum
https://www.britbike.com/forums/ubbthreads.php
Morgan #260301 07/23/2017 3:15 PM
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
GD is shipped with PHP, it's why it's always an option. ImageMagick is a 3rd party system binary (it has to be installed on the server). Commonly the paths to IM are:
/usr/bin/convert
/usr/bin/mogrify

If you have SSH access you can just try:
which convert
which mogrify

If they're installed then it'll tell you the paths, if it isn't installed it'll tell you.

Found convert binary:
[root@server ~]# which convert
/usr/bin/convert

No convert binary:
[root@server ~]# which convert
/usr/bin/which: no convert in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

As for dimensions, I use 200px for thumbnails, you can too.


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!
Morgan #260302 07/23/2017 5:18 PM
Joined: Jun 2006
Posts: 987
Likes: 24
Old Hand
Old Hand
Joined: Jun 2006
Posts: 987
Likes: 24
Giz, The only way I connect to my server is via ftp and cpanel I am not familiar with SSH so I would not at this point know how to try what you suggest.
I'll open up my CPanel and see there.


I will change to 200px for thumbn..
Off to bed here workday tomorrow smile

Last edited by Morgan; 07/23/2017 5:19 PM.

Morgan Johansson
BritBike Forum
https://www.britbike.com/forums/ubbthreads.php
Morgan #260303 07/23/2017 6:55 PM
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
SSH is generally how your server techs maintain your server (installing updates (manually, through yum, or through apt), creating backups, etc.), it provides a command line interface to the underlying operating system of your server.

The UBB.threads control panel is capable of reporting current settings, but does not check for the existence of ImageMagick.

I do offer Server Maintenance Services, but managing a server is well out of the free realm of user to user support.


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!
Morgan #260304 07/26/2017 1:22 PM
Joined: Jun 2006
Posts: 987
Likes: 24
Old Hand
Old Hand
Joined: Jun 2006
Posts: 987
Likes: 24
Gizmo,

Thank you for your offer I'll keep it in mind.
I do have a learing curve about IM.

I copied your text
Quote
Commonly the paths to IM are: /usr/bin/convert /usr/bin/mogrify
If you have SSH access you can just try: which convert which mogrify

If they're installed then it'll tell you the paths, if it isn't installed it'll tell you.
Found convert binary:
[root@server ~]# which convert
/usr/bin/convert

No convert binary:
[root@server ~]# which convert
/usr/bin/which: no convert in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

Interserver VPS support answered
Quote
The paths to ImageMagick are /usr/bin/convert & /usr/bin/mogrify . Please let us know if you face any issues in using them.

So I added in the Paths & Url's setting /usr/bin/convert & /usr/bin/mogrify in forum CP and now I see IM as an option in Graphics Library To Use

Do you think its safe to switch to IM??? I am not certain that IM is installed but I think it is and I have asked the support to answer that question. Just did that.

Oh I tested to lower the Full size images to 50% and tested on GD2, I can't see see any different with my eyes but one photo went from 321KB to 279KB.

Thanks for your input


Morgan Johansson
BritBike Forum
https://www.britbike.com/forums/ubbthreads.php
Morgan #260305 07/26/2017 1:27 PM
Joined: Jun 2006
Posts: 987
Likes: 24
Old Hand
Old Hand
Joined: Jun 2006
Posts: 987
Likes: 24
OK I receive an answer to my question

Quote
does this mean that ImageMagick is installed on the server so that I can switch to use that instead of GD2 on my forum?
Thanks Morgan

the answer is

Quote
That is correct.


Morgan Johansson
BritBike Forum
https://www.britbike.com/forums/ubbthreads.php
Morgan #260306 07/26/2017 1:59 PM
Joined: Jun 2006
Posts: 987
Likes: 24
Old Hand
Old Hand
Joined: Jun 2006
Posts: 987
Likes: 24
result report.

I have made a test
uploaded one 1,9mb image using GD2 and then using same image with imagemagick

image uploaded was 1,9MB limit is set to 2mb
After GD2 60% IMG_0982.JPG 1920 x 1440 (171.05 KB)
After IMAGEMAGICK 60% IMG_0982.JPG 1920 x 1440 (409.54 KB)

Now I wonder how come GD2 compresses to half of IM's size?

See links
GD2
http://www.britbike.com/forums/ubbthreads.php?ubb=showgallery&Number=702879

IM
http://www.britbike.com/forums/ubbthreads.php?ubb=showgallery&Number=702881


this is my setting in the test default values
Quote
Thumbnail Image Max Width/Height
If either the width or height exceed this value then the larger sized property will be scaled to this, with the other being proportionally scaled.
Default: 200 Pixels
Medium Image Max Width/Height
If either the width or height exceed this value then the larger sized property will be scaled to this, with the other being proportionally scaled.
Default: 480 Pixels
Full Image Max Width/Height
If either the width or height exceed this value then the larger sized property will be scaled to this, with the other being proportionally scaled.
Default: 1920 Pixels

Thumbnail Image Quality
Higher settings will lead to better quality, but larger filesizes.
Default: 80%

Medium Image Quality
Higher settings will lead to better quality, but larger filesizes.
Default: 70%

Full Image Quality
Higher settings will lead to better quality, but larger filesizes.
Default: 60%

I wonder what should I chose and can IM settings be altered somewhere?

PS I have returned to GD2 in the CP settings just to be sure

Last edited by Morgan; 07/26/2017 2:02 PM.

Morgan Johansson
BritBike Forum
https://www.britbike.com/forums/ubbthreads.php
Morgan #260307 07/26/2017 2:13 PM
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
Use ImageMagick. Its cleaner. Has more options for compression and dimensions , allows compression of animated gif files, can manipulate EXIF data... and is more current than the php inbuilt version of GD2.


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Morgan #260308 07/26/2017 2:49 PM
Joined: Jun 2006
Posts: 987
Likes: 24
Old Hand
Old Hand
Joined: Jun 2006
Posts: 987
Likes: 24
OK I changed to ImageMagick,

I do wonder how I can change settings for IM so it compresses more.


the GD2 image became 1920x1440 px in size
http://www.britbike.com/forums/gallery/32/full/2630.jpg

the imagemagick image became 3264 × 2448 px
http://www.britbike.com/forums/gallery/32/full/2631.jpg

I wonder how that is.. and it must be the reason its 409kb vs 171kb

Any ideas?
thanks


Morgan Johansson
BritBike Forum
https://www.britbike.com/forums/ubbthreads.php
Morgan #260309 07/26/2017 3:00 PM
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Both Quality and Dimensions affect the file size; an image with smaller dimensions would be smaller, and saying you want super crappy visual quality would also make the filesize smaller. Either way, being able to bring a 6mb file down under 1mb is a pretty big feat.


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!
Morgan #260310 07/26/2017 3:00 PM
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
Originally Posted by Morgan
I do wonder how I can change settings for IM so it compresses more.

UBBT 7.5.x and 7.6.0 only allow image compression adjustments to gallery forums. Attached images in regular forums are left untouched, just as they were originally upload.

UBBT 7.6.1+ brings that feature to regular post attachments as well. It can be customized to image dimensions and compression percentage... or completely disabled for all attachments, if youd like to continue with the "classic" style of image attachment handing.

Last edited by isaac; 07/26/2017 3:03 PM. Reason: spellings

Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Morgan #260311 07/26/2017 3:08 PM
Joined: Jun 2006
Posts: 987
Likes: 24
Old Hand
Old Hand
Joined: Jun 2006
Posts: 987
Likes: 24
I understand what you are saying and we are talking about Gallery not Forum images but there is a different when I upload with GD2 vs IM



Quote
The GD2 image became 1920x1440 px in full size
http://www.britbike.com/forums/gallery/32/full/2630.jpg

the imagemagick image became 3264 × 2448 px in full size
http://www.britbike.com/forums/gallery/32/full/2631.jpg

Why is it that the IM did not follow the settings to 1920 for the full size?

Last edited by Morgan; 07/26/2017 3:13 PM.

Morgan Johansson
BritBike Forum
https://www.britbike.com/forums/ubbthreads.php
Morgan #260312 07/26/2017 3:16 PM
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
Simply put: Different programs use different processing algorithms.

File size does not tell the whole story of whats being stripped. Smaller file size can (and usually do) reduce quality and could strip the included meta data from the image.


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Morgan #260315 07/26/2017 4:16 PM
Joined: Jun 2006
Posts: 987
Likes: 24
Old Hand
Old Hand
Joined: Jun 2006
Posts: 987
Likes: 24
Yes I understand that programs work differently.

Sorry for my nagging here.. but I feel its important to me and maybe you missed my question or I was unclear.

Quote
The GD2 image became 1920x1440 px in full size
http://www.britbike.com/forums/gallery/32/full/2630.jpg

the imagemagick image became 3264 × 2448 px in full size
http://www.britbike.com/forums/gallery/32/full/2631.jpg

Wonder why did GD2 resize the image 2630.jpg down to 1920x1440 px and IM 2631.jpg down only to 3264 × 2448 px?
I used the same original photo and the gallery setting for full image is "1920".
I understand if you don't know why but my point is that I also want the IM to resize it down to "1920"

PLEASE NOTICE NEW INFO
I noticed when I also uploaded the original image in a forum that it was same size 3264 × 2448 px as the IMAGEMagig image in the gallery.
It had not resized the image but ONLY compressed it in the Gallery using IM!!!

original photo thread
http://www.britbike.com/forums/ubbthreads.php?ubb=showflat&Number=702898#Post702898
original photo
http://www.britbike.com/forums/ubbthreads.php?ubb=download&Number=2632&filename=IMG_0982.JPG

Does this help you in the analyse? maybe a bug or maybe a fault in my end.

Thanks for any input


Last edited by Morgan; 07/26/2017 4:17 PM.

Morgan Johansson
BritBike Forum
https://www.britbike.com/forums/ubbthreads.php
Morgan #260316 07/26/2017 4:53 PM
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
1)
forum attachments in 760 and older do not get processed at all.

gallery attachments in 760 and older get processed by your image handler.


2) IIRC...
i think there may have been an long standing issue within the image processing instructions in prior versions of ubbt. those instructions have since been corrected to work as intended for 761+

Last edited by isaac; 07/26/2017 4:55 PM. Reason: clarifications

Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Morgan #260317 07/26/2017 5:09 PM
Joined: Jun 2006
Posts: 987
Likes: 24
Old Hand
Old Hand
Joined: Jun 2006
Posts: 987
Likes: 24
Isaac

you wrote

1)
forum attachments in 760 and older do not get processed at all. >>>>> yes I get that

gallery attachments in 760 and older get processed by your image handler. Yes I get that to but the IM handler if I can call it that don't resize the Gallery full image to 1920
as the GD2 handler does.. This is my issue now it should do that right !???


2) IIRC...
i think there may have been an long standing issue within the image processing instructions in prior versions of ubbt. those instructions have since been corrected to work as intended for 761+ >>>> dunno about this one but I guess you have smile

Thanks


Morgan Johansson
BritBike Forum
https://www.britbike.com/forums/ubbthreads.php

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
0 members (), 396 guests, and 110 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)