GNOME Bugzilla – Bug 301726
"Create Web Album" does not use relative paths for images
Last modified: 2005-12-24 13:53:14 UTC
Distribution/Version: Ubuntu - Select some images - Go to Tools->Create Web Album - Create an album - Open the index file in you browser - Select an image to open the detail view of that image - Click again on that image to view the image alone - The url of that image is not relative, and therefore, when you upload the directory with your web album to your web server, that image will not show up.
Created attachment 45596 [details] [review] fix a bug preventing correct relative path calculations Without this fix, get_path_relative_to_dir(filename, destdir) is called with filename == "/xxx/yyy/..." and destdir == "file:///xxx/zzz/...", preventing a correct relative path calculation. The fix relies on the assumption that "filename" in catalog-web-exporter.c: static ImageData * image_data_new (const char *filename) never starts with "file://". Is it correct? Christophe
fixed in current CVS, thanks.