[Plugin: Jetpack by WordPress.com] jetpack photon bit in carousel
-
When carousel and photon is enabled, the carousel pics is shown as
http://i2.wp.com/url/etc.jpg?fit=600%2C520
regardless of the viewport, browser, platform, etc.I want to change so that the full sized image is always shown.
I’ve looked in class.photon.php, functions.photon.php (irrelevant). I though it’d be as easy as removing the fit part, but nope clearly it’s not that simple. It’s used in so many places, and is a fix for the old ‘crop’ function which… I dunno.
But definitely can’t disable it class.photon.php, or else no pics will be resized. I only want to affect the carousel pics. I don’t have tools to check where a function is used.
I looked at modules/carousel/jetpack-carousel.php to see if I can disable it only in there, but couldn’t see anything.
It’s beyond me, does anyone know where I should go to do this, and in a way that’s repeatable since I’ll have to do this again when it’s updated. I figure there’s some way to use add_filter
From what I see the error is that the carousel pics have no width/height, so photon defaults transform to fit. But I couldn’t work out where the size 600 came from, since
var $prebuilt_widths = array( 370, 700, 1000, 1200, 1400, 2000 );
The topic ‘[Plugin: Jetpack by WordPress.com] jetpack photon bit in carousel’ is closed to new replies.