Link to external image

chasz - September 8, 2008 - 19:26
Project:Taxonomy Image
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:NancyDru
Status:closed
Description

How can i add a link image field instead of the upload image field?

#1

NancyDru - September 11, 2008 - 11:17
Status:active» postponed (maintainer needs more info)

I don't understand what you mean by "link image field" and "upload image field".

#2

chasz - September 11, 2008 - 11:55

instead of uploading to drupal, can we have a field that displays an image from URL ?

#3

NancyDru - September 11, 2008 - 12:22
Title:link image field?» Link to external image
Status:postponed (maintainer needs more info)» active

This 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.

#4

chasz - September 11, 2008 - 12:33

if you use an "if" clause to detect which of the fields is populated, you can pass the URL to the image Tag ?

#5

NancyDru - September 11, 2008 - 13:12

"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.

#6

NancyDru - February 1, 2009 - 21:04
Status:active» postponed

#7

NancyDru - February 17, 2009 - 01:09

Chasz, I have actually started on this. I have discovered that ImageCache cannot handle resizing an external image, but TI native resizing can.

#8

chasz - February 17, 2009 - 11:20

very cool thanks alot

there snippets using php that can resize an image using GD2, rather resizing through html tag

#9

NancyDru - February 17, 2009 - 14:26

There is also an Image Resize module. However, for right now, I'm okay with just using height and width in the HTML.

#10

NancyDru - February 17, 2009 - 14:35
Status:postponed» postponed (maintainer needs more info)

Another 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.

#11

NancyDru - February 17, 2009 - 23:01
Assigned to:Anonymous» NancyDru
Status:postponed (maintainer needs more info)» fixed

Fix committed to 6.x only.

#12

chasz - February 18, 2009 - 04:31

that option is nice to have, but there are plenty of free image hosting site we can use

#13

NancyDru - February 18, 2009 - 14:46

Well, you have this ability now.

#14

System Message - March 4, 2009 - 14:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.