Jetpack’s images CDN Photon apply by default to content and galleries. This plugin will hassle-free apply Photon to everything else like feeds and widgets’ Titles and Content.
- Upload the files to the /wp-content/plugins/ultimate-photonizer/ directory.
- Activate the plugin through the ‘Plugins’ menu in WordPress.
- Donate if you’re happy 🙂
I have long wanted to, that would Photon sent in CDN images themes. And found how to do it using this plugin. It really works!!!
I also use a fix to theme functions.php in order to fix bad resolution problems:
/**
* Plugin Name: FIX JETPACK PHOTON image quality (Photon Experiments)
* Description: changing quality parameter
* Version: 0.1.0
*/
#FIX JETPACK PHOTON image quality
#https://developer.jetpack.com/hooks/jetpack_photon_pre_args/
#https://developer.wordpress.com/docs/photon/
#https://developer.wordpress.com/docs/photon/api/#resize
#https://developer.jetpack.com/hooks/jetpack_photon_pre_args/
# PLUS: Install & just activate plugin Ultimate Photonizer in order to Photonize all content
function jeherve_custom_photon( $args ) {
$args['quality'] = '100'; /* menos de 100 n達o funciona! plo menos no logo com o Vantage/Altair */
$args['strip'] = 'all';
$args['resize'] = 'null';
# $args['filter'] = 'grayscale';
return $args;
}
add_filter( 'jetpack_photon_pre_args', 'jeherve_custom_photon' );
While the plugin is activated, I can’t add galleries from Web Dorado’s Gallery plugin anymore.
But.. there is always a “please donate” notification on every backend site that you can’t close.
made 95% of images that were not on photon go to photon.
looks like a small bit of code.
still hesitant to use it because from the small bit of testing i did, on average the load time increased a fraction of a second to a second.
more testing or some comments from the author on speed/load times would be great.
if you just need the maximum cdn of images to help hosting, this is great!. my pages are already a beast and the jetpack photon by itself is also quite nice.
anyhow! use it! lets get some more feedback.
Ανάγνωση όλων των 5 κριτικών
“Ultimate Photonizer” είναι λογισμικό ανοιχτού κώδικα. Οι παρακάτω έχουν συνεισφέρει στη δημιουργία του.
Συντελεστές