Skip to content
This repository was archived by the owner on Jan 22, 2022. It is now read-only.

WSQ: Support transcoding IIOMetadata classes#7

Open
paulo-raca wants to merge 1 commit into
E3V3A:masterfrom
paulo-raca:wsq-transcode
Open

WSQ: Support transcoding IIOMetadata classes#7
paulo-raca wants to merge 1 commit into
E3V3A:masterfrom
paulo-raca:wsq-transcode

Conversation

@paulo-raca

Copy link
Copy Markdown

WSQImageWriter currently crashes when transcoding image formats (e.g., JPEG -> WSQ) if we try to preserve the metadata, because we blindly try casting it to WSQMetadata.

This PT change the code uses IIOMetadata.setFromTree() to populate a WSQMetadata instance from a generic metadata by inspecting the standard XML Tree.
(The only metadata actually being copied are PPI and Bitrate, but the solution is generic)

@paulo-raca paulo-raca changed the title Support transcoding IIOMetadata classes WSQ: Support transcoding IIOMetadata classes Jun 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant