Hi there!

I'm trying to import images form an external source into drupal. I have one imagefield per node-type and I would like to import 1 or more image into this image field.

For the bulik import of the nodes, I was able to write an import script and the generate nodes.

Now I would like to write an import script to import the images via php directly in the database. The images are saved in folders on a per node basis.

Can someone show me with a short code example, how I can import 1 or more images into the imagefield?

That would be very helpful!

Comments

HansBKK’s picture

have you looked at Imagefield Import?

brainski’s picture

I'm using drupal 6 and the latest dev version of the imagefield.

Has anyone an idea how to easily import images into cck imagefield with a short code snippet?

I need alt text and a know the node to which the image belong. The images are already saved on the webservers disc under /files

quicksketch’s picture

Status: Active » Closed (duplicate)