我试图使用谷歌云功能示例中的缩略图代码.但是,我不断收到以下内容作为回复.
{ code: 1, message: '`convert /tmp/users/ZSE7ZRkFGKZq0Bc3tESEG2uT8922/images/1489813436054.jpg -thumbnail 500x500> -limit memory 32MB /tmp/users/ZSE7ZRkFGKZq0Bc3tESEG2uT8922/images/thumbnail/thumb_1489813436054.jpg` failed with code 1',
childProcess:
ChildProcess {
domain: null,
_events: { error: [Function: t], close: [Function] },
_eventsCount: 2,
_maxListeners: undefined,
_closesNeeded: 3,
_closesGot: 3,
connected: false,
signalCode: null,
exitCode: 1,
killed: false,
spawnfile: 'convert',
_handle: null,
spawnargs:
[ 'convert',
'/tmp/users/ZSE7ZRkFGKZq0Bc3tESEG2uT8922/images/1489813436054.jpg',
'-thumbnail',
'500x500>',
'-limit',
'memory 32MB',
'/tmp/users/ZSE7ZRkFGKZq0Bc3tESEG2uT8922/images/thumbnail/thumb_1489813436054.jpg' ],
pid: 14,
stdin:
Socket {
connecting: false,
_hadError: false,
_handle: null,
_parent: null,
_host: null,
_readableState: [Object],
readable: false, …Run Code Online (Sandbox Code Playgroud) 我想在Android设备上使用快速键值存储,其值为图像位图.应该通过磁盘备份存储并提供一些缓存,从而最大限度地减少磁盘IO.需要多线程访问,但不是必需的.
我看过看起来符合要求的Java Berkeley DB.还有其他图书馆表现更好吗?或者Berkeley DB在Android平台上表现如何?
我可以使用一个解决方案,它需要一个键值对驻留在内存中,但存储完整的键值对集可能会超出设备内存的大小.