Skip to content

Instantly share code, notes, and snippets.

View unickorn's full-sized avatar
🐛
hunting bugs

Ilhan unickorn

🐛
hunting bugs
  • Munich, Germany
  • 13:14 (UTC +02:00)
View GitHub Profile
@unickorn
unickorn / pixel-enlarger.php
Last active April 19, 2021 08:19 — forked from TwistedAsylumMC/pixel-enlarger.php
Increases the size of each pixel within an image
<?php
// Validate file input
$file = $argv[1] ?? "";
if($file === ""){
echo "Please provide an image" . PHP_EOL;
return;
}
if(substr($file, -4) !== ".png"){