Action: Display Image?

Events happening in the community are now at Drupal community events on 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: