Closed (duplicate)
Project:
Image
Version:
5.x-2.x-dev
Component:
image.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
25 Sep 2007 at 00:47 UTC
Updated:
13 May 2009 at 15:30 UTC
For some purposes, having
<img src="/path/to/image" ...etc />
inserted when an image is inserted works just fine. However if the contents of the post is sent else where (Live Journal Cross-Poster in my case) having the full url inserted is handy:
<img src="http://my.server.com/path/to/image ..etc />
Additionally being able to specify a different host for the image eg
<img src="http://my.lighttpd.server.com/path/to/image ..etc />
may be useful.
Comments
Comment #1
sunAbsolute url support basically clashes with multi-site and multi-theme support in Image Assist. Based on this issue, I'm also afraid that images might not show up in RSS feeds, since we removed the host part from all output images in the latest development snapshot.
There also seem to be issues with private files support. However, that shouldn't be part of this issue.
What do you mean with ? Did you cross-post a content manually or was it syndicated to Live Journal?
Defining an alternate host name for inline images is definitely out of scope for a contrib module like Image Assist. This would have to be solidly supported by Drupal core, so any contrib module was able to rely on it.
Comment #2
zoo33 commentedI have one client who's using inline images heavily in rss feeds. So I for one would like to have the option to use the full url. But I guess we should map the way Image assist handles this to the way the Image module does it? Maybe such an option should be added to Image and then have Image assist respect that setting?
Comment #3
sunI just had a look at rss feed generation in node.module. A site's base url is output into the feed, so I guess that there shouldn't be any issues with feeds (in fact there should be less issues with feeds, because image urls are no more hard coded in contents).
Now I'm a bit stuck, because I don't understand the whole point of this issue anymore.
Comment #4
zoo33 commentedMaybe it's a non-issue. Someone should check a relevant feed in www.newshutch.com for example (an online rss reader) and see if images show.
Comment #5
sunMarking as duplicate of http://drupal.org/node/176196
Comment #6
charles_elwood commentedI guess what we have his is a conflict between correct behavior and not breaking things. There is a module that reposts nodes onto LiveJournal ( http://drupal.org/project/ljxp ) that gets broken by not having absolute URLs.
It is my understanding that whenever possible an absolute URL should be used as it helps caching behavior. If this is a conflict of interest between the multi site module and LJXP then fair enough, but it's my understanding that the best practice is to output absolute URLs. Of course if you can optionally prepend a different host (say images.example.com rather than example.com) then there are interesting possibilities.
Comment #7
sunBetter title.
I am tempted to mark this won't fix, since this option would not be of any use for regular sites. You would
Furthermore, Image Assist is not involved in creation and storage of (image) files. It's the Image module (which in turn relies on Drupal's file API). Moving to Image queue for now.
Comment #8
sunMarking as duplicate of #176196: Use absolute paths and file_create_url() for private files
Comment #9
amitguptaadmin commentedHi sus,
That's good,
You are using a good environment.
But can you suggest me a solution.
Mine is also a large project.
My environment is solaris.
I am having the drupal, php, apache in two web server system in production environment (for load balancing).
If one system fails the other will be active.
I am having two database servers for database clustering.
The load balancer will forward the request to my webservers, webserber will be connnected to the database server
My question is that how i am going to share images between two servers.
I cannot have on more server, i mean one more system.
If I implement the your system, i have to have wo more NFS servers, where i have to store my data and site which will be fetched from my two webservers.
Can I implement the FRP service in my environment, so that if I submit image form from one server then it will store the copy of the image to other server as well, whether the image in created or modified.
Please suggest........
ALL of you Guys, u can also suggest me the solutions
Comment #10
amitguptaadmin commentedHi all,
can you suggest me a solution.
Mine is also a large project.
My environment is solaris.
I am having the drupal, php, apache in two web server system in production environment (for load balancing).
If one system fails the other will be active.
I am having two database servers for database clustering.
The load balancer will forward the request to my webservers, webserber will be connnected to the database server
My question is that how i am going to share images between two servers.
I cannot have on more server, i mean one more system.
Can I implement the FRP service in my environment, so that if I submit image form from one server then it will store the copy of the image to other server as well, whether the image in created or modified.
Please suggest........
ALL of you Guys, please suggest me the solutions
Comment #11
amitguptaadmin commentedHi sus,
That's good,
You are using a good environment.
But can you suggest me a solution.
Mine is also a large project.
My environment is solaris.
I am having the drupal, php, apache in two web server system in production environment (for load balancing).
If one system fails the other will be active.
I am having two database servers for database clustering.
The load balancer will forward the request to my webservers, webserber will be connnected to the database server
My question is that how i am going to share images between two servers.
I cannot have on more server, i mean one more system.
If I implement the your system, i have to have wo more NFS servers, where i have to store my data and site which will be fetched from my two webservers.
Can I implement the FRP service in my environment, so that if I submit image form from one server then it will store the copy of the image to other server as well, whether the image in created or modified.
Please suggest........
ALL of you Guys, u can also suggest me the solutions