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

Fails to write DNG Images #1

Open
hean01 opened this issue Feb 11, 2023 · 3 comments
Open

Fails to write DNG Images #1

hean01 opened this issue Feb 11, 2023 · 3 comments

Comments

@hean01
Copy link

hean01 commented Feb 11, 2023

I can't find out how to write the scanlines of the image to the DNG file, please advice how to.

@hean01 hean01 changed the title Fails to Writing DNG Images Fails to write DNG Images Feb 11, 2023
@anuejn
Copy link
Member

anuejn commented Feb 12, 2023

there is an example in the docs.
Does this work for you?

@hean01
Copy link
Author

hean01 commented Feb 12, 2023

there is an example in the docs. Does this work for you?

Sorry for the unclear issue. The example in doc works but creates only the IDF but there is no information about how to write the actual stripes / scanlines and couldnt' find any api in the library for doing so,

@anuejn
Copy link
Member

anuejn commented Feb 12, 2023

Aah the API is then a bit unclear there. The example not only writes the IFD but also one strip (containing 4 bytes of 0).
Things that are wrapped in IfdValue::Offsets are written by the DngWriter as well.

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