EmilDohne / PhotoshopAPI

A modern and performant C++20 read/write parser of Photoshop Files (*.psd and *.psb) with fully fledged Python bindings hosted on PyPi
https://photoshopapi.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
94 stars 9 forks source link

Add a rendering pipeline (Exporting the layer stack) #94

Open EmilDohne opened 1 month ago

EmilDohne commented 1 month ago

This feature would add a rendering pipeline that allows for the extraction of the merged image result even after we modify the layer structure. Meaning we add support for

A) Rendering of any layer via some Layer::render() function which extracts the image data for the given layer. For image layers this would be trivial but e.g. text layers would require some sort of text rendering library or for smart objects an image io library.

B) Composing of the layers based on the blend modes into a unified image buffer

As for the timing of this issue as its a rather large task I expect this to come out after I implemented support for at least basic adjustment layers and for this to be a continuous effort rather than being fully implemented in a single release. I will likely also split off into multiple subissues once I get started on this.

If there is any considerations, requests etc. please feel free to drop them below :)