Photon stops add_image_size crop working correctilly
-
Hello
For the images on the main page of my blog I use the following code to display just the left part of the image:
function invadingholland_setup() { add_theme_support('post-thumbnails'); add_image_size('post-cartoon', 200, 200, array('left', 'top')); } add_action('after_setup_theme', 'invadingholland_setup');
…and then this in my loop:
<?php the_post_thumbnail('thumbnail-cartoon'); ?>
For a long time it was not work and I could not figure out why. Only the center part of the image was displaying. Eventually I worked it out. The Photon module from Jetpack was some how stopping the images from displaying correctly. As soon as I turned it off everything was fine. However, I would like to use Photon if possible. Is there a way around the problem so it does not interfere with the add_image_size crop settings?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Photon stops add_image_size crop working correctilly’ is closed to new replies.