Image links broken in Gmail because of google's Image proxy

后端 未结 8 993
夕颜
夕颜 2020-12-13 03:38

Image links in gmail are broken because of google\'s Image proxy (news1,news2). I can\'t load my site\'s images in gmail.

Actual image path is: http://sampleimageurl.

相关标签:
8条回答
  • 2020-12-13 03:59

    I am from Asp.Net world, but I had the same issue.

    • Gmail could not cache image while I tested locally
    • image's .svg extension was problematic

    So, I resolved this issue only by changing the image extension (to .png) and deploying the app to the server (in that case Gmail could access my image for caching and I saw the image in email).

    0 讨论(0)
  • 2020-12-13 03:59

    I had the same issue and I solved the problem hosting the images in my public server (http://mydoamin.com/img/images.jpg).

    Next step responsive email displaying responsive images: CSS

    @media only screen and (max-device-width: 480px) {
       td.headercell { 
          background-image: url(images/header-650@2x.png) !important;
          background-size: 325px 115px;
          width: 325px !important;
          height: 115px !important;
       }
       td.headercell img {
          display: none;
       }
    }
    
    0 讨论(0)
  • 2020-12-13 04:03

    Two things that might help:

    1. Use traditional image formats like .jpg, .png, .gif (formats like svg do not always work)
    2. Make sure there are no spaces or strange characters in the image path (Check your server request logs. If it gives a 404 to google it is probably a link format issue.)
    0 讨论(0)
  • 2020-12-13 04:07

    In Google Apps, it's now possible to disable Image Proxy for GMail (in Apps Settings). Or, better, you can white-list your internal URLs for which image proxying should be disabled.

    0 讨论(0)
  • 2020-12-13 04:19

    Because your image wasn't open to public.

    You need make sure the new Gmail image proxy can fetch your image from google server.

    0 讨论(0)
  • 2020-12-13 04:22

    Change the image's location. In the new Google setup, the first time an image is opened, Google downloads the image and caches it on a Google managed proxy.

    0 讨论(0)
提交回复
热议问题