ComicPress and Jetpack Photon

Howdy, all! Just a bit of a reminder if you’re a webcomic creator, and you’re running your webcomics on WordPress, you can get a pretty big performance improvement (and savings on bandwidth costs) if you activate the Photon module in Jetpack.

Photon is a free Image Content Delivery Network hosted by For most content images (depending on how your theme is serving them up), it will just swap out a CDN url of the image automagically, nothing to configure.

If you’re using ComicPress, though, it’s got some funky ways of outputting images just due to legacy code.  It’s pretty easy to fix, though:

add_action( 'init', 'comicpress_photon_filters' );
function comicpress_photon_filters() {
if ( class_exists( 'Jetpack' ) && Jetpack::init()->is_module_active( 'photon' ) ) {
add_filter( 'comicpress_display_comic_image', array( 'Jetpack_Photon', 'filter_the_content' ), 999999 );

Just upload this as a new file entitled comicpress-photon.php to your /wp-content/mu-plugins/ folder — or add it into your theme (or preferably child theme)’s functions.php file (but without the opening <?php)

It’s a huge savings on your hosting account because when serving images, your shared host has to keep talking to the client the entire time that the image is downloading, which can occasionally take longer than creating the page that the image is embedded in! So if your webserver has less load, it behaves better, your hosting company is probably happier with you, it’s not getting choked with serving up images when it could serve up HTML or the like, and you’ll instantly become 200% more attractive! (Okay, I lied on the last one)

2 thoughts on “ComicPress and Jetpack Photon

  1. Hi George Stephanis,
    Maybe a little off topic, however, I have tried the WordPress theme / plugin called “ComicPress” but I don’t like it. It’s not very user friendly or intuitive from my perspective. I want something simple and easily customizable. What else is out there? (Note: it doesn’t have to be a wordpress plugin, I’ll take raw PHP files too if I have to)
    Nice One!

    1. I’d recommend trying the “Comic Easel” plugin. It has a lot more functionality than the old Comic Press theme, and you can tie it in to most themes with just some slight customizations. So — just find a theme you like, hook Comic Easel into it, and be happy.

Comments are closed.