Connecting To A Scanner

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
supermike
Forum Contributor
Posts: 193
Joined: Tue Feb 28, 2006 8:30 pm
Location: Somewhere in the Desert, USA

Connecting To A Scanner

Post by supermike »

My boss asked me to create a PHP command-line program on Linux that scans in documents into TIFF files and moves them to folders on the Linux hard drive. A batch would be placed on this batch scanner, then the command line would be run. The user would type in the name to call this batch or use an existing name. Then, it would be scanned into TIFF files and placed into this folder.

If you have knowledge about some of this, please advise:

* We're using Ubuntu Linux (Dapper release) and can use either PHP4 or PHP5 CLI. Can you recommend a particular USB scanner that can handle batches (unfolded, unstapled docs from envelopes) and that will work best with Ubuntu Linux?

* Does PHP4 or PHP5 have an API for addressing a scanner and converting an image to TIFF, or do I need to shell out of PHP to a command line GNU tool with Linux to achieve this goal?
supermike
Forum Contributor
Posts: 193
Joined: Tue Feb 28, 2006 8:30 pm
Location: Somewhere in the Desert, USA

Post by supermike »

Found I could shell out with the `scanimage ...` command on Linux if ImageMagick has been installed and configured properly along with the SANE libraries. Ubuntu has this installed rather nicely. The ... would be the options you want to use.
Post Reply