• Resolved nikasama83

    (@nikasama83)


    Since the last update image size setting in the widget is being ignored on some sponsors logos but not all.

    I have it set to ‘full’ but on small logos it shows the thumbnail version. Tried changing the size to medium, large, and others sizes from my theme but nothing changes.

    if it helps the listing at wp-admin/edit.php?post_type=sponsors shows the same thumbnail version on those small logos instead of the full one.

    if the logo uploaded is large enough to create any other image size, everything seems to works

    Hope this helps.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Igor Benic

    (@ibenic)

    Hi @nikasama83,

    that’s how WordPress works with images. If the image is uploaded in a lower size, it can’t create a larger image from it (no image code library that I can think of can do that through code).

    As for the full image size, I set the ‘full’ to the image size, but WordPress code decides which image to show. The full and thumbnail are probably close to each other so it uses the thumbnail.

    What are the sizes of the images that you have problems with?

    Thread Starter nikasama83

    (@nikasama83)

    >it can’t create a larger image from it
    >(no image code library that I can think of
    >can do that through code).

    … i would never expect WP to invent a larger size image and nowhere in my post it was stated as the problem. I found your reply arrogant.

    The plugin is ignoring the “full” size request and using medium size or smaller (even when cropped). Issue is unresolved.

    Plugin Author Igor Benic

    (@ibenic)

    Hi @nikasama83,

    sorry if you felt like that. It was not meant to be arrogant, just tried to explain it why it works how it works (just in case someone does not understand that; had some clients in the past).

    Could you let me know the original image sizes, if you have that information, with those that you have problems with?

    I have tried using it and it worked on every image I had, so maybe there is an issue with how WP decides which image to show for a particular range of sizes or width/height ratios?

    I too am having this same problem. The images were displaying fine until this latest update.

    I am trying to use the full image size option so that it displays the images at the exact size I have uploaded.

    It doesn’t matter which option I use, the 100 option is the one that is being used to display the images, according to the code.

    My images are 300X200.

    Please fix this.

    ****** EDIT

    My problem is specific to the horizontal layout. I noticed in the widget it now says the image size only works for the vertical layout. I need it to work for the horizontal.

    In the class-wp-sponsors-widget.php file,

    I found this around line 69 and changed the array to 0,300 which give me a max width of 300 instead of 100 and manualy fixed my problem. It would be nice if the image size dropdown in the widget worked for the horizontal layout tho to keep from digging through code to make a simple change such as image size.

    *******************************************
    $image_size = isset( $instance[‘display_option’] ) && ‘horizontal’ === $instance[‘display_option’] ? array( 0, 100 ) : $instance[‘image_size’];
    ********************************************

    Plugin Author Igor Benic

    (@ibenic)

    Hi,

    I am working on the 3.1.0 version where the widget will also use the image size for the horizontal display. The horizontal display will still apply the style (as it was in older versions) so images will have the height of 100px but will use the selected size.

    With that 100px height in horizontal, we are making sure to have them all aligned correctly. I’ll play a little with CSS and might have a different height here.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Image size ignored in widget’ is closed to new replies.