+///////////////////////////////////////////////////////////////////////////////
+// Images
+///////////////////////////////////////////////////////////////////////////////
+
+class GardenImage {
+ public $content_item;
+ public $width;
+ public $height;
+ public $url;
+ public $target_filename;
+
+ public function __construct($content_item, $width, $height, $url, $target_filename) {
+ $this->content_item = $content_item;
+ $this->width = $width;
+ $this->height = $height;
+ $this->url = $url;
+ $this->target_filename = $target_filename;
+ }
+}
+
+function garden_make_images($post_process_items) {
+ foreach ($post_process_items as $item) {
+ $image = new Imagick($item->content_item->source_filename);
+ $image->thumbnailImage($item->width, $item->height);
+ $image->writeImage($item->target_filename);
+ }
+}
+