PSD: Alpha is buggy #39652

Closed
opened 2014-04-09 10:17:09 +02:00 by paul geraskin · 23 comments
Member
Hi guys. Alpha channel of PSD is buggy. PNG is ok. http://i.imgur.com/dzww9gP.png https://dl.dropboxusercontent.com/u/26887202/blender/leaf_01.zip
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

Added subscriber: @PaulGeraskin

Added subscriber: @PaulGeraskin

Added subscribers: @dfelinto, @Sergey

Added subscribers: @dfelinto, @Sergey

We've got a bug report template for a reason. Please follow the guideline and provide operation system you're using, computer spec and exact version of blender you're using.

Meanwhile poking @dfelinto if he have

We've got a bug report template for a reason. Please follow the guideline and provide operation system you're using, computer spec and exact version of blender you're using. Meanwhile poking @dfelinto if he have
Author
Member

OS - Linux 64bit, nVidia GTX 560
Blender - 1 week ago build (hash - b64bdb2).

OS - Linux 64bit, nVidia GTX 560 Blender - 1 week ago build (hash - b64bdb2).

Is it own build or build from buildbot.

Is it own build or build from buildbot.

It was meant to be a question :)

It was meant to be a question :)
Author
Member

Yes it was buildbot :)
Just a nightly build.

Yes it was buildbot :) Just a nightly build.

Actually seems to be some sort of bug in OIIO upstream. I remember Dalai had some issues with the alpha in the past and had some workaround.

Actually seems to be some sort of bug in OIIO upstream. I remember Dalai had some issues with the alpha in the past and had some workaround.
Dalai Felinto was assigned by Sergey Sharybin 2014-04-09 12:46:17 +02:00

The bug I patched was incorporated to OpenImageIO 1.2.3
@Sergey do you know which OIIO we are using for Linux?

The bug I patched was incorporated to OpenImageIO 1.2.3 @Sergey do you know which OIIO we are using for Linux?

@dfelinto, that's 1.3.9. And as i've mentioned above, current upstream also does have the issue. Try building latest OIIO git and open the image in iv. You'll see the same exact issue.

@dfelinto, that's 1.3.9. And as i've mentioned above, current upstream also does have the issue. Try building latest OIIO git and open the image in `iv`. You'll see the same exact issue.

ok, just opened the file here in Photoshop and saved it with "Maximum Compatibility" and everything works.
Where did you generate this PSD file?

ok, just opened the file here in Photoshop and saved it with "Maximum Compatibility" and everything works. Where did you generate this PSD file?
Author
Member

i created this file in Krita.

Gimp, and Gwenview open this file without any issues.

Here is Gwenview for example http://i.imgur.com/tY7AcOk.png

i created this file in Krita. Gimp, and Gwenview open this file without any issues. Here is Gwenview for example http://i.imgur.com/tY7AcOk.png

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

This is an upstream problem and known issue. Unfortunately Blender currently only fully supports Photoshop files with Maximum compatibility.

Krita is extending their OpenEXR functionality, so in the future it may work better for you:
https://twitter.com/Krita_Painting/status/454230946989236224

This is an upstream problem and known issue. Unfortunately Blender currently only fully supports Photoshop files with Maximum compatibility. Krita is extending their OpenEXR functionality, so in the future it may work better for you: https://twitter.com/Krita_Painting/status/454230946989236224
Author
Member

This is simple 8bit image. There is nothing special. Only some layers. All other apps show this PSD file ok. Only blender shows it buggy.

I wish you could investigate the problem in blender.

I also can say about 10 painting apps which generate psd files (sai, painter, gimp etc). I guess many people use them. So you should not stick only on Photoshop even if PSD its native format.

This is simple 8bit image. There is nothing special. Only some layers. All other apps show this PSD file ok. Only blender shows it buggy. I wish you could investigate the problem in blender. I also can say about 10 painting apps which generate psd files (sai, painter, gimp etc). I guess many people use them. So you should not stick only on Photoshop even if PSD its native format.

Alright two questions:
(1) does leaf_02.psd open fine in krita?
(2) if you save this 8-bit image from krita with no alpha, does it look fine in Blender?

Alright two questions: (1) does leaf_02.psd open fine in krita? (2) if you save this 8-bit image from krita with no alpha, does it look fine in Blender?
Author
Member

