Closed (fixed)
Project:
Taxonomy Image
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
8 Sep 2008 at 19:26 UTC
Updated:
4 Mar 2009 at 14:50 UTC
How can i add a link image field instead of the upload image field?
Comments
Comment #1
nancydruI don't understand what you mean by "link image field" and "upload image field".
Comment #2
chasz commentedinstead of uploading to drupal, can we have a field that displays an image from URL ?
Comment #3
nancydruThis is an interesting idea. Technically the only real difficulty I can imagine would be in the UI and the update code that would be needed.
Comment #4
chasz commentedif you use an "if" clause to detect which of the fields is populated, you can pass the URL to the image Tag ?
Comment #5
nancydru"which of the fields"? There is only one column in the table for the path. BTW it is limited to 255 characters as well, and a URL can be much, much larger than that. To do this right, one should check to see if the link actually works before just accepting it. And, then, of course, I don't like the way the database table is constructed and this change is a good excuse to fix it. Finally, I have to decide if this is an add-on or part of the core module (I prefer an add-on).
If you want to take a shot at it, feel free to submit a patch.
Comment #6
nancydruComment #7
nancydruChasz, I have actually started on this. I have discovered that ImageCache cannot handle resizing an external image, but TI native resizing can.
Comment #8
chasz commentedvery cool thanks alot
there snippets using php that can resize an image using GD2, rather resizing through html tag
Comment #9
nancydruThere is also an Image Resize module. However, for right now, I'm okay with just using height and width in the HTML.
Comment #10
nancydruAnother thing I have thought of is to just copy the external image to the current site, then it's no longer an external image and all the normal stuff works. This also has the benefit of not linking to the source site, which is often forbidden by that site's owner.
Comment #11
nancydruFix committed to 6.x only.
Comment #12
chasz commentedthat option is nice to have, but there are plenty of free image hosting site we can use
Comment #13
nancydruWell, you have this ability now.