dtvfxzq3802 2017-06-09 21:07
浏览 29

图像显示为html mime gibberish - PHP - Glide

So I'm using the Glide (thephpleague) image manipulations system to create thumbnails on a site. When I use small thumbnails like http://dramaguru.net/images/titles/mohabbat_tum_se_nafrat_hai_147.jpeg?h=74&w=75 it shows up as html mime gibberish but the same image larger thumbnail shows up fine.

Large thumbnail: http://dramaguru.net/images/titles/mohabbat_tum_se_nafrat_hai_147.jpeg?h=174&w=175

Is this my server config, or a code issue? Any ideas?

  • 写回答

1条回答 默认 最新

  • doushang1778 2017-06-09 21:17
    关注

    It looks like you are missing a content-type header header('content-type: image/jpeg'), but without seeing any code, I can't be sure.

    Also, the small image has two expires headers and 3 cache-control headers (inspect the network request using chrome for example).

    评论

报告相同问题?