Loads of fixes and optimizations

· Better help

· (Much) better argument parsing

· Nice rotate function for PDF's and JPG's using jpegtran over system calls when available (because it's losless) or GD (if installed)

· Automatic type guessing

· More options

· Waiting for scanner to complete other jobs

· Doesn't spam the CLI full with loads of "PreparingScan" messages

· Saves the images directly what strictly reduses the memory usage if rotation is disabled (otherwise it will be loaded into the memory to rotate)

· Doesn't overload the printer while waiting for scan to complete

· Show's how long it has waited for another job to complete

· Lets you specify the scanner ip over an argument

--------------

And some things more. Only problem ATM is that PDF's are written into the RAM before saving. Progress indicator would be nice too.

-------------

Happy scanning!!!!