recreate project

This commit is contained in:
root
2026-02-10 22:11:06 -05:00
commit 663c0cdbda
10149 changed files with 1379710 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
<?php
// Read an image file,
require_once("../../vendor/autoload.php");
use Mike42\GfxPhp\Image;
if(!isset($argv[1])) {
die("Usage " . $argv[0] . " IMAGE\n");
}
$filename = $argv[1];
$outp = basename($filename, '.png');
echo "Opening file $filename\n";
$img = Image::fromFile($filename);
$img -> write('out/' . $outp . ".ppm");
echo $img -> toBlackAndWhite() -> toString() . "\n";