const currentPage = dv.current().file;
const dailyPages = dv.pages('"0-Daily"').sort(k=>k.file.name, "asc");
const currentPageName = currentPage.name;
const index = dailyPages.findIndex((e) => {return e.file.name === currentPageName});
if (index < 1) {
dv.table(["File", "Created", "Size"],[]);
} else {
const lastIndex = index - 1;
const lastPage = dailyPages[lastIndex].file;
const allPages = dv.pages().values;
const searchPages = [];
const lastTime = dv.parse(lastPage.name);
const currentTime = dv.parse(currentPage.name);
for (let page of allPages) {
const pageFile = page.file;
if (pageFile.cday > lastTime && pageFile.cday <= currentTime) {
searchPages.push(pageFile);
}
}
dv.table(["File", "Created", "Size"], searchPages.sort((a, b) => a.ctime > b.ctime ? 1 : -1).map(b => [b.link, b.ctime, b.size]));
}
Resemble.js
Analyse and compare images with Javascript and HTML5. More info & Resemble.js Demo. Compatible with Node.js >8.
GitHub - rsmbl/Resemble.js: Image analysis and comparison
GitHub - toninofox/resemble-java: Java fork of Resemble.js javascript library for Image Comparison (https://github.com/Huddle/Resemble.js)
图片对比、图片分析
Java Image Scaling Library
图片放大、缩小库
The list I have is:
- JMagick
- im4java
- Thumbnailator
- java-image-scaling
- JAI
- GitHub - rkalla/imgscalr: Simple Java image-scaling library implementing Chris Campbell’s incremental scaling algorithm as well as Java2D’s “best-practices” image-scaling techniques.