This thread over at the migrate module discusses importing images into existing nodes:

http://drupal.org/node/528726

I need a way to import and map images programmatically to existing nodes. In my case I have a DB table that relates the image names to NID. Alternatively I could just label the images [nid]_1.png, [nid]_2.png, etc.

The goal is to mass import images to existing nodes with imagefield, with several images per node perhaps.

It would be great if this capability were part of the migrate module which already handles similar kinds of mapping tables.

Comments

druplicate’s picture

Note that the migrate module does NOT currently import data into existing nodes. It is an outstanding feature request and to-do item prior to official release - this module is still in beta.

If you are migrating many data fields from another system, or collection of CSV files, then you could use the migrate module to create the new nodes and insert the related images at the same time, if it had the hooks for it. Seems like the migrate module could use the code from this project to do it.

Here's the feature request: http://drupal.org/node/429306

wulff’s picture

Status: Active » Closed (duplicate)
wulff’s picture

Title: Map multiple images to single existing node » Map imported images existing nodes
Status: Closed (duplicate) » Active
wulff’s picture

Title: Map imported images existing nodes » Map imported images to existing nodes

...and fixing the title.

wulff’s picture

From #363076: Import MANY Images into ONE Imagefield:

[add] support for existing nodes that have already imagefield images uploaded with a nid field to add those nodes, validating if selected imagefield is there, if not prompting for a new nid with appropriate imagefield.

wulff’s picture

Version: 6.x-1.4-beta1 » 6.x-1.x-dev
Assigned: Unassigned » wulff
wulff’s picture

Priority: Normal » Minor
achton’s picture

This would be a cool feature for imagefield_import. Subscribing.

vordude’s picture

Status: Active » Closed (won't fix)

At this time, It's outside my scope as a feature to add.