[SOLVED] Crop to center of gallery images

Hi there, 
thanks for a great plugin, I have installed a gallery which I have custom styled on my site - however I would like to change the crop settings that timthumb is using to generate the gallery image. 

I see that the img output in my DOM looks like this;

XXX.jpg&w=928&h=450&q=100&a=t

So as far as I can tell timthumb is aligning the zoom/crop to the top (a=t), what I want to happen is the gallery image to crop to the center (horizontal & vertical)... Could you advise on how I would go about doing this??

WP v.3.4.2
Slideshow Gallery v.1.2.3.2

Thanks in advance! 

Comments

  • 3 Comments sorted by
  • Vote Up0Vote Down
    Thank you for your post.

    Yes, the plugin automatically sets a=t to the TimThumb source image.
    It is done inside "slideshow-gallery/helpers/html.php" 
    In function timthumb_image() and function timthumb_image_src()
    You can modify those 2 functions according to your needs.

    You can find instructions/documentation here: http://www.binarymoon.co.uk/demo/timthumb-cropping/

    Please let me know if this helps you!
  • Vote Up0Vote Down
    Great! Thank you for your help... That saved me a lot of digging around! All I have to do now is work out to implement that change in a timthumb config file so that it won't get wiped when I update your plugin.

    Although a backend crop location selector may be a cool feature for you guys to add in! I'm off to look at your paid plugins!!!
  • Vote Up0Vote Down
    Thank you for your response.

    It is my pleasure, I'm glad I could help you with it.

    Absolutely, we'll add a setting to the TimThumb settings under Slideshow > Configuration.
    I already added it to our development list when I posted the first reply to this so it's on it's way ;)

    Enjoy using the Slideshow Gallery plugin and let us know if you need any further assistance!
Sign In or Register to comment.