Crop thumbnails from the center?

Posted in: Newsmag
Post count: 43

Hello,

I am having difficulty with the thumnails the large slider is generating! The theme is currently cropping the image from the top instead of from the middle.

How can I crop the image from the vertically center instead of from the top for thumbnails?

Thanks

Post count: 9544

I think you can edit that behavior in:
/includes/td_config.php

        td_api_thumb::add('td_640x350',
            array(
                'name' => 'td_640x350',
                'width' => 640,
                'height' => 350,
                'crop' => array('center', 'top'),
                'post_format_icon_size' => 'normal',
                'used_on' => array(
                    'Slide - 2 columns'
                )
            )
        );

I think this from the WP codex applies, unless I’m mistaken

1. If false (default), images will not be cropped.
2. If an array in the form of array( x_crop_position, y_crop_position ):
– x_crop_position accepts ‘left’ ‘center’, or ‘right’.
– y_crop_position accepts ‘top’, ‘center’, or ‘bottom’.

  • This reply was modified 11 years by simchris.
Post count: 43

Perfekt!

Thank you Chris

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newsmag’ is closed to new topics and replies.