serp-spider / search-engine-google

:spider: Google client for SERPS
https://serp-spider.github.io
Other
168 stars 61 forks source link

Image base64 is showing some invalid image #43

Closed imerkle closed 8 years ago

imerkle commented 8 years ago

Using documentation getting image_group $image->image gives invalid image code below

data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==

Fix it

gsouf commented 8 years ago

In the version 0.1.0 image data are returned as given by google, that's stated in the doc: the image might be "either an image url or a base64 encoded image". The image you get is not invalid, it's a base64 encoded image.

In version 0.2 the image data will be easier to parse, minor info available in #35