Jump to content

Better Group Settings


Guest Lindsey_

Recommended Posts

Hello,

I'm running a forum which users are allowed to have images in their about me pages. Just lately I have found that users are uploading images the size of 2000x2000px (yes that size).

I sent in a support ticket (#511401) and Jason told me that I could turn it off all together

What I think we need is a max image size setting in IPB3

What do you think?

Link to comment
Share on other sites

I feel that this will be a good feature, but, perhaps it should just be a global feature? As in, anywhere on the board, even signatures, you will set one size where an image cannot go over that size, so even if they put 5000x5000, you will only see it as a %, like the current feature in posts which if the image is to big, it makes it smaller and shows a certain % of it. :)

Link to comment
Share on other sites

I feel that this will be a good feature, but, perhaps it should just be a global feature? As in, anywhere on the board, even signatures, you will set one size where an image cannot go over that size, so even if they put 5000x5000, you will only see it as a %, like the current feature in posts which if the image is to big, it makes it smaller and shows a certain % of it. :)


Thats not a bad idea. It would make it easier for every one.
Link to comment
Share on other sites

That "might" cause large server loads as GD tries to re-size an image that size... :unsure: , for example from 2000x2000 down to 250x250. I suppose it could store the generated smaller (thumbnail) image though and use that. (Same as Gallery uses the thumbnail strip)

I think perhaps it might be easier for the "about me" page if it was restricted (admin settings) to maximum dimensions :)

Link to comment
Share on other sites

I feel that this will be a good feature, but, perhaps it should just be a global feature? As in, anywhere on the board, even signatures, you will set one size where an image cannot go over that size, so even if they put 5000x5000, you will only see it as a %, like the current feature in posts which if the image is to big, it makes it smaller and shows a certain % of it. :)

Problem is for graphics sites you get problems with everything being resized when you don't want it to be.

That "might" cause large server loads as GD tries to re-size an image that size... :unsure: , for example from 2000x2000 down to 250x250. I suppose it could store the generated smaller (thumbnail) image though and use that. (Same as Gallery uses the thumbnail strip)



I think perhaps it might be easier for the "about me" page if it was restricted (admin settings) to maximum dimensions :)

Yeah the restriction would be nice.

I think you can temporarily discourage it by making the about me template div have a max-height and max-width (or at least the latter) and have the overflow hidden or scroll. I do this for my signatures in the about me page because I allow my members to have signatures that are the max board width (of 960) so their signature can be up to 750 pixels wide and so thats a bit big for the way it appears in the profile so I just have it overflow to scroll so it doesn't stretch the page.

http://corruptedcarousel.com/index.php?showuser=122 (One of my members profiles please excuse the template I needed to change it for personal site uses. :))
Link to comment
Share on other sites

Problem is for graphics sites you get problems with everything being resized when you don't want it to be.


Ah good point I did not think of that. I was just thinking how easy it would be to find the setting.
But ya I think maybe it is better to have a restriction and just have it in the about me settings that way its not hard to find.
Link to comment
Share on other sites

You can't properly "resize" an image that is linked in the [ img ] bbcode tag. Those images are not stored on your server, so you only have one of a few options

1) *ATTEMPT* to get the image dimensions (this does not work on all hosts) via getimagesize, and then show an error if the image is too large
2) *ATTEMPT* to download the image to your server, treat it as an attachment somehow, and properly resize it
3) *ATTEMPT* to get the image dimensions via getimagesize, and change the <img HTML tag to have a hardcoded (incorrect) width and height set


At the end of the day, any solution is merely an attempt and will often fail between varying hosts.

Link to comment
Share on other sites

But not to most people. ;) Can you imagine on shared hosting if everytime an image was linked it was downloaded to your server? It could eat up bandwidth and storage VERY quickly if people tend to link to images.

Sometimes the attempt may fail too, and there would have to be a ton of code to "fix" that or take it into account. Additionally, you'd have to have a ton of code in place to try to remember to delete these images.

That would actually be the hardest attempt, and would still be prone to failure.

Link to comment
Share on other sites

There is no "best way". It was never intended to be able to control dimensions of remotely hosted images. ;)



Your "best way" is to disable the [img ] bbcode in 3.0 forcing users to upload photos to your site.


But then that defeats the purpose of Gallery. ;)
Link to comment
Share on other sites

There is no "best way". It was never intended to be able to control dimensions of remotely hosted images. ;)



Your "best way" is to disable the [img ] bbcode in 3.0 forcing users to upload photos to your site.




Then that's what it will be

Thanks ! ;)
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Upcoming Events

    No upcoming events found
×
×
  • Create New...