I'm looking for a module that defines a node, that, given a URL, extracts and uploads the main image at that URL into its imagefield. Essentially FeedAPI Imagegrabber but with a user specified URL rather than one parsed from a feed.

Do you have any intentions or interest in breaking that bit of code out and wrapping it in a separate module?

Comments

mkinnan’s picture

I believe this module is 'kind of' what you are looking for. However, you have to give it the link to the image instead of automatically finding the images like what Digg does:

http://drupal.org/project/remote_file

Although, it has been in dev state since it's first release. I have used it and have had no problems.

eatloaf’s picture

Thanks, I noticed that one, but it's actually all of the non-trivial image-selection heuristic that I would like to leverage. Since it's downstream from the feed it seems like it would be a simple and very valuable abstraction if it were separated from the URL input.

I'd like to eventually make a bookmarklet that users would use to create an image node and auto-harvesting the image is required for that functionality. ( afaik )

publicmind’s picture

Assigned: Unassigned » publicmind
Status: Active » Postponed

Right now, I am trying to improve FeedAPI Imagegrabber, rather than involving myself into several projects. Anyway, I will look into the suggestion and if possible will try to help you out.

JFYI, I would like to tell you that when I started with imagegrabber, the feature you are requesting was the first thing I did. (i.e. given a URL, convert the image into a node). So, if I get some time, I will create an informal module and send it to you.

Regards,

eatloaf’s picture

Thanks.

I was able to mash up remote file together with imagegrabber to get the desired functionality, And I was able to do so by using feedapi_imagegrabber_select_image without modification. I'm not sure what you would need to do to expose that function and its dependents to other modules, ( put it in an include? ) but that's all that would be necessary to allow others to leverage that code.

hamburgers’s picture

I'm curious how you did this. Did you have to change something in the remote file code? I'm going to have another look at the code tonight to see if I can figure out what you did.

publicmind’s picture

Status: Postponed » Closed (won't fix)

Out of scope for the current project.

Thanks

lildragon’s picture

hi, is there any module doing this currently? thanks.