<?

$login_required = FALSE;
include dirname(__FILE__)."/../includes/page.php";

include "$path_prefix/web/update/admin_login.php";

switch (@$_REQUEST['engine']) {
case 'gd':
  ImageResize::$skip_magick = TRUE;
  break;
case 'magick':
  ImageResize::$skip_gd = TRUE;
  break;
}

?><h1>testing ImageResize module with engine <?php 
echo ImageResize::get_engine();
?>
</h1>

<p><a href="test_imageresize.php">default</a> | <a href="test_imageresize.php?engine=gd">gd</a> | <a href="test_imageresize.php?engine=magick">magick</a> (make sure to hit ctrl-F5 after clicking, to clear the cache)</p>

<p>flushing cache ...
<?php 
flush();
system("rm -rf ../files/rsz");
?>
... done</p>

<p>orig: <img src="../images/palogo_black_bg.jpg"></p>