Warning: Illegal string offset 'echo' in /home/public44/public_html/blog/wp-content/themes/hybrid/library/extensions/custom-field-series.php on line 79

28 responses to “Drupal: Tutorial for Feeds Image Grabber”

  1. Drupal: Feeds Image Grabber | Public Mind
  2. Tutorial for FeedAPI Image Grabber | Public Mind

    [...] Tutorial for Feeds Image Grabber (FIG) published. (6 march 2010) [...]

  3. day trader

    good job, but I have a question is that the feeds didn’t released 7.X,but your plugin(feed image grabber)have been released 7.X

  4. Josh

    Agreed pretty awesome, but I’m looking to snag images right from the body of posts. Most feeds I’ve encountered we’re so nice about placing an image item right in them, though this module would be great for flickr feeds and even getting avatar images into a field for good display.

    Here is some code I used to catch the first image in a post body.
    Altered from this post intended for WordPress http://www.wprecipes.com/how-to-get-the-first-image-from-the-post-and-display-it
    I’m using it for Drupal, and unfortunately I can’t post the real PREG here.

    function retrofit_custom_catch_image($string) {
    $first_img = ”;
    $output= preg_match_all(‘ GO GET THE REAL PREG FROM THE POST ‘, $string, $matches);
    $first_img = $matches[1][0];
    if(empty($first_img)){ //Defines a default image
    $first_img = “/images/default.jpg”;
    }
    return $first_img;
    }

    Hope I just made your day!

  5. Spark_man

    I installed your module and have followed the directions up to the bit about the mapping but “photo (FIG)” isn’t showing up in the target list? Any ideas?

  6. Aaron

    Okay, I might be a little confused about what you can do with this module.

    I’m parsing an XML file with the Feeds module and I would like to grab an image.
    From something like this…

    Will this not work? Right now its not working, although I have used this feature successfully for non-xml feeds in the same site.

    1. Aaron

      Oh, hahah – I guess it cut out the example XML I put right after “something like this..”, yeah I’ll head over to the issue que.

  7. Cosite

    I am sure this is a great article.
    for now , I still can not import the images from feeds. here is the feed:

    http://api.flickr.com/services/feeds/groups_pool.gne?id=48889079722@N01&lang=en-us&format=atom

    and then what is the ID or CLASS for “Search for an image between the tag which is identified by” ?

    can you help me ?

  8. Carlos Tremblay

    Hi,
    I am using the Feeds module to import content from a CSV file (not from a Feed) using the “File upload” fetcher. Can FIG be used in that context? I already mapped an image (FIG) field in the Node processor mappings but I don’t see the FIG config form as shown above in your tutorial.
    Thanks!

  9. Garrett Dawson

    I am trying to implement this module for the Feeds module, in order to grab multiple images via xml. This looks like the solution to my problem.

    Unfortunately, after mapping everything, etc… I don’t see this form when creating a field.
    “Feeds Image Grabber Settings:”

    Any clues would be most excellent, ’cause this looks like the hotfire.

  10. James

    Do you know if there will be FIG for Drupal 7?

  11. VasyOK

    Hi, everyone!

    Maybe i do something wrong, but i don’t saw images in imported nodes.

    FileField Paths is required for image import?

    All that i do, i show on http://drupal.org/node/1304446

  12. Clement

    Hi I posted a question at drupal but there was no reply so I am hoping I can get some help here. Whenever I delete existing nodes after the first import and I do the import again .. I will get a warning like this

    Warning message

    SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘public://feeds_images/kim-kardashian-with-bangs_244x362.jpg’ for key ‘uri’
    SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘public://feeds_images/kayte-walsh-and-kelsey-grammer-photograph_’ for key ‘uri’
    SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘public://feeds_images/kate-major-mugshot_301x379.png’ for key ‘uri’
    SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘public://feeds_images/britney-spears-management-team_517x283.jpg’ for key ‘uri’
    SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘public://feeds_images/colbertromney_478x264.jpg’ for key ‘uri’
    SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘public://feeds_images/lana-del-ray-video-games-saturday-night-li’ for key ‘uri’
    SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘public://feeds_images/laura-kaeppeler-vote-for-me_450x254.jpg’ for key ‘uri’
    SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘public://feeds_images/joe-paterno-pic_474x332.jpg’ for key ‘uri’
    SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘public://feeds_images/newt-gingrich-ad-mitt-romney-will-say-anth’ for key ‘uri’
    SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘public://feeds_images/mr-worldwide_344x471.jpg’ for key ‘uri’

    I have deleted all the existing images before I import again but I still get this error everytime.

  13. Giovanni R.

    > Now, you must go to the mapping settings for the Node Processor of the Feed Importer

    If anyone is wondering where to find the Mapper, it’s at admin/structure/feeds/feed/mapping.

    One needs to go to Structure -> Feeds Importers and click on “Override” of the “Feed” importer.

    Override will become Edit after override.

    Please consider adding this instructions in the original article.

    Greetings.
    Giovanni

    1. Claire

      Thank you, Giovanni, I was tearing my hair out trying to find this!

  14. Siva

    1.Installed feeds+Feeds XPath Parser along with feeds image grabber.
    2.Already having a content type with the following fields Title, Category, Option, Image, Type(a drop down).
    3.Since i am parsing XML i am using the module Feeds Xpath Parser and in “Select a parser” XPath XML parser – Parse XML using XPath.”
    4.Having a “Plain text” Text format and the content type “my_content_type”.
    (Now i went to my_content_type i couldn’t find anything for FIG settings)
    5.Comes to mapping “Select a source” “Select a target” – pathparser:0 Title
    xpathparser:1 Category
    xpathparser:2 Option
    xpathparser:3 Image (FIG)
    …………………………………..
    …………………………………..
    6. Context – //item, Title – title , field_category -category, field_option – option, field_image – image
    7.Here goes my XML

    ABC Electronics
    Home first column – left
    yes
    http://xyz/sites/default/files/field/image/pa.jpg

    8.It says 1 Node created.
    9.When i saw the node i can see that the picture is not present there.
    10.And still now i didn’t get any settings for FIG in the content type associated with this particular feed.

    Some one please help me where i am doing the mistake.

  15. Maurice

    The Feeds Image Grabber Settings are located at admin/config/feeds_imagegrabber. This held me up for a few hours because I didn’t see a config options on the module page.

Leave a Reply

Open Source Projects