Maximize Image Dimensions

This topic contains 9 replies, has 4 voices, and was last updated by  identity 9 years, 8 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #12905

    identity
    Lifetime Member
    Post count: 445

    I want to allow listing images to be “full-sized” to fit the display box on the detail page.

    Is there a max-size for that, or is it theme/layout dependent?

    If not, what is the max-size?

    And what controls that from the WP Admin…is it the regular WP Media Settings, and which size (i.e., medium or large) is used? Or is this set elsewhere?

    Cheers,
    Brian

    #12912

    Paolo
    Site Admin
    Post count: 31206

    Hi Brian,

    that is probably one of the most complicated things to customize.

    Because it resizes all images to fit in the box height, no matter if they are portrait or landscape images.

    Than there is the responsive part.

    In addition the box resizes according to the theme content size.

    Too many variables to look at to make it right.

    I’ve tried doing it and I wasn’t able to.

    It would be very difficult there finding a standard that would fit for all themes.

    #12914

    identity
    Lifetime Member
    Post count: 445

    Okay, understand. Let me ask this though.

    I’m seeing my images being scaled down to 800×600, even though what was uploaded was quite a bit larger.

    Is there a specific setting in WP/GD that is dictating that? I get that it might be varied, but just wondering if there is a setting somewhere that would help me maximize the opportunity for images to fill the space, even though ultimately it will still be dependent on the actual images uploaded.

    cheers

    #12918

    Paolo
    Site Admin
    Post count: 31206

    Not a setting, it’s code controlled.

    Thx

    #12937

    purpleedge
    Expired Member
    Post count: 539

    Any problem doing something like this?

    
    
    /* slider images --------------------------------------------------------------*/
    
    #geodir_slider {
        box-shadow: none;
    }
    
    .geodir-viewport {
        padding-bottom: 10px;
    }
    
    .geodir_flexslider .geodir-slides img[itemprop="image"] {
        border: 1px solid #5E5E5E;
        border-radius: 5px;
        max-width: 100%;
        max-height: 480px !important;
    }
    
    #geodir_carousel {
        box-shadow: none;
        padding: 5px;
    }
    
    

    The max-height is what makes the images bigger.

    #12957

    Paolo
    Site Admin
    Post count: 31206

    Yes, that could be a solution…

    Thanks Purpleedge!

    #12961

    identity
    Lifetime Member
    Post count: 445

    Thanks, I’ll have to take a look at that.

    cheers

    #12962

    sfamilia
    Buyer
    Post count: 82

    Brian, if you wouldn’t mind could you share any results get working with purpleedges’s code, this same issue has been toasting my brain…

    #12965

    purpleedge
    Expired Member
    Post count: 539

    Before and after images attached. Seems to resize OK in FF mobile view, haven’t tested on a real mobile yet.

    #12984

    identity
    Lifetime Member
    Post count: 445

    @purpleedge, thanks, pretty slick; only minor testing on my part as well.

    @sfamilia, easy enough to test out since it is all CSS based. I recommend trying to code, commenting out different parts to get a feel for how it changes the look. You can experiment with the “max-height” as well to your taste.

    Definitely test as a “user”…in other words, try make sure you have some test listings that have both landscape and portrait images, as well as loaded up with both larger initial resolutions and smaller ones to get a feel for how everything displays.

    Being CSS, it’s all presentation so there’s no harm, no foul, and can always be tweaked or undone later if you see something you don’t like.

    cheers

Viewing 10 posts - 1 through 10 (of 10 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket