diff --git a/bin/magick b/bin/magick deleted file mode 100755 index be3c64a..0000000 Binary files a/bin/magick and /dev/null differ diff --git a/filetypes.php b/filetypes.php index 481eb9f..f6bbbca 100755 --- a/filetypes.php +++ b/filetypes.php @@ -1,7 +1,6 @@ prepare("INSERT INTO icons VALUES (:fid, :hash, :created, :relative_path, :tool)"); - $cmd = $bin_qltool." di ".$shellpath." ".$p['thumb_size']." ".$p['thumb_size']." | base64 --decode | ".$bin_magick." convert - -scale 50% -strip -define png:compression-level=9 ".$tfile; + $cmd = $bin_qltool." di ".$shellpath." ".$p['thumb_size']." ".$p['thumb_size']." | base64 --decode > ".$tfile; shell_exec($cmd); $stmt->BindValue(":fid",$fid); @@ -46,7 +46,7 @@ switch ($mode) { } else { $dfile = $bpath."/icons/".substr($hash, 0, 2)."/".$hash.".png"; if (!is_dir(dirname($dfile))) { mkdir(dirname($dfile)); } - rename($tfile,$dfile); + shell_exec("sips -z ".$p['thumb_size']." ".$p['thumb_size']." ".$tfile." --out ".$dfile); $stmt->BindValue(":created",time()); $stmt->BindValue(":relative_path",substr($dfile,strlen($bpath))); $stmt->BindValue(":tool","qltool"); diff --git a/utils/generate_default_prefs b/utils/generate_default_prefs.php similarity index 100% rename from utils/generate_default_prefs rename to utils/generate_default_prefs.php diff --git a/utils/polyfill.php b/utils/polyfill.php index 3667b04..bcf8426 100755 --- a/utils/polyfill.php +++ b/utils/polyfill.php @@ -16,7 +16,6 @@ $deep = $argv[3]; $dest = $argv[4]; $dmg = $dest."/Polyfill.sparsebundle"; -echo $dmg; if (file_exists($dmg)) { exec("trash ".$dmg."; umount -f /Volumes/Polyfill"); diff --git a/utils/test.jpg b/utils/sample_files/test_b.jpg similarity index 100% rename from utils/test.jpg rename to utils/sample_files/test_b.jpg