Giter Site home page Giter Site logo

zip2pdf's Introduction

◯必要なもの
・ImageMagick
    画像編集ライブラリ。
    多分6.2.9以降であれば必要なものはサポートしている筈だが、イマイチ6.2.9以降で動くよ!っと言い切れる自信はない。
	開発には6.7.5を使用した。

・IMagick
    PHP用のImageMagickライブラリ。
	PECLから提供されている。
	2.00以降のものであればインターフェース的には問題ないはずだが、最新のを使うにこしたことはない。
	開発には3.1.0RC1を使用したが、writeImagesにバグがあった為 手元で直した。
	そのうちパッチ送ろうと思う。

・負けない心
	頑張って!

◯やる事
	conf.yml.sample を conf.yml にリネーム。
	設定できる項目とデフォルト値については、conf/base.phpを見てね。

◯使い方
	php zip2pdf.php --input /huga/hoge/piyo/hoge.zip --output /hehe/hoho/

inputでファイル指定して、outputでディレクトリ指定する。
outputは書かなければ、inputと同じディレクトリに作られる。


--test を付けると、30ページに1個だけ出力するようになる。
あと、変換過程の画像を./tmp/以下に掃き出すので、テストモード使う時はtmpってディレクトリつくっといでください。

◯今後
	余白除去の精度アップ
	画像処理のよくわかってない所なんとかする。
	設定できる項目を増やす。
	やる記を出す。

zip2pdf's People

Contributors

tyoro avatar

Stargazers

Soo Kim avatar  avatar

Watchers

 avatar James Cloos avatar

Forkers

rollys

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.