mikeal / sequest

Simplified API for SSH and SFTP similar to request.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Quality reduction when downloading

mikechuck opened this issue · comments

Hello,

I am using sequest to download images from a server. I have compared the quality of the image on the server to the one downloaded, and it is noticeably worse. I am connecting with sequest, and doing the actual downloading (streaming) with Node File System (fs.createWriteStream).
Would this quality reduction be because of sequest's connection, or the way node File System handles the data?

Also, I was reading about how the more times you encode a file, the more loss in quality you get. Can I disable encoding for my sequest connection, as well as the fs.createWriteStream and pipe() method?

Thanks!
Michael