News for hackers. Stuff that matters.
Re:Fun Photoshop File Format Facts by IvanK_net on Thursday March 03, 2016 @12:28PM (#11218342)
BTW. I have spent 3 years studying PSD format while making http://www.photopea.com

True fun facts are, that Adobe specification http://www.adobe.com/devnet-apps/photoshop/fileformatashtml/ is very incomplete and that Adobe is not going to make some data open https://forums.adobe.com/thread/1524517 .

You can ask me questions, if you want :)

Re:Fun Photoshop File Format Facts by agumonkey on Thursday March 03, 2016 @12:47PM (#11218484)
reminds me of the CCC PDF talk https://www.youtube.com/watch?v=l6eaiBIQH8k

lots of .. surprises.

Re:Fun Photoshop File Format Facts by IvanK_net on Friday March 04, 2016 @03:06PM (#11226521)
PDFs can be inserted into PSD file as a smart object. So we will need to add PDF support into Photopea in the future. Luckily, there already exists pdf.js https://github.com/mozilla/pdf.js/ :)
Re:Fun Photoshop File Format Facts by santa_boy on Thursday March 03, 2016 @09:43PM (#11221722)
@IvanK_net ... Photoshop is so developer unfriendly ... but now by exposing generators, it seems to be improving a bit (like shown here https://www.youtube.com/watch?v=wHqgUvw5mno)

I need to a super simple task of replacing the image in a Smart Object without having to go through the entire UI thing. Any idea if such a thing is possible?

Re:Fun Photoshop File Format Facts by IvanK_net on Friday March 04, 2016 @04:47AM (#11222860)
I don't know if it is possible in Photoshop, but Photopea has a very good support of Smart Objects since the last release. Such thing would take me like extra 15 lines of code.

Do you need to edit your own PSDs, or you want it to be done automatically in your app?

Re:Fun Photoshop File Format Facts by santa_boy on Friday March 04, 2016 @04:56AM (#11222880)
@IvaK_net: The use case is as follows. I have standard PSDs with smart objects for various screen sizes.

I want to show various screens on the same template. Currently, I take the screenshot and replace the images one by one.

Ideally, I would like to issue a command from my terminal to use the screenshots (which I generate from another tool) in a folder and pop them into the smartobject and export the output to an output folder.

Re:Fun Photoshop File Format Facts by IvanK_net on Friday March 04, 2016 @05:26AM (#11222928)
I am still not sure if I understand what you need.

If you have a Smart Object, which occurs multiple times in your PSD, you can double-click it, put all your screenshots inside it and save it. Then you can simply switch the visibility of layers inside a smart object.

Using Photopea would require running it in a browser window, it would be hard to connect it with your terminal.

Re:Fun Photoshop File Format Facts by santa_boy on Thursday March 03, 2016 @09:49PM (#11221749)
Wow! What a cool site [Photopea](http://www.photopea.com/) is!
Re:Fun Photoshop File Format Facts by robbrulinski on Friday March 04, 2016 @09:57AM (#11224099)
Does Photopea support automated scripts? Thank you!
Re:Fun Photoshop File Format Facts by IvanK_net on Friday March 04, 2016 @03:03PM (#11226504)
Hi, not yet. But we definitely want to add some scripting in the future.