Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorWRobinson
    • CommentTimeOct 1st 2007 edited
     
    Preface: If this has been asked/answered I apologize. I'm getting 404-forbidden error results when I do a search here, making it hard to search.

    My question is whether anyone knows how I could alter the output of the thumbnails. I like the square thumbs, but rather than cropped, I'd like to have a random portion of the image selected to display in the thumb. Any ideas?
    •  
      CommentAuthormike
    • CommentTimeOct 1st 2007
     
    Are you comfortable editing code?

    There is a feature of phpThumb called the Zoom-Crop - which basically does exactly what you want. All you have to do to get this is to edit the generate_thumb() in Plogger and set some parameters in the phpThumb object... Plogger already uses it to a certain extant.

    Check out line ~527 in plog-functions.php
    $phpThumb->zc = 1;

    Set to "1" or "C" to zoom-crop towards the center, or set to "T", "B", "L", "R", "TL", "TR", "BL", "BR" to gravitate towards top/left/bottom/right directions. You could put all these values into an array and set the value by randomizing the array index.

    I would play around with that first to see if you can achieve what you're after here.
    • CommentAuthorWRobinson
    • CommentTimeOct 1st 2007
     
    To test I set it to BL and cleared the cache, but nothing changed. Sorry, Mike, I'm not good with code at all. Do I need to do the array as well to make this work?