{* * $Revision: 1.9 $ * If you want to customize this file, do not edit it directly since future upgrades * may overwrite it. Instead, copy it into a new directory called "local" and edit that * version. Gallery will look for that file first and use it if it exists. *}

{g->text text="Dcraw Settings"}

{if isset($status.saved)}

{g->text text="Settings saved successfully"}

{/if}

{g->text text="Dcraw is a graphics toolkit that can be used to process RAW images produced by high end digital cameras. You must install the Dcraw binary on your server, then enter the path to it in the text box below. If you're on a Unix machine, don't forget to make the binary executable (chmod 755 dcraw should do it)."}

{g->text text="Note: Gallery supports Dcraw v5.40 and more recent."}

{g->text text="Path to dcraw binary:"} {g->autoComplete element="giFormPath"} {g->url arg1="view=core.SimpleCallback" arg2="command=lookupFiles" arg3="prefix=__VALUE__" htmlEntities=false} {/g->autoComplete} {if isset($form.error.path.missing)}
{g->text text="You must enter the path to your Dcraw binary."}
{/if} {if isset($form.error.path.bad)}
{g->text text="The path you entered is not a valid Dcraw binary or is not accessible."}
{/if} {if isset($form.error.path.testError)}
{g->text text="The path you entered isn't a valid Dcraw binary. Use the 'test' button to check where the error is."}
{/if} {if isset($form.error.path.badPath)}
{g->text text="The path you entered isn't valid."}
{/if}
{if $AdminDcraw.isConfigure} {else} {/if}
{if !empty($AdminDcraw.tests)}

{g->text text="Dcraw binary test results"}

{foreach from=$AdminDcraw.tests item=test} {/foreach}
{g->text text="Binary Name"} {g->text text="Pass/Fail"}
{$test.name} {if ($test.success)}
{g->text text="Passed"}
{else}
{g->text text="Failed"}
{if !empty($test.message)} {g->text text="Error messages:"}
{foreach from=$test.message item=line}
{$line}
{/foreach}
{/if} {/if}
{if ($AdminDcraw.failCount > 0)}

{g->text one="Debug output (%d failed test)" many="Debug output (%d failed tests)" count=$AdminDcraw.failCount arg1=$AdminDcraw.failCount} +

{g->text text="We gathered this debug output while testing your Dcraw binaries. If you read through this carefully you may discover the reason why your Dcraw binaries failed the tests."}

{/if} {/if}