Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi olimax,

    You have a few options to handle this. First, you could customize the templates and, in your custom template, you could load the full-size copy of the image instead of the custom plugin thumbnail.

    Alternatively, you could just go into Menus > Settings and set an absurdly high width and height for the thumbnails. When an image is smaller than the requested thumbnail size, WordPress just returns the full-size version.

    If you want to get more fancy with this, you can remove_image_size() and then add back the fdm_item_thumb image size with your own settings, telling it not to crop the image.

    Thread Starter olimax

    (@olimax)

    Many thanks
    The latter is the most elegant solution.
    For future reference for anyone this is it

    function replace_fdm_image_size()
    {
      remove_image_size('fdm-item-thumb');
      add_image_size('fdm-item-thumb', 300, 300, false);//false stops the cropping
    }
    add_action('init', 'replace_fdm_image_size');

    You need to regenerate the thumbnails, at least the ones you have uploaded and are using in the menus

    Very much appreciated and thanks again for the plugin

    Glad you got it working olimax!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘image cropping’ is closed to new replies.