Issue #145: Export paths with PSD files
This patch attempts to resolve the issue noted in #145 (closed), and export paths as part of the PSD export.
The relevant code already exists in /plug-ins/file-tiff/file-tiff-save.c. This patch ports two functions from that file; save_paths ()
and its helper method double_to_psd_fixed ()
. Minimal changes were made to save_paths ()
to remove TIFF-specific information, save to GOutputStream and reduce the number of parameters required. No changes were made to double_to_psd_fixed ()
.
Paths created in GIMP can be opened and edited in Photoshop, as seen here: