Lindsey_ Posted August 4, 2008 Share Posted August 4, 2008 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 More sharing options...
Amy T Posted August 4, 2008 Share Posted August 4, 2008 I could not agree more. Some thing else that would be nice is an upload option in the about me edit page. Link to comment Share on other sites More sharing options...
AndyF Posted August 4, 2008 Share Posted August 4, 2008 Temporary fix : Turn BB code off in the "About Me" page ? +1 though, a separate max image size setting for that would be good as well as the upload idea (with a max upload size) idea too. :) Link to comment Share on other sites More sharing options...
^^MeX^^ Posted August 4, 2008 Share Posted August 4, 2008 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 More sharing options...
Amy T Posted August 4, 2008 Share Posted August 4, 2008 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 More sharing options...
AndyF Posted August 4, 2008 Share Posted August 4, 2008 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 More sharing options...
Morrigan Posted August 4, 2008 Share Posted August 4, 2008 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 More sharing options...
Amy T Posted August 4, 2008 Share Posted August 4, 2008 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 More sharing options...
bfarber Posted August 5, 2008 Share Posted August 5, 2008 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 More sharing options...
Lindsey_ Posted August 5, 2008 Share Posted August 5, 2008 Attempt 2) sounds ok to me ;) Link to comment Share on other sites More sharing options...
bfarber Posted August 5, 2008 Share Posted August 5, 2008 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 More sharing options...
Morrigan Posted August 5, 2008 Share Posted August 5, 2008 Well in 3.0 you will be able to change the BBCode really well so perhaps force a dimension max in your bbcode somehow. ;) Link to comment Share on other sites More sharing options...
Lindsey_ Posted August 5, 2008 Share Posted August 5, 2008 Well I see where you are coming from also. What would be the best way to do it from your point of view. Link to comment Share on other sites More sharing options...
bfarber Posted August 5, 2008 Share Posted August 5, 2008 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. Link to comment Share on other sites More sharing options...
Morrigan Posted August 5, 2008 Share Posted August 5, 2008 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 More sharing options...
Lindsey_ Posted August 5, 2008 Share Posted August 5, 2008 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 More sharing options...
bfarber Posted August 5, 2008 Share Posted August 5, 2008 But then that defeats the purpose of Gallery. ;) Heh, or modify the image bbcode tag to only accept links from your site :P There are possibilities. :P Link to comment Share on other sites More sharing options...
AndyF Posted August 5, 2008 Share Posted August 5, 2008 Heh, or modify the image bbcode tag to only accept links from your site :P There are possibilities. :P That's quite an interesting idea :) Link to comment Share on other sites More sharing options...
Amy T Posted August 5, 2008 Share Posted August 5, 2008 What about the idea of restricted image size? Kind of like what is already in place for the avatars. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.