etherald / gwrite

Automatically exported from code.google.com/p/gwrite
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Inserted images will use full local computer paths, not relative paths #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a web page in Gwrite, and save it
2. Insert an image from the same directory as the page

What is the expected output? What do you see instead?

I would expect that the path in the <img> tag would be a relative path, 
such as "image.jpg" or "../image.jpg". Instead, Gwrite inserts the whole 
local computer path: "/home/chris/Web Sites/My Site/image.jpg". This is 
useless for putting onto the Internet.

What version of the product are you using? On what operating system?

0.2.0 on Ubuntu 10.04

Otherwise I'm very happy with Gwrite, it's an excellent program at its 
stage of development and you should be very proud of it.

Original issue reported on code.google.com by 3rdal...@gmail.com on 8 May 2010 at 1:04

GoogleCodeExporter commented 9 years ago
Please try the fresh code in hg, 
it will convert images to base64 inline,

like
{{{
<img 
src="data:image;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABmJLR0QA/
wD/AP+gvaeTAAAACXBIWXMAAAsSAAALEgHS3X78AAAAB3RJTUUH0QwNBTcshjheygAAAI1JREFUeJztl
rEJxDAMRZ8Pj3nF3QL2Ll7gUtwSLrJFBPE0SWEwDiQEErkJfpVQ8YX8CtkAC+0wFmCeJ9XUGEe89wDYu
qmFiJT6pZZ6QPMBFvLz1GupD3DOkVIeEOPI9/O+Ffob/qV+iIMQwqZZr3iF2md3cEp3cEp3sMsDHaQk5
WSKiKoDQ+NfRcPszAp0+1N+LLWchwAAAABJRU5ErkJgggAA" 
uri="file:///usr/share/pixmaps/gnome-day.png">
}}}

it works well for putting onto the Internet =)

Original comment by jhuangjiahua@gmail.com on 22 Jul 2010 at 2:02