I'm currently trying to use the Open Library Covers API together with the New York Times Bestsellers API to create a feed of bestsellers with cover images.

The NYT feed has all the book information, including ISBNs, but no covers. However, you can call cover images from OpenLibrary by plugging an ISBN into a URL.

So, I tried using feeds tamper rewrite plugin for an xpath expression (using xpath parser) that was mapped to an image field like this:
where [xpathparser:6] is the replacemenat pattern for the field that maps the ISBN.

Not working. Is there any possible way to do this? I think the tricky part is that the image is NOT actually included in the feed...


mzwyssig’s picture

Correct me if I'm wrong but I think that the current situation is that the images need to be imported like this: 'public://path/to/image.jpg', if you import it in an image field.

I your case, you would need to download the images manually first and then import the feeds with the format above. I don't think feeds supports the grabbing and saving of an image (yet).

Another solution would be to import your image in a text field (http://covers.openlibrary.org/b/isbn/[xpathparser:6]-S.jpg), and rewrite your field template to show the image instead of showing the text. But that would mean that the images are distant, and you won't be able to use stuff like image styles, etc.

MegaChriz’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)

In the current version of Feeds, Feeds does import external images, so this is no longer an issue.