mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
3b4aefffd1
commit
be6ab4dfca
@ -2703,6 +2703,9 @@ function(title, func){
|
|||||||
// thus making the final behaviour unpredictable.
|
// thus making the final behaviour unpredictable.
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
// NOTE: promise results are .flat()-tened, thus if it is needed to return
|
||||||
|
// a list of arrays then one must wrap the handler return value in an
|
||||||
|
// array...
|
||||||
// NOTE: sync-mode actions do not externally log anything, basic progress
|
// NOTE: sync-mode actions do not externally log anything, basic progress
|
||||||
// logging is handled by the queue/task which is not created in sync
|
// logging is handled by the queue/task which is not created in sync
|
||||||
// mode.
|
// mode.
|
||||||
|
|||||||
@ -375,6 +375,9 @@ var ExampleActions = actions.Actions({
|
|||||||
console.log('\t\tSKIP', item)
|
console.log('\t\tSKIP', item)
|
||||||
return runner.SKIP }
|
return runner.SKIP }
|
||||||
|
|
||||||
|
// NOTE: the handler's return value list is .flat()-end
|
||||||
|
// so if one needs to return a array the it must be
|
||||||
|
// wrapped in an array...
|
||||||
return item+1 }),
|
return item+1 }),
|
||||||
// handle inputs (async/queue)...
|
// handle inputs (async/queue)...
|
||||||
function(item, ...args){
|
function(item, ...args){
|
||||||
|
|||||||
@ -288,7 +288,7 @@ var SharpActions = actions.Actions({
|
|||||||
if(!image || !['image', null, undefined]
|
if(!image || !['image', null, undefined]
|
||||||
.includes(image.type)){
|
.includes(image.type)){
|
||||||
return runner.SKIP }
|
return runner.SKIP }
|
||||||
return [
|
return [[
|
||||||
// source...
|
// source...
|
||||||
this.getImagePath(gid),
|
this.getImagePath(gid),
|
||||||
// target...
|
// target...
|
||||||
@ -307,7 +307,7 @@ var SharpActions = actions.Actions({
|
|||||||
flipped: image.flipped,
|
flipped: image.flipped,
|
||||||
// crop...
|
// crop...
|
||||||
},
|
},
|
||||||
] }),
|
]] }),
|
||||||
// do the actual resizing (global queue)...
|
// do the actual resizing (global queue)...
|
||||||
function([source, to, image={}], size, _, options={}){
|
function([source, to, image={}], size, _, options={}){
|
||||||
// handle skipped items -- source, to and image are undefined...
|
// handle skipped items -- source, to and image are undefined...
|
||||||
@ -625,7 +625,7 @@ var SharpActions = actions.Actions({
|
|||||||
var base = base_path
|
var base = base_path
|
||||||
|| img.base_path
|
|| img.base_path
|
||||||
|| this.location.path
|
|| this.location.path
|
||||||
return [
|
return [[
|
||||||
gid,
|
gid,
|
||||||
// source...
|
// source...
|
||||||
this.getImagePath(gid),
|
this.getImagePath(gid),
|
||||||
@ -643,7 +643,7 @@ var SharpActions = actions.Actions({
|
|||||||
pathlib.join(base, name)),
|
pathlib.join(base, name)),
|
||||||
] }),
|
] }),
|
||||||
index_dir,
|
index_dir,
|
||||||
]}),
|
]]}),
|
||||||
// generate the previews...
|
// generate the previews...
|
||||||
// NOTE: this is competely isolated...
|
// NOTE: this is competely isolated...
|
||||||
// XXX args/logger is wrong here...
|
// XXX args/logger is wrong here...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user