mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-04 08:59:39 -04:00
Use of EXIF thumbnails optional (opt-out).
This commit is contained in:
parent
00cc9fb713
commit
8b2852ec9d
2 changed files with 5 additions and 2 deletions
|
@ -312,6 +312,7 @@ Options
|
||||||
- doc: array of types
|
- doc: array of types
|
||||||
- delay: delay in milliseconds after "dom-ready" before thumb-requesting starts
|
- delay: delay in milliseconds after "dom-ready" before thumb-requesting starts
|
||||||
- size: number, size in pixel of the generated thumbnails
|
- size: number, size in pixel of the generated thumbnails
|
||||||
|
- exif: boolean, use included EXIF thumbs if possible
|
||||||
*/
|
*/
|
||||||
"thumbnails": {
|
"thumbnails": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
|
@ -319,7 +320,8 @@ Options
|
||||||
"mov": ["video"],
|
"mov": ["video"],
|
||||||
"doc": ["pdf", "ps"],
|
"doc": ["pdf", "ps"],
|
||||||
"delay": 1,
|
"delay": 1,
|
||||||
"size": 96
|
"size": 96,
|
||||||
|
"exif": true
|
||||||
},
|
},
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -56,7 +56,8 @@ class Thumb {
|
||||||
$image = new Image();
|
$image = new Image();
|
||||||
|
|
||||||
$et = false;
|
$et = false;
|
||||||
if (function_exists("exif_thumbnail")) {
|
$opts = $this->app->get_options();
|
||||||
|
if ($opts["thumbnails"]["exif"] === true && function_exists("exif_thumbnail")) {
|
||||||
$et = @exif_thumbnail($source_abs_path);
|
$et = @exif_thumbnail($source_abs_path);
|
||||||
}
|
}
|
||||||
if($et !== false) {
|
if($et !== false) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue