0.7.12.6pre
This commit is contained in:
BIN
bin/magick
BIN
bin/magick
Binary file not shown.
@@ -1,7 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// Filetypes
|
// Filetypes
|
||||||
// 0.7.12
|
|
||||||
//////////////////////////////////////////
|
//////////////////////////////////////////
|
||||||
|
|
||||||
// Metadata tools
|
// Metadata tools
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// Classes
|
// Classes & Functions
|
||||||
// 0.7.12
|
|
||||||
//////////////////////////////////////////
|
//////////////////////////////////////////
|
||||||
|
|
||||||
class ProgressBar {
|
class ProgressBar {
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ switch ($mode) {
|
|||||||
|
|
||||||
$stmt = $dbp->prepare("INSERT INTO icons VALUES (:fid, :hash, :created, :relative_path, :tool)");
|
$stmt = $dbp->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);
|
shell_exec($cmd);
|
||||||
|
|
||||||
$stmt->BindValue(":fid",$fid);
|
$stmt->BindValue(":fid",$fid);
|
||||||
@@ -46,7 +46,7 @@ switch ($mode) {
|
|||||||
} else {
|
} else {
|
||||||
$dfile = $bpath."/icons/".substr($hash, 0, 2)."/".$hash.".png";
|
$dfile = $bpath."/icons/".substr($hash, 0, 2)."/".$hash.".png";
|
||||||
if (!is_dir(dirname($dfile))) { mkdir(dirname($dfile)); }
|
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(":created",time());
|
||||||
$stmt->BindValue(":relative_path",substr($dfile,strlen($bpath)));
|
$stmt->BindValue(":relative_path",substr($dfile,strlen($bpath)));
|
||||||
$stmt->BindValue(":tool","qltool");
|
$stmt->BindValue(":tool","qltool");
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ $deep = $argv[3];
|
|||||||
$dest = $argv[4];
|
$dest = $argv[4];
|
||||||
|
|
||||||
$dmg = $dest."/Polyfill.sparsebundle";
|
$dmg = $dest."/Polyfill.sparsebundle";
|
||||||
echo $dmg;
|
|
||||||
|
|
||||||
if (file_exists($dmg)) {
|
if (file_exists($dmg)) {
|
||||||
exec("trash ".$dmg."; umount -f /Volumes/Polyfill");
|
exec("trash ".$dmg."; umount -f /Volumes/Polyfill");
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 59 KiB |
Reference in New Issue
Block a user