Bug 450961 - Add support for open / import and export of photoshop's PSB file format
Summary: Add support for open / import and export of photoshop's PSB file format
Status: ASSIGNED
Alias: None
Product: krita
Classification: Applications
Component: File formats (other bugs)
Version First Reported In: 5.0.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: wolthera
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-28 11:54 UTC by Raghavendra kamath
Modified: 2024-10-10 07:39 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raghavendra kamath 2022-02-28 11:54:59 UTC
SUMMARY
.PSB is a format are used by photoshop to handle large documents, particularly documents over 2 gb of file size. When we try to save a psd file from Krita and if the size goes above 2gb photoshop doesn't open it saying incompatible psd version. This is due to a fake limitation of 2gb file size.

Often times users have a situation to deal with psb files while working and collaborating with thirdparties using photoshop and PSB file format compatibility comes in the way.

I would like to request adding support for opening psb and saving to psb to ease this situation.

This is my personal experience too and also saw a recent request on reddit - https://www.reddit.com/r/krita/comments/t333jt/opening_psb_workaround/
Comment 1 wolthera 2022-02-28 11:58:35 UTC
I can look into this, but I'll need test files.
Comment 2 Raghavendra kamath 2022-02-28 12:05:58 UTC
I can provide you psb files made with photoshop. I think we already have psb import support but it is not proper? and it would be best to have psb export too
Comment 3 wolthera 2022-02-28 12:32:32 UTC
(In reply to Raghavendra kamath from comment #2)
> I can provide you psb files made with photoshop. I think we already have psb
> import support but it is not proper? and it would be best to have psb export
> too

Yes, we have basic import, but without test files, I can not see where it is going wrong. I do not have access to photoshop myself, you see.
Comment 4 Raghavendra kamath 2022-02-28 13:00:07 UTC
I understand I'll arrange for a psb test file.
Comment 5 Raghavendra kamath 2022-02-28 15:41:49 UTC
Please download the test file from the following link
https://box.raghukamath.com/cloud/index.php/s/BSHaFWTHySomt6s

The tarball has screenshots of layers for your reference too
Comment 6 wolthera 2022-02-28 15:44:24 UTC
Alright, lessee what is going on here.
Comment 7 Halla Rempt 2022-03-03 12:44:34 UTC
https://invent.kde.org/graphics/krita/-/merge_requests/1309 has, so loading works now:

commit 3b275f0310056059122766b32c2f75bab4ed089e (HEAD -> work/wolthera/more-psd-parsing, origin/work/wolthera/more-psd-parsing)
Author: Halla Rempt <halla@valdyas.org>
Date:   Tue Mar 1 16:17:59 2022 +0100

    Load the layers of PSB files correctly
    
    Though not always succesfully if the psb is simply too big.
    
    CCBUG:450961
Comment 8 wolthera 2022-03-03 18:14:09 UTC
Git commit 054dbb975f4f16f6f4e58435ed4d00df8e53f0f3 by Wolthera van Hövell, on behalf of Halla Rempt.
Committed on 03/03/2022 at 18:13.
Pushed by woltherav into branch 'master'.

Load the layers of PSB files correctly

Though not always succesfully if the psb is simply too big.

M  +8    -1    libs/psd/psd_additional_layer_info_block.cpp
M  +8    -2    libs/psd/psd_layer_section.cpp

https://invent.kde.org/graphics/krita/commit/054dbb975f4f16f6f4e58435ed4d00df8e53f0f3