Action: Display Image?

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
danielw's picture

I'm trying to display an image as part of an Action.
Is my best bet to use Execute Custom PHP Code, and then do something like this:

<?php
$imagepath
="phpimages/dog.jpg";

$image=imagecreatefromjpeg($imagepath);

header('Content-Type: image/jpeg');

imagejpeg($image);
?>

Thanks!

Rules

Group organizers

Group categories

Categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: