Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Bill Edwards Posted February 6, 2016 Posted February 6, 2016 Dear All We limit image size on our forum to 800x600 Someone just posted some remote images that far exceeded our maximum. I thought they were controlled by our maximum, but evidently not. How can I limit the size of remote images? Any help gratefully recieved. Many thanks Bill
Nathan Explosion Posted February 6, 2016 Posted February 6, 2016 Depends how it was added: Auto-embed (ie url pasted in, image is automatically displayed) adheres to the setting. 'Insert image from url' doesn't adhere to the setting. A bug was logged:
SaltyBart Posted February 6, 2016 Posted February 6, 2016 You don't... I have it report as a bug, no reaction from ips. I think its not important enough for ips, its a important thing for us because or members use thise a lot. (does not look good now on the post) YouTube and images are most post things on my forum. But maybe same day ips will fix it, on ips 3 was this not a problem.
Adlago Posted February 6, 2016 Posted February 6, 2016 This solution works. Add in your Custom CSS: .ipsType_richText img { max-width: 80% ; } Choose 'xx %' and you have the appropriate size for your image.
SaltyBart Posted February 6, 2016 Posted February 6, 2016 15 minutes ago, Adlago said: This solution works. Add in your Custom CSS: .ipsType_richText img { max-width: 80% ; } Choose 'xx %' and you have the appropriate size for your image. @Adlago Thank you very much! We appreciate it very much!!!
Bill Edwards Posted February 6, 2016 Author Posted February 6, 2016 20 minutes ago, Adlago said: This solution works. Add in your Custom CSS: .ipsType_richText img { max-width: 80% ; } Choose 'xx %' and you have the appropriate size for your image. Thanks for your input, but I'm not very clever Doesn't that set a percentage size? How would I set a pixel size? (800x600)
TAMAN Posted February 6, 2016 Posted February 6, 2016 1 minute ago, Bill Edwards said: Thanks for your input, but I'm not very clever Doesn't that set a percentage size? How would I set a pixel size? (800x600) like this .ipsType_richText img { max-width: 800px; max-height: 600px; }
Adlago Posted February 6, 2016 Posted February 6, 2016 Better is to use%. Thus, maintaining the proportion at different resolutions displays.
Bill Edwards Posted February 7, 2016 Author Posted February 7, 2016 15 hours ago, TAMAN said: like this .ipsType_richText img { max-width: 800px; max-height: 600px; } Thanks for the input, however, unfortunately that breaks the photo size on mobile devices
TAMAN Posted February 7, 2016 Posted February 7, 2016 14 minutes ago, Bill Edwards said: Thanks for the input, however, unfortunately that breaks the photo size on mobile devices You can also add this to custom.css and the value will only be applied for screens that are 767 pixels wide or smaller. @media screen and (max-width: 767px) { .ipsType_richText img { max-width: 800px; max-height: 600px; } } Change the value to whatever you want but add it to the END of your custom.css
Adlago Posted February 7, 2016 Posted February 7, 2016 Use 85%. In 1200 px wide display your image will have the width 787px. Will work correctly in mobile.
Jorijn Schrijvershof Posted March 3, 2016 Posted March 3, 2016 On February 06, 2016 at 11:17 PM, Adlago said: This solution works. Add in your Custom CSS: .ipsType_richText img { max-width: 80% ; } Choose 'xx %' and you have the appropriate size for your image. This one did it for me. Thanks a lot!
Jorijn Schrijvershof Posted March 3, 2016 Posted March 3, 2016 On February 07, 2016 at 3:43 PM, Bill Edwards said: Thanks for the input, however, unfortunately that breaks the photo size on mobile devices Then add a qualifier for mobiles: @media (min-width: 600px) { .ipsType_richText img { max-width: 600px; <--- or whatever you want height: auto; } }
ric4rdo Posted July 10, 2016 Posted July 10, 2016 On 06/02/2016 at 8:17 PM, Adlago said: This solution works. Add in your Custom CSS: .ipsType_richText img { max-width: 80% ; } Choose 'xx %' and you have the appropriate size for your image. Thank you for your help! I would know how to do it with MEDIA ? If I set the ACP video is always on the left side of the post.
Adlago Posted July 10, 2016 Posted July 10, 2016 7 minutes ago, Berg. said: Thank you for your help! I would know how to do it with MEDIA ? If I set the ACP video is always on the left side of the post. Video center - see this
Recommended Posts
Archived
This topic is now archived and is closed to further replies.