XF 2.2 Is there a way to increase the size of attachments?

bennylava

Active member
As you can see from the link to my forum, I'm having trouble getting the attachments big enough to be readable by users. I checked and they're only about 60kb. But on my hard drive before I upload them, they're 3Mb. I have to get rid of the blur. Maybe if they were 1Mb they wouldn't be blurry.

I do have the "Insert Attachment" addon, but it didn't have any options regarding this.




 
Last edited:
The Admin >> Options >> Attachments settings control this.
Maximum attachment file size: (the max allowable KB size is controlled by your server PHP setting)
Maximum attachment image dimensions: (larger images will be reduced)

Here is a good thread.
 
Last edited:
As you can see from the link to my forum, I'm having trouble getting the attachments big enough to be readable by users. I checked and they're only about 60kb. But on my hard drive before I upload them, they're 3Mb. I have to get rid of the blur. Maybe if they were 1Mb they wouldn't be blurry.

Looking at your link I can see your images, but not being a member of the forum I only see the thumbnail images - even if you have embedded the full images when you created the post. If you want guests to see the full sized images (ie people without an account or not logged in) then you will need to ensure the permissions are set correctly. In the Admin control panel: Groups & permissionsUser Group Permissions, then find the Unregistered / Unconfirmed group, look for the View attachments to posts permission and set it to Yes. Hopefully that's the issue you've encountered.
 
Groups & permissionsUser Group Permissions,

Thanks I'll read through that thread. But I did have the upload limit set to 8000Kb. Could the pixel size limit affect this? I had it set to something like 485x585 (for some reason) but I changed both the fields to 700. That seems like more than enough for a picture where you can read the text.


Groups & permissionsUser Group Permissions,


Ok I changed the setting. You should now be able to see. I'm curious if I should leave it that way though. If lurkers don't have to sign up, maybe they won't...

Not sure about that. Maybe monetization methods don't really need lurkers to be registered. If they didn't, then it wouldn't matter if they registered or not because the site could still profit from lurkers.

Perhaps there are other reasons for/against changing that setting?
 
Thanks I'll read through that thread. But I did have the upload limit set to 8000Kb. Could the pixel size limit affect this? I had it set to something like 485x585 (for some reason) but I changed both the fields to 700. That seems like more than enough for a picture where you can read the text.





Ok I changed the setting. You should now be able to see. I'm curious if I should leave it that way though. If lurkers don't have to sign up, maybe they won't...

Not sure about that. Maybe monetization methods don't really need lurkers to be registered. If they didn't, then it wouldn't matter if they registered or not because the site could still profit from lurkers.

Perhaps there are other reasons for/against changing that setting?
Yes, the limits will reduce the image size.
 
Ok I changed the setting. You should now be able to see. I'm curious if I should leave it that way though. If lurkers don't have to sign up, maybe they won't...
I'd thought perhaps this was why the images "appeared" blurry - that they were simply the smaller thumbnails you were viewing. It seems however that was not the case, so feel free to remove that additional permission from unregistered guests. It still sounds fundamentally that your source images are being reduced in size to a point where the smaller text is un-readable. That will only happen (as far as I understand it) if the image file size is under the Maximum attachment file size limit (which you appear to have set to ~8MB) and the dimensions of the image exceed one of the Maximum attachment image dimensions values. If that's the case I believe the image will be re-sized down to fit within the Maximum attachment image dimensions.

As you can see the larger text in your picture quite readable. I think you will need to accept that you need to increase the Maximum attachment image dimensions setting to allow larger images. To be honest unless you have a really large value for Maximum attachment file size allowing decent sized images wont be an issue. Personally I'd resize a copy of the source 3MB files on my local computer and get them down to about 1200px wide, if saved as JPEGs then I'd keep the quality high ~90 probably. That should make the smaller text readable and the files are only going to be a in the hundreds of KB. Then as long as your board Maximum attachment image dimensions settings are not smaller than that the file should just upload "as-is" and wont get resized to the maximum dimensions, which is what it appears is happening now. Resizing on your local machine will give you a lot more control over the image than just letting the forum software "have a go"!
 
Yes that is correct. It turns out the settings from the thread that CJ linked, fixed the issue. The words are no longer blurry. Thanks to all for the help!

Also seems that I'll need to upgrade to more storage for my forum. 15Gb just ain't gonna cut it. I'll have to migrate since Nixihost only supplies up to 50Gb iirc.

Seems like for a forum that everyone can use however they please (so really nice for all the users) you need 500Gb minimum. But preferably 2Tb so you never have to worry about anything. It's too bad I can't just buy a 2Tb SSD and send it to Nixihost and tell them to migrate me to that. LOL
 
Just get a bucket and throw your attachments to cloud. makes everything so much easier.

no longer need the plugin, but the config file edits are relevant in modern xf 2.3
 
Back
Top Bottom