Posted by nimzie on October 5, 2008 at 3:22am
I'm using lullabot's flickr model. What an awesome contribution. What I am hoping to be able to do is to create 5-10 of these image nodes at once. We're finding that this is a cramp to do one at a time.
How would I approach this situation?
As a stage 2, I'd like to upload a zip file to build multiple image nodes as well. The first stage would be a gigantic win though.
If anyone can offer advice on this, I'd be most appreciative.
Best,
adam
Comments
Command line node creation
I'm working on a Perl script to create nodes remotely. It's a very simple scheme, but so far it allows me to do the mechanics of copying the file to the site and creating a node. With this I've been able to create 100 nodes in a minute or so. It's a long way from being ready for public consumption, but it this sounds useful, drop me a note at tpg@hps.com
~> ./drupal-nodes.pl
drupal-nodes.pl [options] -title string -infile file
drupal-nodes.pl [options] -title string -inline 'a line of HTML'
Version 1.3
Remotely load files into a Drupal 6.x site
More details available by entering: perldoc ./drupal-nodes.pl
Image Import module
Part of Image module is Image Import.
Works a treat, one batch at a time to a staging folder on your site, tags them with a taxonomy term too.
No idea how this relates to Flickr module, which just points to files that remain hosted there. . .
Re zip files, check out http://drupal.org/project/image_import_zip
I've heard of people running into problems with PHP memory limits, no feedback during the process, YMMV.
Side note:
I came across this looking for a way to automate downloading from Flickr and uploading to my Drupal site (cross loading?) a photoset at a time in exactly the same way that Image Import does, including the term assignment.
If anyone knows of a way, please let me know: hans.drupal@gmail.com
I have implemented Image
I have implemented Image Import. It's a great idea - however it is lacking in a couple of things.
You can't tag each image. You can't put each image in a specified gallery (taxonomy terms) - and I tried to patch with:
http://drupal.org/node/232557
and couldn't get it to work. Essentially w/o thumbnails - this is a reasonably useless module to me.
Has anyone got it working and can supply the module patched?
Working in a windows env (xampp), I haven't figured out how to automatically work patches .. and when I did implement it, it didn't work...
Thanks for any help.
Cheers,
Adam
It's not a Swiss Army knife
Useless is a bit strong - I find it better to use combinations of specialized tools, rather than trying to find/create ones that try to do too much.
Image Import just automates the creation of Image nodes and IMO does it well.
Here's my workflow, might be helpful. I set up a vocabulary for sets of photos, and either use a "!staging" one that later gets emptied, used for once-offs and small sets I won't need to keep together. For large photo sets that will need to be referenced as a group later, I create a new term. All the nodes get a tag from this vocab at import time - note I'm not doing any individual tagging, so no need for individual tagging nor thumbnails.
I then use Taxonomy Node Operations to bulk tag otherwise - I found this better than Taxonomy Multi Editor, but will be checking out Views Bulk Operations soon, which should handle your thumbnails issues. These allows you to selectively assign the images to various terms, including (perhaps just a selected subset of the full photo set) a given Gallery term.
Also have a look at using "imagecache 4 image" rather than Image module's preset derivatives, more flexibility.
Hope this helps. . .
hans :
hans : http://drupal.org/project/flickr
Import/download to local?
> looking for a way to automate downloading from Flickr and uploading to my Drupal site (cross loading?) a photoset at a time in exactly the same way that Image Import does, including the term assignment.
If the flickr module facilitates any of this, please let me know. I haven't tried it, but from my initial research looks like it just lets you set up link references to your photoset hosted on flickr.
Basically I want to use Flickr as my storage/management tool in my own workflow" behind the scenes", but actually host the images locally on my Drupal site as usual.