When saving a project (as svg) changed upon reopening

Asked by Joe Duncan-Duggal on 2017-11-02

I have recently started using my project, which has so far consisted of tracing features of something i scanned in. after saving however (in svg format), when i reopen it everything is shifted in various orientations, the images i scanned are cropped slightly differently, and strangest of all, part of the images scanned in have been pulled out of the image and moved around, almost like a separate layer, however this is not the case. as a result, the file is now completely unusable.

The things i have drawn in inkscape, tracing over the scanned images, appear unaffected.

Please someone help me with how i can a) stop this happening in the future, and b) rescue the file i have so its back in its original state.

many thanks in advance

Question information

Language:
English Edit question
Status:
Expired
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Last query:
2017-11-02
Last reply:
2017-11-18
Hachmann (marenhachmann) said : #1

Can you please:

1. provide the file
2. tell us which Inkscape version you are using (Help > About)
3. provide a screenshot of how it looked correctly
4. provide a screenshot of how it looked after re-opening
5. explain how you save to svg format (Inkscape SVG? Plain SVG? SVGZ? Optimized SVG?...)
6. tell us which operating system / version you are using
7. tell us which installation way you selected (e.g. ppa, homebrew, 7z, exe, msi,... 32bit or 64bit?)
8. tell us how exactly the file was created (import pdf? import raster image?...)

For file uploads, please use a file hosting provider and post the links. This website does not offer support for attachments.

Hachmann (marenhachmann) said : #2

And please especially look into the file type field of your save dialog, I suspect you may be saving to a different file format than you think you are.

Joe Duncan-Duggal (joedd1) said : #3

1. link to file: https://drive.google.com/open?id=0B-7WL_Irx1tUV1oxWllDcEppNFk
2. Inkscape version 0.91
3. Unable to obtain a screenshot of how it looked correctly unfortunately, but all parts of image were cropped differently and tiled together properly, without floating bits of them surrounding.
4. link to screenshots of current state:
 https://drive.google.com/open?id=0B-7WL_Irx1tUSVhfZUN3VEM2aUE
https://drive.google.com/open?id=0B-7WL_Irx1tUSW1iZE5LNHJlWmM
5. Saving as inkscape SVG
6. windows operating system
7. unsure as its on a department computer, however i experience the same issue on my laptop which is 64 bit installation.
8. i believe the images were imported using import pdf

Have checked file type field in save dialog, and is inkscape svg as expected, however i would not be surprised if this is a user error somehow, as other profiles on the department computer have reported no issues using inkscape.

Hachmann (marenhachmann) said : #4

Thank you, Joe.

So, do I get it correctly by assuming that it happened like this:

- someone opened Inkscape 0.91 (or 0.48.5, see below) and imported a pdf.
- then worked on it a bit, applying masks and possibly resizing the document
- then saved as Inkscape SVG
- then the file was closed
- then you reopened it
- then things looked off (moved around)

?

The file you have there now is definitely jumbled, it looks identically (wrong) when viewed in another program (i.e. Firefox web browser). So it's not Inkscape displaying things wrong, it's that something went wrong when saving the file or before, or even after that.

One thing I notice is that the file has been created with Inkscape 0.48.5.

One possible reason for the issue could be that here have been issues with transform attributes for layers, which affected masking of objects (and some other things). Those transform attributes were added when the size of the document has been changed. So, a page size change triggers that (possibly responsible) problem.

That bug is fixed in Inkscape 0.92 (which doesn't mean that your file looks correct in 0.92.2, only that files that are created with it now will not break if they contain masks on different layers and have been resized). See https://bugs.launchpad.net/inkscape/+bug/569281

Is it only this file that is affected, or do you have this problem with other files , too?

If you want to be 100% sure that the issue is fixed in 0.92, can you either:
give us a step by step instruction, with all resources needed, to reproduce the problem you experience. Then we can test in 0.91 and 0.92 and see if a) there's a difference and b) if it works correctly in 0.92.

If you rather want to try if you can reproduce the problem yourself, you can find the current version here:
https://inkscape.org/releases

(and if you later want to downgrade again, 0.91 is available here:
https://inkscape.org/en/release/0.91/?latest=1 - 0.48.5 is available, too, in case you want to test with the version where that file was created...)

When you import a pdf, it's a good practice to remove everything that isn't needed for the drawing, i.e. get rid of superfluous masks, clips and groups. pdf files often contain lots and lots of bloat (after imported into Inkscape), which makes editing hard and increases file size unnecessarily.

So, I think we can't fix the file you have there, but we might be able to prevent the issue from happening again.

Launchpad Janitor (janitor) said : #5

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.