Skip to content

(Backport) Issue #145: Export paths with PSD files

Alx Sa requested to merge alxsa-backport-export-psd-paths into gimp-2-10

A backport of !748 (merged), porting the TIFF PSD paths export function to the PSD plug-in. The code is nearly identical except for the use of FILE instead of GOutputStream and a few minor 2.99 -> 2.10 API changes. The output was re-tested in Photoshop to verify it still worked in the backport. The original merge request text posted below for reference:

"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: image"

Merge request reports