Good catch! That, in fact, could explain the symptoms, because the magic bytes of the PNG format ("\x89PNG\r\n\cz\n") is specifically designed such that it becomes corrupted if you mess up line endings, whereas a small jpg image might not contain "\r\n" anywhere at all so it may survive being read in text mode.
In reply to Re^2: Returning jpg works, png NOT
by ambrus
in thread Returning jpg works, png NOT
by membender
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |