Auto Re-sizing images

Discussion in 'WordPress' started by TrinityZey, Mar 6, 2011.

  1. #1
    Hey, looking for a solution on my autoblogs

    Im looking for a way to resize every image that's being posted, if it's too large

    Is there a good plugin that will work?
     
    TrinityZey, Mar 6, 2011 IP
  2. srisen2

    srisen2 Peon

    Messages:
    359
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    yeah use image magick it has a convert utility to resize your images upon upload to a preset size and keeps the deminsions as well many vps servers will have it build in by default
     
    srisen2, Mar 7, 2011 IP
  3. srisen2

    srisen2 Peon

    Messages:
    359
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ohh also dont forget ffmpeg for the videa as well
     
    srisen2, Mar 7, 2011 IP
  4. adbox

    adbox Well-Known Member

    Messages:
    906
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    155
    Digital Goods:
    1
    #4
    1. Find out the class of the div that blocks in your post content
    2. Edit your theme's css file
    3. Add something like this (depending on what you found out the class name was)
      .entry img{
      max-width:450px;
      }
      Code (markup):

    and this should get your straightened out. Remember that the .entry part should be whatever class name that your post content sits in.
     
    adbox, Mar 7, 2011 IP
  5. TrinityZey

    TrinityZey Well-Known Member

    Messages:
    258
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    103
    #5
    I'm talking about external images. Will this work for it too?
     
    TrinityZey, Mar 7, 2011 IP
  6. adbox

    adbox Well-Known Member

    Messages:
    906
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    155
    Digital Goods:
    1
    #6
    It will resize them softly, external images too, but it will not do a hard resize.
     
    adbox, Mar 7, 2011 IP