Is there a WP Plugin which resizes oversized images from rss feeds to fit your layout

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Angry Jew Cat - Banned for Life
    (felis madjewicus)
    • Jul 2006
    • 20368

    #1

    Is there a WP Plugin which resizes oversized images from rss feeds to fit your layout

    is there? and where? thnx!
  • viki
    Confirmed User
    • Jan 2005
    • 2640

    #2
    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.

    viki [at] realsexcash [dot] com
    228 263 454

    Comment

    • Deej
      I make pixels work
      • Jun 2005
      • 24386

      #3
      jesus christ blunts, put the bong down

      Deej's Designs n' What Not
      Hit me up for Design, CSS & Photo Retouching


      Icq#30096880

      Comment

      • Jace
        FBOP Class Of 2013
        • Jan 2004
        • 35562

        #4
        Originally posted by viki
        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

        Comment

        • Angry Jew Cat - Banned for Life
          (felis madjewicus)
          • Jul 2006
          • 20368

          #5
          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?

          Comment

          • viki
            Confirmed User
            • Jan 2005
            • 2640

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

            viki [at] realsexcash [dot] com
            228 263 454

            Comment

            • Angry Jew Cat - Banned for Life
              (felis madjewicus)
              • Jul 2006
              • 20368

              #7
              Originally posted by viki
              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

              Comment

              Working...