Forums

Anyone know much about altering images sizes? (6 posts)

  1. g3legacy
    Member
    Posted 1 year ago #

    Hi, so basically I need to crop all images to the same height and width, or at least the same height.

    Ive just been doing the stuff;

    http://codex.wordpress.org/Function_Reference/add_image_size

    It works great. The issue is using the featured image doesnt allow my shadowbox plugin to work. It needs some sort of info adding in the rel= part of the html for the image. The shadow box plugin works when I add images normally but then I cant seem to access the functionality of the re-sizing that I need.

    I either need a way to get shadowbox to open the big image from the resizes thumbnail ( featured image ), or some other way of altering images sizes.

    The reason for this is the posts are displaying as a list on one page, they will not link to another page, so single.php for example is not being used.

    Any tips are welcome!

    Dan

  2. vtxyzzy
    Member
    Posted 1 year ago #

    What shadowbox plugin are you using?

  3. g3legacy
    Member
    Posted 1 year ago #

    Hi,

    Its called Shadowbox JS. Its easy to modify so I like it. So far I have come to a solution. Under Settings => Media I changed the thumbnail size and turned the cropping on. Im then going to change the Medium Size to be the other type of image size I need. This should be ok as I needed one thats rectangular and one thats more square.

    Still, it would be interesting to fix the shadow box thing. There is probably a way to preg_match the image url, width, height etc and then insert a rel in there and echo it out? At the moment I just don't have enough time to look at it though....the stuff I altered in WP should do it.

    Dan

  4. eridout
    Member
    Posted 1 year ago #

    For setting an image to a consistent width without degrading quality, I've been finding Picasa convenient and easy. (That's the free desktop image editor from Google.) You simply "export" a photo to another folder, and it prompts for a width -- I always take the default of 800 pixels, which works fine for my blog.

  5. g3legacy
    Member
    Posted 1 year ago #

    Thanks for the info. I'm actually going to need something like that for a client so I will look into it. Ive also been looking at the unfortunately named "GIMP". I must say, it would be better to tell the client about something other than that!

    Dan

  6. vtxyzzy
    Member
    Posted 1 year ago #

    If you are going to deal with jpegs only, the free resizejpegs program from RJL Software works well. It will resize all jpegs in a directory at once if needed.

    I have also used CSS to control the size of some images when they are in a class that is unique:

    img.alignnone.size-full {
       width: 100% !important;
       height: auto !important;
    }

    Having the width at auto retains the proportions of the image.

Topic Closed

This topic has been closed to new replies.

About this Topic