WP Tiles
[resolved] Avoid cropping tiled images (4 posts)

  1. mpdoc
    Posted 1 year ago #

    i'm completely newbie so, sorry for a maybe stupid question:
    WP Tiles does exactly what i'm looking for (posts featured images tiled grid) except for using cropped excerpts of images instead of dinamically resizing, or even just using fixed size thumbnails of entire image.
    Is it possible to obtain a similar result?

    Thank you.


  2. Mike Martel
    Plugin Author

    Posted 1 year ago #

    Hi @mpdoc,

    I'm afraid I don't entirely understand your question. The images on tiles are the images as WordPress has resized them (if you're using 1.0 beta, you can select which WP size to use). If the aspect ratio is different from the tile, the image is resized to completely cover the tile on the shortest fitting side - the rest is then cut off. (So, if you have an image that's 800x400px, it will be cropped to 400x400 on a square tile)

    I hope this clarifies things. If this doesn't answer your question, please post back again :)


  3. StevieDC
    Posted 10 months ago #

    Hi Mike,
    I have to agree with mpdoc. When I use Jetpack for a tiled gallery it does some clever resizing and positioning so that all the photos are not cropped. I tried wp-tiles to see if it is quicker, can use lazy loading, is smaller etc. Unfortunately wp-tiles crops the photos and the gallerylooks pretty lame.

    Here is a link to my site using Jetpack (for the mo) if you'd like to check it out. http://ianpricemusic.co.uk/

  4. Mike Martel
    Plugin Author

    Posted 10 months ago #

    Hi @StevieDC,

    Let me explain how WP Tiles crops and positions its images, so you have an idea of how to get it to work well with your photos.

    WP Tiles uses the default WordPress image cropping functionality. When the aspect ratio of a tile is not the aspect ratio of the cropped image, it enlarges the image until the whole tile is covered and then puts it in the center.

    By default, WP Tiles (1.0) will grab the 'medium' image size. The user can change this to another size if he wants to. If the image size chosen is set to crop the image, WP Tiles can seem to 'double crop' the image, because it always makes sure the complete tile is covered by the image. WP Tiles does not override this, because it could have actually been the user's intention and because WP Tiles shouldn't generate yet-another-image-size out of the box. So the user has full control over how WP Tiles crops his images - the default is sensible, but not optimal for every website.

    Long story short: if you set an image size that is large enough and doesn't crop by default, the image should come out correct most of the time, unless the aspect ratio of the tile is very different and the subject is not centred enough.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Tiles
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic