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

sun’s picture

Component: Miscellaneous » Code

Absolute 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 Live Journal Cross-Poster? 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.

zoo33’s picture

I 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?

sun’s picture

Status: Active » Postponed (maintainer needs more info)

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

zoo33’s picture

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

sun’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

Marking as duplicate of http://drupal.org/node/176196

charles_elwood’s picture

Status: Closed (duplicate) » Active

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

sun’s picture

Title: Option to include host address » Alternate host for image files
Project: Image Assist » Image
Version: 5.x-1.x-dev » 5.x-2.x-dev
Component: Code » image.module

Better title.
I am tempted to mark this won't fix, since this option would not be of any use for regular sites. You would

  1. either need a very enhanced file manager / API to already store image files on another server
  2. or a distributed / multi-server setup (like drupal.org)
  3. or a very fast and always current file replication service

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.

sun’s picture

Status: Active » Closed (duplicate)
amitguptaadmin’s picture

Hi 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

amitguptaadmin’s picture

Hi 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

amitguptaadmin’s picture

Hi 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