On Wed, Jun 07, 2017 at 06:10:43AM -0400, tec...@protonmail.com wrote:

> Hello,
> 
> I am using 6.1 Release - all patched, including packages with mtier.
> 
> I'm running a PHP56 web server, I am initiating automatic downloads using 
> headers but whenever I download an image it cant be opened because no matter 
> what image type it is I get:
> 
> Error interpreting JPEG image file (Not a JPEG file: starts with 0x0a 0xff)
> 
> I have been trying to figure this out all morning, I found a blog post which 
> a guy has the exact same problem. 
> https://shareithq.wordpress.com/tag/php-nginx-or-php-seems-to-be-adding-1-byte-to-image-files/
> 
> But I tested his fix on the file, and it works..
> 
> tail -c +2 avatest_local.jpg > avatest_fixed.jpg
> 
> Is it possible some sort of automatic compression is in use on the system? or 
> is that just ridiculous?
> 
> Has anyone experienced this before and worked out the issue? Thanks

Things like this often happen when a php script has an extra space after the
closing ?> or sometging similar.

        -Otto

Reply via email to