Giter Club home page Giter Club logo

imgdiff's Introduction

imgageDiff 是一个图片对比工具

如果只是对比使用DiffPDF(PDF文件比较工具) v5.8.3 官方版还是不错的。

在线转pdf

因为工作需要公司项目里有pdf对比工作,每个pdf有40页左右 ,如果人工比如,费时而且容易出错。pdf是怎么比较的其实没有太好的思路,只是一个想法,能用就行了,所以初步想法就是,先把pdf转为jpg,然后jpg进行比较。

工具说明

src目录中pdf/expectedPdf 为目标pdf,src/actualPdf为实际pdf

output 目录中out/expectedImage为目标jpg,out/actualImage为实际jpg,output/diffImage 比较后的结果文件

环境依赖

  1. GraphicsMagick

  2. ImageMagick

  3. ghostScript

    不平台安装方式有所不同请注意

文件说明:

  1. actualPdf.jspdf/actualPdf下的pdf转为jpg
  2. expectedPdf.jspdf/expectedPdf下的pdf转为jpg
  3. imgCompare.js比较转换后的jpg(比较是通过文件名比较名,所以pdf名字保持一致)

imgdiff's People

Contributors

gleams avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.