How do I transfer a saved project to another PC and open it.

MikeOates

Well-known member
Hi,

I have just been working on an image on my laptop while I was away from home. I copied the full folder to my desktop PC and tried to open the project. But the file paths are obviously different, diferent drive letter and folders etc.

It started to load ok, but then failed with an error that it could not find a file, it then aborted the open.

The laptop was running v1.7 and the desktop v1.8 RC5 if this makes any difference.

Thanks,

Mike
 
Hi Mike,

A PixInsight project consists of a .xosm file and a .data folder. For example, if you save a "MyBestImageEver" project, you'll get the following two items on the folder where you saved the project:

MyBestImageEver.xosm
MyBestImageEver.data

The .data folder is where all the project data are stored:  images, icons, processing histories, tool settings, text files, etc. The .xosm file describes your project, all the associated data and their relations.

XOSM stands for XML Object Serialization Module, and is PixInsight's project format. The XOSM format is fully relocatable. This means that you can move or copy a project to any location on your filesystem, or move it to another machine, and it will continue working without problems.

This is true for internal project data, such as open images. However, if your project contains 'hardwired' absolute file paths---for example, ImageContainer icons, or file lists in tools such as ImageIntegration, StarAlignment, BatchPreprocessing, etc---, PixInsight has no way to know where these files are (in case they still exist) if you copy or move your project to a different machine, so the items that depend on such files won't work and fail with 'no such file' messages.

There are several ways to prevent and/or fix these problems. The best way is keeping all of your PixInsight projects and data on external storage devices, which you can mount at the same point on different machines. For example, if you use Windows, you can assign the same drive letter to an external disk on two or more PCs. On UNIX and Linux, removable devices can be mounted at arbitrary locations on the filesystem, which allows for more flexible configurations.

If the above is not possible for some reason, you can always edit the XOSM file to replace nonexistent absolute file paths with valid paths. Since XOSM is plain text, it can be edited with any good code editor, such as PixInsight's Script Editor.
 
Juan,

Thank you for your detailed reply. You have given me enough info for me to look into this not happening in the future. Possibly using the same drive letter and file paths on both machines is the way to go for me.

Regards,

Mike
 
Back
Top