• I have images set to be resized to the default dimensions of 800 x 600 in admin.

    Any images that I upload that are larger than that display fine, but when I upload images that are smaller than 800 x 600 they get stretched and pixelated instead of maintaining their original dimensions.

    Some examples:

    – 540 x 720 (72 dpi) image gets resized to 576 x 768
    – 221 x 166 (72 dpi) image gets resized to 798 x 600
    – 739 x 492 (96 dpi) image gets resize to 1024 x 682 (this one has me most concerned considering the resize limit is 800 x 600 and it’s resizing it larger than what is set)

    Is there a reason for this? Is there a fix? Seems unnecessary to resize images that are smaller than the resize defaults. Might also have something to do with the differing dpi.

    The thing is is that my client is the one who uploads pictures, not me – so I have no control over what is being uploaded (image dimensions, dpi, etc). I don’t want them to get confused when they upload a small picture and it gets distorted.

    If there isn’t a fix I might just have to find another plugin. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • Any word on this as I am having the same issue. Can code be added to ignore images below the inputted resize values?

    OK, I’ll add the solution here since I figured it out.

    You need to change your .ngg-imagebrowser img CSS to what is below. The two key changes are that you are changing ‘width: 100%;” to “height:100%;”. The next two are additions — margin-left and margin-right

    .ngg-imagebrowser img {
    border:1px solid #A9A9A9;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-right: auto;
    margin-left: auto;
    display: block; !important
    height: 100%;
    padding:5px;

    Thanks for sharing your solution.
    I was having the same issue & you helped fix it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: NextGEN Gallery] Images smaller than size set in admin are pixelated when viewed at full si’ is closed to new replies.