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)
-   -   Anyone know a code to add to change image sizes in rss feeds? (https://gfy.com/showthread.php?t=763963)

spacedog 08-27-2007 03:38 PM

Anyone know a code to add to change image sizes in rss feeds?
 
Seems there's a few programs out there using images that are too large for most blogs column sizes. Anyone know a code to add in feed url, or somewhere in blog files that would resize the images, or keep them under a certain size?


WTF is the need for a 600 pixel wide image on a blog anyway? Most blogs have narrow colums & too many programs making feeds with images that are far too large for most blogs

DomP_nl 08-27-2007 03:45 PM

img {
max-width: 420px;
width:expression(this.width > 4000 ? “420px” : this.width);
}

GrouchyAdmin 08-27-2007 03:46 PM

Use regex to find the images in the stream, then download them locally, and resize them with imagecopyresize(). Finally, parse and rewrite the stream to point to your local files.

You're not going to be able to do it otherwise, unless you wrap the whole page, and rewrite your img src, using javascript or css to resize at will.

BOSS1 08-27-2007 03:55 PM

you can use our feeds 320x240 thumbs /end of shameless promo

Chio 08-27-2007 03:58 PM

Quote:

Originally Posted by spacedog (Post 12996299)
Seems there's a few programs out there using images that are too large for most blogs column sizes. Anyone know a code to add in feed url, or somewhere in blog files that would resize the images, or keep them under a certain size?


WTF is the need for a 600 pixel wide image on a blog anyway? Most blogs have narrow colums & too many programs making feeds with images that are far too large for most blogs

There are lots of ways to do it. Some which have been mentioned. One I know that is one of the easier methods is to simply add no overflow (overflow hidden) to your post css or layout column. This will not size the image down but it will not stretch the layout if an image is larger than the post/column width


All times are GMT -7. The time now is 10:52 PM.

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