Quantcast
Channel: WordPress.org Forums » [Jetpack - WP Security, Backup, Speed, & Growth] Support
Viewing all articles
Browse latest Browse all 37457

Liltiger on "[Plugin: Jetpack by WordPress.com] Change Top Posts & Pages Image Resize To Top Center"

$
0
0

Hi Jeremy,

I've tried my best to follow the guides that you provied, and came up w/ the following lines of code.

`$get_image_options['avatar_size'] = 125;
} else {
$get_image_options['avatar_size'] = 50;
}`
and

if ( 'blavatar' != $image['from'] && 'gravatar' != $image['from'] ) {
					$size = (int) $get_image_options['avatar_size'];
					$post['image'] = jetpack_photon_url( $post['image'], array( 'crop' => "10,0,$size,$size" ) );

However, it doesn't work. I've tried a few variations of 'corp' and 'resize' too.

I have managed to get the media.php to crop all photos from top center. Is it possible to call WP thumbnails instead of photon thumbnails?

Thanks So Much


Viewing all articles
Browse latest Browse all 37457

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>