GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Is there a WP Plugin which resizes oversized images from rss feeds to fit your layout (https://gfy.com/showthread.php?t=738705)

Angry Jew Cat - Banned for Life 06-01-2007 01:21 PM

Is there a WP Plugin which resizes oversized images from rss feeds to fit your layout
 
is there? and where? thnx! :thumbsup

viki 06-01-2007 01:24 PM

You don't need a plugin. Just put this in your stylesheet under the class that your content gets posted:

img {
max-width: 500px;
}

So if the class that your content is posted in is called "content", it would look like this:

.content img {
max-width: 500px;
}

Obviously adjust 500px to whatever you want. If you need help finding it, send me an ICQ.

Deej 06-01-2007 01:26 PM

jesus christ blunts, put the bong down :thumbsup

Jace 06-01-2007 01:27 PM

Quote:

Originally Posted by viki (Post 12526458)
You don't need a plugin. Just put this in your stylesheet under the class that your content gets posted:

img {
max-width: 500px;
}

So if the class that your content is posted in is called "content", it would look like this:

.content img {
max-width: 500px;
}

Obviously adjust 500px to whatever you want. If you need help finding it, send me an ICQ.

well, that works, but since it only adjusts width you will have some seriously fucked up images....every image is different too, so there is no full proof way of doing what you are doing in the css, something that processes images as they are being posted is the only solution

Angry Jew Cat - Banned for Life 06-01-2007 01:30 PM

So when I use this CSS

.content img {
max-width: 500px;
}

will that keep the aspect ratio of the image, or just smush it skinny?

viki 06-01-2007 01:46 PM

It'll keep the ratio but it won't actually resize the image, it'll just display it smaller.

Angry Jew Cat - Banned for Life 06-01-2007 02:46 PM

Quote:

Originally Posted by viki (Post 12526661)
It'll keep the ratio but it won't actually resize the image, it'll just display it smaller.

ya, i understand that. which is ok, most of the images i'm having problems with aren't too much larger than my content column. so this should work perfectly, thank you :)


All times are GMT -7. The time now is 11:08 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123