• Resolved marouane91

    (@marouane91)


    Hello,

    I’m quite pleased with this new plugin that i discovered, so far i’m content with it.

    However, there is an issue that i’m facing, i have a column of the type “Image/file/Lightbox” -> Link to URL

    When i add the image which has a dimension of 160×60 it gets resized and becomes 150×60 so i loose a portion of my images of the sides.

    It’s not coming from somewhere else, because on the Media library the images still has the original dimensions, so i was wondering how can i solve this bug?

    Thank you in advance

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor WPManageNinja

    (@wpmanageninja)

    Hello @marouane91 ,
    By default, Ninja Tables find the optimized medium size from the image size and add for preview. You can control the image size by the following code.

    add_filter('ninja_table_prefered_thumb', function ($size) {
                return 'original'; // You can return any other image size that your wordpress has
            });

    Thanks

    Plugin Contributor WPManageNinja

    (@wpmanageninja)

    You have to paste the code in your theme’s functions.php file

    Thread Starter marouane91

    (@marouane91)

    Thank you so much, your plugin is the Best 😀

    Will do !

    I mean that, i went through all the plugins and tried each one seperately before picking Ninja tables.

    Anyway, i appreciate your help mate 🙂

    Thread Starter marouane91

    (@marouane91)

    That realy worked @wpmanageninja 😀

    Thank you so much for your help, you solved my issue ^^

    GREAT SUPPORT !!!

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

The topic ‘Image size problem’ is closed to new replies.