I want to know if it is possible to read PSD files from C++, resize 1 specific Group programmatically, then render the result to a PNG. So far I found some code that reads and renders PSD files “as is”, here: http://www.codeproject.com/Articles/10398/Import-Adobe-Photoshop-psd-images
The problem I foresee is that just rendering a PSD as is is pretty easy, but resizing Groups programmatically would require much more effort.
2
Answers
So far, there seems to be no library to do what I want to do. Reading out the composite preview from PSD files is easy, as demonstrated in the codeproject link I posted in my question, but manipulating individual groups or layers, then rendering the composite preview again seems impossible for now.
The problem I see is that Photoshop PSD files are notoriously difficult to read… see this poor soul.
Also, the code you link to is from 2006 which pre-dates the current “Smart Objects” and real-time editing so I would doubt it will work for anything recent – though you may be fine if you only want to read some old files, or new uncomplicated ones of a specific project that doesn’t use such features.
I would suggest you export the layers from Photoshop as PNGs and then work with that. My answer here might get you started.