Import images to Drupal 7 using feeds module

MrUpsidown picture MrUpsidown · Jul 4, 2012 · Viewed 12.3k times · Source

I have to migrate a custom (non CMS) website to Drupal 7. In the current website, some tables have image data that is stored as URL in the db.

I have tried the Feeds module with the Feeds Image Grabber addon, and also the Media Feeds plugin without success (for importing data as nodes).

Questions:

  1. Is there a way to import images from an (external) URL as 'images' into Drupal from a CSV file, using the Feeds module (or any other tool that allows both text and images import with mapping)?

  2. If not, is there a way to import them from Drupal's images library, also by the use of the Feeds module and/or Media Feeds plugins?

I have tried importing from CSV either by giving the full external URL path or the public://myimage.jpg path without success.

Thanks for any help on that!

Answer

Chris picture Chris · Jul 10, 2012

you are correct in identifying that the problem is due to the a space. Fyi: you can remove spaces using the tamper plugin for feeds. Just select trim and enter a space in the required field. Instead of using public://image its also possible the enter the complete url from the site where you get your images, just remember to remove spaces.