Web page Create fails whith spaces in path

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: XnTriq, xnview

Post Reply
ss02ss02
Posts: 3
Joined: Thu Aug 11, 2005 5:43 pm

Web page Create fails whith spaces in path

Post by ss02ss02 » Thu Aug 25, 2005 5:31 pm

Hi,

I'm using Web page Create unchecking the "Copy source images to output folder" and specifying an Output directory that has spaces in it, eg "C:\Documents and Settings\ss02ss02\My Documents\My Pictures\tst1\" as a template I take "_Default - Frame". Hit create and so far so good the web pages get created....

When I open the index page, e.g. "C:\Documents and Settings\ss02ss02\My Documents\My Pictures\tst1\index.html" in Internet Explorer the thumbnails show, but the original pictures show the broken picture icon :!: Checking the pictures properties IE reports "file:///C|/Documents%2520and%2520Settings/ss02ss02/My%2520Documents/My%2520Pictures/E510%2520originals/DSCF0029.JPG".

It is the %2520 of course that is the problem - it should be %20. Checking the "picture name".html file shows that the (correct format of) img src="file://C|/Documents%20and%20Settings/ss02ss02/My%20Documents/My%20Pictures/E510%20originals/DSCF0029.JPG". It does not have the %25 so for some reason IE is translating the % to %25 :-(

The good news is that Firefox handles this just fine and displays the original pictures :P Problem of course is that I can't force everyone to use Firefox.

Can this be fixed and made to work using IE, am I doing something wrong, is this a :bug: ?

This is under Win2k sp04 + all fixes and IE version 6.0.2800 and XnView 1.8.1.

Thanks, JDH

User avatar
xnview
Author of XnView
Posts: 31492
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Web page Create fails whith spaces in path

Post by xnview » Mon Aug 29, 2005 3:31 pm

ss02ss02 wrote:Hi,

I'm using Web page Create unchecking the "Copy source images to output folder" and specifying an Output directory that has spaces in it, eg "C:\Documents and Settings\ss02ss02\My Documents\My Pictures\tst1" as a template I take "_Default - Frame". Hit create and so far so good the web pages get created....

When I open the index page, e.g. "C:\Documents and Settings\ss02ss02\My Documents\My Pictures\tst1\index.html" in Internet Explorer the thumbnails show, but the original pictures show the broken picture icon :!: Checking the pictures properties IE reports "file:///C|/Documents%2520and%2520Settings/ss02ss02/My%2520Documents/My%2520Pictures/E510%2520originals/DSCF0029.JPG".

It is the %2520 of course that is the problem - it should be %20. Checking the "picture name".html file shows that the (correct format of) img src="file://C|/Documents%20and%20Settings/ss02ss02/My%20Documents/My%20Pictures/E510%20originals/DSCF0029.JPG". It does not have the %25 so for some reason IE is translating the % to %25 :-(

The good news is that Firefox handles this just fine and displays the original pictures :P Problem of course is that I can't force everyone to use Firefox.

Can this be fixed and made to work using IE, am I doing something wrong, is this a :bug: ?

This is under Win2k sp04 + all fixes and IE version 6.0.2800 and XnView 1.8.1.
%20 is not a standard??
Pierre.

User avatar
helmut
Posts: 8153
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Post by helmut » Mon Aug 29, 2005 4:15 pm

I've just tried this out and could reproduce your problem. I don't have the "%2520" encoding for the spaces (which would be wrong), but the local UN link is not encoded properly.

Generated by XnView:

Code: Select all

...
<img src="file://D|/Projekt_XnView/Test-Bilder/Large%20images/Copy%20(10)%20of%20Copy%20(6)%20of%20Panorama1.jpg" alt="Copy (10) of Copy (6) of Panorama1.jpg" width="2272" height="3408">
...
I think that instead of the "file://D|..." it should say "file:///D:/...". (three slashes and colon).

Can some HTML experts confirm?
Last edited by helmut on Mon Aug 29, 2005 4:55 pm, edited 1 time in total.

User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

Right---

Post by Clo » Mon Aug 29, 2005 4:44 pm

• Hi !
I think that instead of the "file://D|..." it should say "file:///D:/...".
- Although I'm not an expert, I can say that "file:///D:/..." is the right usual syntax which works in HTML for a path to a local file…
I never saw a vertical bar “ | ” (pipe) here ! :P

:mrgreen: G
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice

Post Reply