{"action":"closed","issue":{"url":"https://api.github.com/repos/kyamagu/psd-tools2/issues/43","repository_url":"https://api.github.com/repos/kyamagu/psd-tools2","labels_url":"https://api.github.com/repos/kyamagu/psd-tools2/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/kyamagu/psd-tools2/issues/43/comments","events_url":"https://api.github.com/repos/kyamagu/psd-tools2/issues/43/events","html_url":"https://github.com/kyamagu/psd-tools2/issues/43","id":334136674,"node_id":"MDU6SXNzdWUzMzQxMzY2NzQ=","number":43,"title":"as_PIL() layer issue","user":{"login":"andrey-hider","id":30869869,"node_id":"MDQ6VXNlcjMwODY5ODY5","avatar_url":"https://avatars2.githubusercontent.com/u/30869869?v=4","gravatar_id":"","url":"https://api.github.com/users/andrey-hider","html_url":"https://github.com/andrey-hider","followers_url":"https://api.github.com/users/andrey-hider/followers","following_url":"https://api.github.com/users/andrey-hider/following{/other_user}","gists_url":"https://api.github.com/users/andrey-hider/gists{/gist_id}","starred_url":"https://api.github.com/users/andrey-hider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrey-hider/subscriptions","organizations_url":"https://api.github.com/users/andrey-hider/orgs","repos_url":"https://api.github.com/users/andrey-hider/repos","events_url":"https://api.github.com/users/andrey-hider/events{/privacy}","received_events_url":"https://api.github.com/users/andrey-hider/received_events","type":"User","site_admin":false},"labels":[{"id":585362353,"node_id":"MDU6TGFiZWw1ODUzNjIzNTM=","url":"https://api.github.com/repos/kyamagu/psd-tools2/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-20T15:39:12Z","updated_at":"2018-10-12T07:52:21Z","closed_at":"2018-10-12T07:52:21Z","author_association":"NONE","body":"I tried to generate thumbnails for each psd layer and for overall psd using Pillow 5.1.0.\r\nI see that for some reasons, for layers were ignored 'effects'.\r\nExample of code:\r\n```\r\n# for overall psd\r\nlayer_image = psd.as_PIL()\r\nlayer_image.save('Rabbit-Example-Effects-Shadow-And-Color-Overlay.psd_overall.png')\r\n\r\n# for psd layers\r\nfor layer in psd.layers:\r\n  layer_image = layer.as_PIL()\r\n  layer_image.save('Rabbit-Example-Effects-Shadow-And-Color-Overlay.psd_' + layer.name + '.png')\r\n\r\n```\r\n\r\nFor layers I got next images:\r\n1) File Rabbit-Example-Effects-Shadow-And-Color-Overlay.psd_Backgound.png:\r\n![rabbit-example-effects-shadow-and-color-overlay psd_backgound](https://user-images.githubusercontent.com/30869869/41668521-cef30f7a-74af-11e8-89c8-b6ee98e1d19d.png)\r\n2) File Rabbit-Example-Effects-Shadow-And-Color-Overlay.psd_Original.png:\r\n![rabbit-example-effects-shadow-and-color-overlay psd_original](https://user-images.githubusercontent.com/30869869/41668522-cf0d1adc-74af-11e8-8910-94ef3c47968c.png)\r\n3) File Rabbit-Example-Effects-Shadow-And-Color-Overlay.psd_Shadow.png:\r\n![rabbit-example-effects-shadow-and-color-overlay psd_shadow](https://user-images.githubusercontent.com/30869869/41668523-cf2aef12-74af-11e8-802f-1cb33d7f057a.png)\r\n\r\nFor overall image I have result with 'effects', file Rabbit-Example-Effects-Shadow-And-Color-Overlay.psd_overall.png:\r\n![rabbit-example-effects-shadow-and-color-overlay psd_overall](https://user-images.githubusercontent.com/30869869/41668576-eb47366a-74af-11e8-9460-d37f0263e260.png)\r\n\r\n**Do you have idea how can apply effects to layers?** Because I see this information inside layers:\r\n```\r\n<pixel: 'Shadow', size=713x834, x=144, y=0, effects=[<dropshadow>]>\r\n<pixel: 'Backgound', size=1000x867, x=0, y=0, effects=[<coloroverlay>]>\r\n```\r\n\r\nAdded all my examples in zip file: \r\n[as_PIL_layer_issue.zip](https://github.com/kyamagu/psd-tools2/files/2120053/as_PIL_layer_issue.zip)\r\n"}}
{"actor":{"display_login":"kyamagu"}}