"Pack Image" with PSD files not working #70495

Closed
opened 2019-10-03 21:44:04 +02:00 by Simeon Conzendorf · 26 comments

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

Blender Version
Broken: version: 2.81 (sub 13), branch: master, commit date: 2019-10-03 17:34, hash: 6ac2a2061f

Short description of error
I can use a PSD file as texture. than pack it without problems. But after reload the texture is pink.

Exact steps for others to reproduce the error

  • add image as plane and choose the psd file below
  • open image editor and pack the image
  • hit save (blendfile increases in size) and reload the blendfile
  • texture is not loaded

Here's a PSD file to test:
tex.psd

And a all "in one image"... image:
packaging_bug.jpg

**System Information** Operating system: Windows-10-10.0.18362 64 Bits Graphics card: GeForce GTX 980/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 431.36 **Blender Version** Broken: version: 2.81 (sub 13), branch: master, commit date: 2019-10-03 17:34, hash: `6ac2a2061f` **Short description of error** I can use a PSD file as texture. than pack it without problems. But after reload the texture is pink. **Exact steps for others to reproduce the error** - add image as plane and choose the psd file below - open image editor and pack the image - hit save (blendfile increases in size) and reload the blendfile - > texture is not loaded Here's a PSD file to test: ![tex.psd](https://archive.blender.org/developer/F7787858/tex.psd) And a all "in one image"... image: ![packaging_bug.jpg](https://archive.blender.org/developer/F7787876/packaging_bug.jpg)

Added subscriber: @SimeonConzendorf

Added subscriber: @SimeonConzendorf

#98447 was marked as duplicate of this issue

#98447 was marked as duplicate of this issue

#80852 was marked as duplicate of this issue

#80852 was marked as duplicate of this issue

#71045 was marked as duplicate of this issue

#71045 was marked as duplicate of this issue

Added subscriber: @mano-wii

Added subscriber: @mano-wii
Philipp Oeser was assigned by Germano Cavalcante 2019-10-04 14:49:48 +02:00

This comment was removed by @mano-wii

*This comment was removed by @mano-wii*

Added subscriber: @brecht

Added subscriber: @brecht

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.

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.
Philipp Oeser removed their assignment 2019-11-06 12:13:25 +01:00
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk

Added subscriber: @vitorbalbio-3

Added subscriber: @vitorbalbio-3

Added subscribers: @vaazio, @jenkm, @Firepal

Added subscribers: @vaazio, @jenkm, @Firepal

Added subscribers: @Moko1, @pablovazquez

Added subscribers: @Moko1, @pablovazquez
Member

Added subscriber: @LazyDodo

Added subscriber: @LazyDodo
Member

In #70495#791431, @brecht wrote:
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.

Newer OIIO has support for IOProxies to allow reading/writing from other things than files (like buffers) but it is not globally supported for all formats , PSD is not among them, but looking at the changes it would it doesn't look super hard to implement and submit upstream. (their CLA prevents me from doing so though)

> In #70495#791431, @brecht wrote: > 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. Newer OIIO has support for IOProxies to allow reading/writing from other things than files (like buffers) but it is not globally supported for all formats , PSD is not among them, but looking at the changes it would it doesn't look super hard to implement and submit upstream. (their CLA prevents me from doing so though)
Member

Added subscriber: @EAW

Added subscriber: @EAW
Member

@LazyDodo I believe the PSD IOProxy changed are in the developer branch 2.4.0. They aren’t in release as they break ABI, and OIIO is careful to only break the ABI in the yearly major releases.

See:
https://github.com/OpenImageIO/oiio/pull/3220

@LazyDodo I believe the PSD IOProxy changed are in the developer branch 2.4.0. They aren’t in release as they break ABI, and OIIO is careful to only break the ABI in the yearly major releases. See: https://github.com/OpenImageIO/oiio/pull/3220
Member

even easier, we can just wait it out :)

even easier, we can just wait it out :)

Added subscriber: @Harti

Added subscriber: @Harti

Any news?

Any news?
Member

No, this is classified as a known issue, don't expect any movement on it in the near future, it's currently stalled on oiio 2.4.x coming out, and once that is out, and we updated to that version someone then has to do the integration work to make packed files work, this will "be a bit"

No, this is classified as a known issue, don't expect any movement on it in the near future, it's currently stalled on oiio 2.4.x coming out, and once that is out, and we updated to that version someone then has to do the integration work to make packed files work, this will "be a bit"

Added subscriber: @af_luther

Added subscriber: @af_luther

Confirming that this issue persists in 3.3.1 too. This is what I see in the output when rendering with a packed psd texture:
IMB_ibImageFromMemory: unknown file-format ()
GPUTexture: Blender Texture Not Loaded!

Confirming that this issue persists in 3.3.1 too. This is what I see in the output when rendering with a packed psd texture: IMB_ibImageFromMemory: unknown file-format (<packed data>) GPUTexture: Blender Texture Not Loaded!
Member

the earliest you could expect a fix for this would be blender 3.5, this is no guarantee though, could still slip to a later version.

the earliest you could expect a fix for this would be blender 3.5, this is no guarantee though, could still slip to a later version.

Added subscriber: @Morphin

Added subscriber: @Morphin

Added subscriber: @MACHIN3

Added subscriber: @MACHIN3
Philipp Oeser removed the
Interest
Pipeline, Assets & IO
label 2023-02-10 08:54:20 +01:00

This scenario is now fixed for 3.6 with 8929ed75d4. Packing PSDs should work for the case described here. Note, however, that PSD writing is still not supported.

This scenario is now fixed for 3.6 with 8929ed75d46. Packing PSDs should work for the case described here. Note, however, that PSD writing is still not supported.
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2023-03-20 23:48:56 +01:00
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
12 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#70495
No description provided.