Just change file format (CR+LF to LF)
Check file format with "file command" before RMagick for response quickness