Skip to content
Discussion options

You must be logged in to vote

Do you have a minimally reproduceable example for the image? It should be easier to verify if the App1 segment is there as planned or if the structure is messed up . The code sketch in the initial comment is somewhat hard to follow—apart from the obvious syntax mistake in Ok()—and I find it unlikely to represent your implementation's intended structure. It writes the same image into two different targets:

  • img.write_with_encoder(encoder)?: which is what I assume you wanted to do, since that encoder has been configured with exif data. However, that same encoder writes into out which is a Cursor into an allocated Vec. Both the cursor and Vec are discarded on return, so none of this written …

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Weasy666
Comment options

@197g
Comment options

197g Oct 27, 2025
Maintainer

Answer selected by Weasy666
@Weasy666
Comment options

@197g
Comment options

197g Oct 28, 2025
Maintainer

@Weasy666
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants