mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-04-14 09:31:54 +02:00
Minor changes.
This commit is contained in:
parent
3b1f4ffd75
commit
2132cfd45b
src/_h5ai/server/php/inc
@ -62,7 +62,7 @@ class App {
|
||||
if ($dir = opendir($theme_path)) {
|
||||
while (($name = readdir($dir)) !== false) {
|
||||
$path_parts = pathinfo($name);
|
||||
if (in_array($path_parts["extension"], App::$ICON_EXTS)) {
|
||||
if (in_array(@$path_parts["extension"], App::$ICON_EXTS)) {
|
||||
$icons[$path_parts["filename"]] = "${theme}/${name}";
|
||||
}
|
||||
}
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
class Thumb {
|
||||
|
||||
private static $FFMPEG_CMDV = array("ffmpeg", "-ss", "0:01:00", "-i", "[SRC]", "-an", "-vframes", "1", "[DEST]");
|
||||
private static $AVCONV_CMDV = array("avconv", "-ss", "0:01:00", "-i", "[SRC]", "-an", "-vframes", "1", "[DEST]");
|
||||
private static $FFMPEG_CMDV = array("ffmpeg", "-ss", "0:00:10", "-i", "[SRC]", "-an", "-vframes", "1", "[DEST]");
|
||||
private static $AVCONV_CMDV = array("avconv", "-ss", "0:00:10", "-i", "[SRC]", "-an", "-vframes", "1", "[DEST]");
|
||||
private static $CONVERT_CMDV = array("convert", "-density", "200", "-quality", "100", "-sharpen", "0x1.0", "-strip", "[SRC][0]", "[DEST]");
|
||||
private static $THUMB_CACHE = "thumbs";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user