Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images do not load #18

Open
GoogleCodeExporter opened this issue Feb 15, 2016 · 4 comments
Open

Images do not load #18

GoogleCodeExporter opened this issue Feb 15, 2016 · 4 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Drag and drop an image onto a page
2. Save the file
3. Reopen the file
4. The image does not appear

What is the expected output? What do you see instead?
The image does not show up, whether on a network drive or local path.
Instead, I get this error (image attached)

What version of the product are you using? On what operating system?
Firefox 3.0, Pencil 1.0

Please provide any additional information below.
The Pencil file itself is sitting on a network drive.

Original issue reported on code.google.com by jordanroher on 1 Aug 2008 at 4:44

Attachments:

@GoogleCodeExporter
Copy link
Author

I read in the User Guide that rasterized images are not embedded into the file, 
but
only linked via relative path. Might be connected to this problem.

Original comment by brownsp...@gmail.com on 22 Aug 2008 at 11:14

@GoogleCodeExporter
Copy link
Author

It appears that the relative path is being calculated incorrectly...at least on 
windows.  The path in the .ep file for each image ends up being something like 
'../../../../C:/images/image.png'.  For the time being, it may be useful to 
know that 
you can manually edit the .ep file xml and replace the image paths with the 
correct 
relative path and everything will load fine.

Original comment by ascal...@gmail.com on 15 Oct 2008 at 2:32

@GoogleCodeExporter
Copy link
Author

Here was my original error text.  The only way I've been able to make it work 
is to
delete all the relative paths and have them all at the same level.

Hello,
   I'm using Pencil 1.0 build 4 on a WinXp box as a standalone installation.  I've
been doing some mock ups that use a lot of external .png files.  It was working 
great
for awhile.  I had saved and reopened several times with no problems.  Now, all 
of a
sudden, it can't seem to find/load the external images.  But there are no error
messages thrown.  Here is an example href from the .ep file.

xlink:href="../../../../C:/Program Files/pencil/pictures/solarwhirlud6.jpg"

   The strange thing is that if I change the path in the .ep file, now error messages
start appearing, but I can't seem to get the external files to appear on the 
pages. 
However, there was one way I got things working again and that was to put the 
.ep
file and the external pics in the same directory and trim everything from the
reference path:

xlink:href="BLACKBKG.JPG"

   Any thoughts?  It would be a big pain right now to localize all the references
into one directory?

      -Dan


Original comment by dcan...@gmail.com on 27 Oct 2009 at 11:30

@GoogleCodeExporter
Copy link
Author

A quick fix - replace all paths beginning with 
"../../../../C:/path/to/file.jpg" to "file://C:/path/to/file.jpg".  That way 
you avoid having to localise all references to one directory.

-Gavin

Original comment by gavinbal...@gmail.com on 26 Aug 2010 at 2:11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant