magazines scripts
This commit is contained in:
BIN
ScanScripts/Windows/sort/backward/Thumbs.db
Normal file
BIN
ScanScripts/Windows/sort/backward/Thumbs.db
Normal file
Binary file not shown.
32
ScanScripts/Windows/sort/forward.php
Normal file
32
ScanScripts/Windows/sort/forward.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
$forward = glob('./forward/*.tif');
|
||||
$backward = glob('./backward/*.tif');
|
||||
rsort($backward);
|
||||
$output = './output/';
|
||||
$fcount = 1;
|
||||
$bcount = 2;
|
||||
|
||||
if(!file_exists($output)) mkdir($output, 0777, true);
|
||||
|
||||
foreach($forward as $fk => $fv)
|
||||
{
|
||||
|
||||
echo $fk . ' => ' . $fv . "\n";
|
||||
copy($fv, $output . str_pad($fcount, 4, 0, STR_PAD_LEFT) . '.tif');
|
||||
$fcount += 2;
|
||||
}
|
||||
|
||||
foreach($backward as $bk => $bv)
|
||||
{
|
||||
|
||||
if ($bk % 2 != 0)
|
||||
{
|
||||
echo $bk . ' => ' . $bv . "\n";
|
||||
copy($bv, $output . str_pad($bcount, 4, 0, STR_PAD_LEFT) . '.tif');
|
||||
$bcount += 2;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
BIN
ScanScripts/Windows/sort/forward/Thumbs.db
Normal file
BIN
ScanScripts/Windows/sort/forward/Thumbs.db
Normal file
Binary file not shown.
BIN
ScanScripts/Windows/sort/php.exe
Normal file
BIN
ScanScripts/Windows/sort/php.exe
Normal file
Binary file not shown.
BIN
ScanScripts/Windows/sort/php5.dll
Normal file
BIN
ScanScripts/Windows/sort/php5.dll
Normal file
Binary file not shown.
2
ScanScripts/Windows/sort/runme.cmd
Normal file
2
ScanScripts/Windows/sort/runme.cmd
Normal file
@@ -0,0 +1,2 @@
|
||||
php.exe -f forward.php
|
||||
pause
|
Reference in New Issue
Block a user