Images: relative vs. absolute
I’ve updated the img tags in my previous posts. I’ve used relativ links (i.e. \<src img="/images/..." /\>
). It looked ok in SharpReader, but, unfortunatley, not in RSS Bandit. The latter wasn’t able to locate the images. It tried to load the images relative to about:blank
. Of course that cannot work ;-)
IIRC this issue has been discussed before somewhere, but I cannot remember the place. I will have a look tomorrow at work, since I’m using SharpReader there for about 4 month. I hope I’m able to find this issue in its history.
Anyway, I’ve updated the image links to absolute.
Comments
Thomas Freudenberg
Thanks for the clarification, Torsten. I’m glad I could help you ;-)
marco p
hi. you wrote :”Anyway, I’ve updated the image links to absolute.”, but when I read your xml I read
mmmh.. absolute? they seem rather relative to me. I am asking because I have the same doubt for my site dotnet.innovactive.it, and had to pute the whole absolute link in the images. This is an annoyance since if we move the svr to another domain every link must be revritten.
I’d like to know more about your solution.
I assure you that on SR your feed shows images, as well as in RSS bandit 1.1.0.36
m.
[email protected] (To
FYI: Issue is now fixed in public release 1.1.0.34
[email protected] (To
You are right: I had a look into the code and noticed we fix only the relatives in “href” attributes, not in “src”. Will file a bug to our workspace(s) to get it fixed in the next release. Thanks for your advice.
PS: If you get .Text work without removing the absolute Url, it should work immediatly :)
Thomas Freudenberg
Well, maybe my post was a little bit misleading. In fact, here’s an example from one of my previous posting:
<img src=”/images/thoemmi.dyndns.org/TFr/16/t…” />
RSS Bandit tries to show about:blank/images/thoemmi.dyndns.org/TFr/16/t…
[email protected] (To
Here is the relevant part of your feed source post “.Text User Administration”:
…<a href=”http://thoemmi.dyndns.org/tfr/gallery/image/31.aspx”><img=””> alt=”.Text User Administration” src=”/images/thoemmi.dyndns.org/TFr/16/r…” border=”0” /></a>
Note the “/images/” in the img src attribute…
Thomas Freudenberg
Hi Marco. In fact, I did change the the images’ URL, but the .Text engine patched them again after commiting. So you don’t have to adjust the URL’s when moving.
TorstenR
Think your example is misspelled a bit. Should be <img src=”” …/> But: if you start your path with a slash “/”, they are not relative. Try leaving the slash and also the images should be displayed in Bandit.
Thomas Freudenberg
Thanks, Torsten, I’ve already downloaded it last night ;-)
Thomas Freudenberg
I see what you mean. However I entered the full path to the image (i.e. http://thoemmi.dyndns.org/images/thoemmi.dyndns.org/TFr/16/r_edit_user.JPG), but .Text skipped the first part.
Anyway, SharpReader is able to display the proper image, while RSSBandit is not. Is SharpReader more fail-safe, even if less conform to standards?
Leave a Comment
Your email address will not be published. Required fields are marked *