How to Crawl a PHP generated image

2019-09-21 02:41发布

I have a website textscloud.com
In this website i make the image with the PHP GD library. Here is a link to a demo:

In this page i allow the user to download the image on which text will pe printed. download link is like

This download.php file has a header for making the image with PHP GD Library and download the file like this

header("Content-type: image/png");

But google didn't crawl these images. Does anyone know the solution? I can't store these image in server.

3条回答
Anthone
2楼-- · 2019-09-21 03:19

You can try to:

Send a cache header to allow caching of the image.

Rewrite the actual url to someting like: http://textscloud.com/get_img/download/VkZaU1FtUXdNVVZWVkZKT1ZWUXdPUT09.png (should match your filename header)

查看更多
孤傲高冷的网名
3楼-- · 2019-09-21 03:21

You don't mention how you are feeding the beast, so I suggest you start by providing google a site map via their webmaster toolkit. You can specifically list the images that you want crawled. Google provides good help articles to get you going.

查看更多
Explosion°爆炸
4楼-- · 2019-09-21 03:24

Google can't index images that are not stored permanently, I'm quite sure it can't even index images without context (i.e. which are not part of a describing/linking page).

查看更多
登录 后发表回答