psd check RESN_INFO size is not set to zero
ClosedPublic

Authored by markreid on Jun 26 2017, 11:12 PM.

Details

Summary

Hi,
This patch fixes a issue I'm having with some photoshop files that seem to have RESN_INFO set to 0, 0. I can supply samples if required

Diff Detail

Repository
R37 Krita
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
markreid created this revision.Jun 26 2017, 11:12 PM
Restricted Application added a subscriber: woltherav. · View Herald TranscriptJun 26 2017, 11:12 PM

here is a psd file that has this behaviour

rempt accepted this revision.Jun 27 2017, 8:46 AM
rempt added a subscriber: rempt.

Sounds like a sensible thing to do -- are these psd files created with photoshop or another application?

This revision is now accepted and ready to land.Jun 27 2017, 8:46 AM
dkazakov accepted this revision.Jun 27 2017, 11:52 AM
dkazakov added a subscriber: dkazakov.

Hi, @markreid!

The patch looks ok from the code point of view. Do you have commit rights for pushing it into the repository, or we should push it for you?

Thanks for the review.
@rempt the files are initially created with imagemagick but then opened and saved with photoshop.

@dkazakov I don't have commit rights, if someone could push it for me that would be great.

This revision was automatically updated to reflect the committed changes.