leaf_02 opens in krita without issues http://i.imgur.com/Fbfffs8.png

Without alpha psd looks fully ok! http://i.imgur.com/C3Ryp0W.png
I just added blue background.
Also semi-transparent background looks like this http://i.imgur.com/4LzDJfm.png

leaf_02 opens in krita without issues http://i.imgur.com/Fbfffs8.png Without alpha psd looks fully ok! http://i.imgur.com/C3Ryp0W.png I just added blue background. Also semi-transparent background looks like this http://i.imgur.com/4LzDJfm.png

Thanks, two more requests to help figure out if the problem is in oiio or krita:

  1. If you flatten down your leaf_01.psd before saving as PSD, does it work fine in Blender? or same issue?
  2. If the flatten down psd also presents an issue, can you attach it in this thread? And if so, can you open the attached grid.png and save via krita so I can see what's going wrong? If only the layered file presents issues you can open grid.psd and save as psd instead. I would do it myself but Krita is not officially supported in OSX.

grid.png - F84448
grid.psd - F84449

Thanks, two more requests to help figure out if the problem is in oiio or krita: 1) If you flatten down your leaf_01.psd before saving as PSD, does it work fine in Blender? or same issue? 2) If the flatten down psd also presents an issue, can you attach it in this thread? And if so, can you open the attached grid.png and save via krita so I can see what's going wrong? If only the layered file presents issues you can open grid.psd and save as psd instead. I would do it myself but Krita is not officially supported in OSX. grid.png - [F84448](https://archive.blender.org/developer/F84448/grid.png) grid.psd - [F84449](https://archive.blender.org/developer/F84449/grid.psd)
Author
Member

Hi.

It seems krita has a bug for a single layer. If i flattern image - there will be no alpha. https://bugs.kde.org/show_bug.cgi?id=333300
And blender will not open flattened psd. https://dl.dropboxusercontent.com/u/26887202/blender/leaf_01_flatten.psd

Ok, i saved all grid files in krita https://dl.dropboxusercontent.com/u/26887202/blender/grid_krita.zip
But grid_krita_flattern and grid_krita_png are buggy because of the bug i mentioned(single layer).

Hi. It seems krita has a bug for a single layer. If i flattern image - there will be no alpha. https://bugs.kde.org/show_bug.cgi?id=333300 And blender will not open flattened psd. https://dl.dropboxusercontent.com/u/26887202/blender/leaf_01_flatten.psd Ok, i saved all grid files in krita https://dl.dropboxusercontent.com/u/26887202/blender/grid_krita.zip But grid_krita_flattern and grid_krita_png are buggy because of the bug i mentioned(single layer).

just reported the main issue upstream (Krita) - https://bugs.kde.org/show_bug.cgi?id=333322

It's definitively not a Blender (or OIIO) issue.

For the records:

grid-krita.psd - grid-krita.psd
grid-native.psd - grid-native.psd

Ray data comparison
https://developer.blender.org/P36

just reported the main issue upstream (Krita) - https://bugs.kde.org/show_bug.cgi?id=333322 It's definitively not a Blender (or OIIO) issue. For the records: grid-krita.psd - ![grid-krita.psd](https://archive.blender.org/developer/F84523/grid-krita.psd) grid-native.psd - ![grid-native.psd](https://archive.blender.org/developer/F84524/grid-native.psd) Ray data comparison https://developer.blender.org/P36
Author
Member

Oo! Cool that you found the issue! Thanks a lot!
I hope Krita guys will fix it. As Gooseberry guys can use krita too...

But it's strange that other apps open krita's PSD ok.

Oo! Cool that you found the issue! Thanks a lot! I hope Krita guys will fix it. As Gooseberry guys can use krita too... But it's strange that other apps open krita's PSD ok.

But it's strange that other apps open krita's PSD ok.

That's not entirely true. Apps that rely on the individual layers, yes, but anything that relies in the composed image will not. You can see in your OS, look at the thumbnail preview of both grid-krita.psd and grid-native.psd. In OSX the difference is visible.

> But it's strange that other apps open krita's PSD ok. That's not entirely true. Apps that rely on the individual layers, yes, but anything that relies in the composed image will not. You can see in your OS, look at the thumbnail preview of both grid-krita.psd and grid-native.psd. In OSX the difference is visible.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#39652
No description provided.