Ignore new build products: Manpage and SOVERSIONed library
Fix division by zero when upscaling
Add test: "-h 10000" should pass
Remove unused functions, initialize two pointers

Thanks, cppcheck!
Consequently use "unsigned char" for image data
Harmonize return values: -1 or NULL for library errors