Page MenuHomePhabricator

JPEG originals served with Content-Type text/html
Closed, DuplicatePublic

Description

Reported by Emil on #wikimedia and #wikimedia-tech: https://upload.wikimedia.org/wikipedia/en/0/06/ProtonMail_screenshot.jpg is shown in browsers as gibberish like ����JFIFHH���

$ wget -S https://upload.wikimedia.org/wikipedia/en/0/06/ProtonMail_screenshot.jpg
--2017-04-03 13:24:59--  https://upload.wikimedia.org/wikipedia/en/0/06/ProtonMail_screenshot.jpg
Risoluzione di upload.wikimedia.org (upload.wikimedia.org)... 91.198.174.208, 2620:0:862:ed1a::2:b
Connessione a upload.wikimedia.org (upload.wikimedia.org)|91.198.174.208|:443... connesso.
Richiesta HTTP inviata, in attesa di risposta... 
  HTTP/1.1 200 OK
  Date: Mon, 03 Apr 2017 11:24:59 GMT
  Content-Type: text/html; charset=UTF-8
  Content-Length: 90888
  Connection: keep-alive
  X-Trans-Id: tx400dc9235f97478887dd2-0058e02067
  X-Object-Meta-Sha1base36: 9vmw0lo6q7qu43bekn5vbk1mjj3pgy9
  Last-Modified: Fri, 12 Feb 2016 15:13:43 GMT
  X-Timestamp: 1455290022.01274
  X-Varnish: 256692452 227276781, 129983593 61565770, 887239091 864350819
  Via: 1.1 varnish-v4, 1.1 varnish-v4, 1.1 varnish-v4
  ETag: W/5a37b8bf49734fdb5d114beab98da75e
  Vary: Accept-Encoding
  Age: 135332
  X-Cache: cp1099 hit/3, cp3034 hit/4, cp3048 hit/5
  X-Cache-Status: hit
  Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
  X-Analytics: https=1;nocookies=1
  Access-Control-Allow-Origin: *
  Access-Control-Expose-Headers: Age, Date, Content-Length, Content-Range, X-Content-Duration, X-Cache, X-Varnish
  Timing-Allow-Origin: *
  Accept-Ranges: bytes
Lunghezza: 90888 (89K) [text/html]
Salvataggio in: "ProtonMail_screenshot.jpg"

ProtonMail_screenshot.jpg                    100%[===========================================================================================>]  88,76K  --.-KB/s    in 0,07s   

2017-04-03 13:24:59 (1,21 MB/s) - "ProtonMail_screenshot.jpg" salvato [90888/90888]

$ identify -verbose ProtonMail_screenshot.jpg                                                                                                                
Image: ProtonMail_screenshot.jpg                                                                                                                                                 
  Format: JPEG (Joint Photographic Experts Group JFIF format)                                                                                                                    
  Mime type: image/jpeg                                                                                                                                                          
  Class: DirectClass                                                                                                                                                             
  Geometry: 747x420+0+0                                                                                                                                                          
  Resolution: 72x72                                                                                                                                                              
  Print size: 10.375x5.83333                                                                                                                                                     
  Units: PixelsPerInch                                                                                                                                                           
  Type: TrueColor                                                                                                                                                                
  Endianess: Undefined
  Colorspace: sRGB
  Depth: 8-bit
  Channel depth:
    red: 8-bit
    green: 8-bit
    blue: 8-bit
  Channel statistics:
    Pixels: 313740
    Red:
      min: 0 (0)
      max: 255 (1)
      mean: 198.719 (0.779291)
      standard deviation: 76.9621 (0.301812)
      kurtosis: -0.376702
      skewness: -1.17296
      entropy: 0.636378
    Green:
      min: 0 (0)
      max: 255 (1)
      mean: 198.571 (0.778708)
      standard deviation: 77.1458 (0.302532)
      kurtosis: -0.397419
      skewness: -1.16562
      entropy: 0.630648
    Blue:
      min: 0 (0)
      max: 255 (1)
      mean: 198.864 (0.779858)
      standard deviation: 76.7349 (0.300921)
      kurtosis: -0.345204
      skewness: -1.18346
      entropy: 0.644551
  Image statistics:
    Overall:
      min: 0 (0)
      max: 255 (1)
      mean: 198.718 (0.779286)
      standard deviation: 76.9478 (0.301756)
      kurtosis: -0.373228
      skewness: -1.17399
      entropy: 0.637192
  Rendering intent: Perceptual
  Gamma: 0.454545
  Chromaticity:
    red primary: (0.64,0.33)
    green primary: (0.3,0.6)
    blue primary: (0.15,0.06)
    white point: (0.3127,0.329)
  Background color: white
  Border color: srgb(223,223,223)
  Matte color: grey74
  Transparent color: black
  Interlace: JPEG
  Intensity: Undefined
  Compose: Over
  Page geometry: 747x420+0+0
  Dispose: Undefined
  Iterations: 0
  Compression: JPEG
  Quality: 95
  Orientation: Undefined
  Properties:
    date:create: 2017-04-03T13:24:59+02:00
    date:modify: 2016-02-12T16:13:43+01:00
    jpeg:colorspace: 2
    jpeg:sampling-factor: 2x2,1x1,1x1
    signature: d32cb0665b3709363dc8e71421df239071ba8443f7684ac605d70f61d31a1516
  Artifacts:
    filename: ProtonMail_screenshot.jpg
    verbose: true
  Tainted: False
  Filesize: 90.9KB
  Number pixels: 314K
  Pixels per second: 156.87GB
  User time: 0.000u
  Elapsed time: 0:01.000
  Version: ImageMagick 6.9.3-0 Q16 x86_64 2017-03-11 http://www.imagemagick.org