Notifications
Clear all

Is there a way to restrict image sizes?

6 Posts
2 Users
0 Reactions
1,409 Views
(@jacci)
Posts: 503
Honorable Member
Topic starter
 

Was wondering if there as a way to restrict image sizes from linked pictures in peoples banners, photos etc? But only in fields that users can use, like summaries and chapters. Without it affecting all images such as in news, banners etc?

Have used hieght and widht restrictions on the img{ properties but it is across the board.
any ideas, greatly appreciated


why is nothing ever easy?
url: http://www.pretendercentre.com/missingpieces/     
php: 5.2.5  msql: 5.0.45-community
efic version: 3.4.3           latest patches: yes
bridges: none              mods: challenges, displayword, beta-search

 
Posted : 02/05/2012 12:05 am
(@lyndsie)
Posts: 1263
Member Moderator
 

Hmm... interesting question. Are they just adding them to those fields with the img tag?


 
Posted : 28/05/2012 2:42 am
(@jacci)
Posts: 503
Honorable Member
Topic starter
 

Hi Lyndsie,

yes, it is often hotlinked thru photobucket and the like.

I have added image size restriction to a skin, but it is across the board and affects all images including banners etc and i only want them restricted in certain divs. I tried adding it just to the summary and story divs but haven't had any luck. Seems an all or nothing so far.


why is nothing ever easy?
url: http://www.pretendercentre.com/missingpieces/     
php: 5.2.5  msql: 5.0.45-community
efic version: 3.4.3           latest patches: yes
bridges: none              mods: challenges, displayword, beta-search

 
Posted : 28/05/2012 5:14 am
(@lyndsie)
Posts: 1263
Member Moderator
 

I haven't tried this or even thought about it much, but maybe you could do it with the skin's CSS? You might have to add a div with the class the the specific area(s) you want to affect.


 
Posted : 28/05/2012 3:29 pm
(@jacci)
Posts: 503
Honorable Member
Topic starter
 

That was my first thought too, add a div then add an img class to it and that way it would only affect images within that div, seemed logical and easy enough, except i couldn't get it to work LOL.tried lots of different ways with new divs, div classes, existing divs and nothing would make it work that i could find grrrr


why is nothing ever easy?
url: http://www.pretendercentre.com/missingpieces/     
php: 5.2.5  msql: 5.0.45-community
efic version: 3.4.3           latest patches: yes
bridges: none              mods: challenges, displayword, beta-search

 
Posted : 28/05/2012 9:05 pm
(@lyndsie)
Posts: 1263
Member Moderator
 

Sorry, I don't know. :   I did find this in my searchings though which might come in handy.

http://php.net/manual/en/function.getimagesize.php


 
Posted : 28/05/2012 10:38 pm
Share: