Metadata is not preserved during image transformation. Use this method with the original image resource to extract metadata from supported formats.
Is there any current or planned way to (re-)attach metadata to processed images on output?
Stripping the metadata generally seems like a good idea, but I would like to be able to attach a copyright note (and possibly title/caption/date) to my output images.
OK, I misunderstood the question. Yes, I agree that writing some metadata (copyright etc.) would be useful.
When I implemented metadata reading for JPEG, TIFF, PNG, WebP, JPEG XL, HEIF/HEIC, AVIF, DNG, CR2, NEF, PEF and ARW (all doing this slightly differently) I swore to myself that I would never touch the writing side of this. But the amount of formats we have encoders for are a smaller set, so maybe.