Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to save PSD's #61

Open
mexicantexan opened this issue Aug 21, 2024 · 1 comment
Open

Ability to save PSD's #61

mexicantexan opened this issue Aug 21, 2024 · 1 comment

Comments

@mexicantexan
Copy link

mexicantexan commented Aug 21, 2024

I'm happy to take this up! Just point me in the right direction.

Right now the psd crate only supports deserializing a PSD from bytes. It does not currently support writing PSD bytes to a file. I'd be happy to help guide anyone that is interested in contributing support for this.

Originally posted by @chinedufn in #51 (comment)

@chinedufn
Copy link
Owner

I would recommend starting with:

  • come up with a few very basic writing scenarios. For instance, "saving an empty file", "saving a 1x1 file"
  • create a mod write_bytes or something like that
  • add tests for the basic scenarios
  • get those tests passing
  • submit a PR

We want to be able to round-trip PSDs such that if we write a PSD, then read it, it equals the exact same in memory Rust PSD that we wrote.
So, our test suite should test that.


In short, step 1 here is just getting some tests written for simple cases.

Then from there we can continue to test more and more cases.

Please feel free to continue asking questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants