Page MenuHome

Brush Custom Icons do not work with PSD files
Closed, DuplicatePublic

Description

System Information
Operating system: Windows-10-10.0.18362 64 Bits
Graphics card: GeForce GTX 970/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 431.60

Blender Version
Broken: version: 2.81 (sub 15), branch: master, commit date: 2019-10-18 14:41, hash: rB970d7ed860f1
Worked: (optional)

Short description of error
PSD files do not work when set as Custom Icon in brushes. Tested in sculpt mode.

Exact steps for others to reproduce the error
Set the Custom Icon to some PSD texture. It do not work

Sample PSD to test

Details

Type
Bug

Event Timeline

it also do not work with ".tif" files

Probably also related.
If you try to use mage.preview.icon_id as parameter of any UI component such label or operator you get an empty result using PSD and TIF files. Only jpg and png works. Also PNG at this case don't have transparency as it should.

Example:

for image in bpy.data.images:
            layout.label(text = image.name, icon_value=image.preview.icon_id)

There is a known limitation for PSD files that has been described on T70495.

We do not support loading PSD from from memory as happens for packed files, since that is not supported by OpenImageIO.
We could work around this by writing the memory block to a temporary file on disk and then reading that.

The problem must be related.