Active
Project:
Flickr ImageField
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 Nov 2009 at 12:16 UTC
Updated:
23 Nov 2010 at 14:33 UTC
Would be nice to add an option to store images on flickr only.
Comments
Comment #1
Denys Babenko commentedI wonder if it is possible to add the feature or perhaps integrate Flickr module and Flickr ImageField so that:
a) Image upload looks to the user as if it was normal image field
b) The actual image store is flickr, e.g. images are not stored on the website
Comment #2
sirkitree commentedI'm already storing the Flickr ID (though it should probably be in its own table instead of modifying the files table) and that is basically all you need (maybe a size parameter as well) in order to run something through a flickr theme function to display it. Then it's as simple as a checkbox to determine if you display the regular file or the flickr one.
I'm unsure though if you can run that through imagecache then though, which some people may end up wanting in order to control the image's size.
Might still have to keep the image locally as well, but I'm not sure if filefield or imagefield or something else has a cron process that cleans out non-existent file entries from the files table.
Comment #3
Denys Babenko commentedThanks for quick response. I'm going to check if it's possible to adapt filefield for "remote files".
But the more I think of it the more it seems a weird idea :) Do you think people may need it?
I mean duplicating images on flickr is great, but set up flickr images for drupal imagefield... :)
Comment #4
sirkitree commentedI think it has a certain relevancy when it comes to server load. Better to pull an image off of Flickr and use their bandwidth rather than server it up from your own.
Comment #5
Denys Babenko commentedRight :) Cheap hosting on one of my projects, that's why I started thinking of how I could use flickr
Comment #6
lupus78 commentedhey,
here's a piece of code, that adds formaters for flickr_imagefiled module
It is quite basic, as it has only one option (Image form Flickr), and no size option currently. The size is hardcode, in the code (see comment).
grab this piece of code, and insert it into the end of the flickr_imagefield.module file. disable and reenable the module, clear cache, and you will find the option under the field display settings.
don't forget to change the size:
Would be nice to render all size options, but i have no time to do it currently.
Please feedback if you find it useful.
Lupus