thumb cropping at max possible size

hi there

when thumbnails are cropped they do not use the whole possible cropping area, which can be clearly seen by custom-cropping and getting more of the image inside the crop, which is what i would like.

how would i go about this?

thanks

Comments

  • I assume you mean without doing a custom crop for each image--that is using some sort of default crop but with more of the image.

    The crop works as follows:

    The crop area of the image figured by comparing the with the crop size. So, for instance, if you have a thumb size set at 100 and a crop of 85x85, the crop will be 85% of the image. If you want a max sized crop, set the thumb size to the crop size.
  • 'I assume you mean without doing a custom crop for each image--that is using some sort of default crop but with more of the image.' - actually not with more, but with less of the image that it could.

    i want the crops to be 247 x 180 and so had the thumb size set to 247.
    playing around with the thumb size i noticed that at 100 it works the way i want but with obviously bad quality - its upscaled to be 247 x 180 in the gallery.

    here is the options screen:
    'http://www.superoforma.com/o.jpg'

    thumb size of 100, uses max possible image area to generate thumb (good)
    'http://www.superoforma.com/1.jpg'

    thumb size of 247, doesnt use max possible image area to generate thumb (bad)
    'http://www.superoforma.com/2.jpg'

    same happens with 200, 246, 250 as with 247

    hope its more clear now
  • Since your thumbs are not square you will probably have to use the customthumb functions to get what you want. Please see the functions guide.
  • any idea why it works at 100px and not at higher? they arent at all square at 100px stretched but function as expected

    Edit: it actually works up to 180px the way it should. up to the crop height that is.. would you have any idea where this code as least is? the code that calculates this crop area
  • ive found the cropping logic to be in the 'functions-image.php' file, either after '// Crop the image if requested' comment or abit up top, but can not seem to figure it out.

    Someone, anyone? ive spent all day tryna fix it, when really it should take a few minutes )
  • it is in functions-image.php in the cache image routine.
  • But as I said earlier, you probably should be using the custom thumb functions.
Sign In or Register to comment.