feat(image): Sidecar-Fallback für Formate ohne nativen Metadaten-Träger#79
Merged
Conversation
Vervollstaendigt die einheitliche Image-API: Formate ohne nativen Metadaten- Container (z. B. BMP) werden ueber dieselbe save/from_file-API abgedeckt — die Metadaten reisen in einem verlustfreien <filepath>.meta.json-Sidecar (gleiche Nutzlast wie die eingebettete Form), from_file merged ihn zurueck. - save(filepath, sidecar=None): None = Sidecar nur ohne nativen Traeger (Default), True = immer (zusaetzlich zur Einbettung), False = nie - write_sidecar()/sidecar_path()/_load_sidecar_metadata() Helfer - from_file laedt eingebettete UND Sidecar-Metadaten - Tests: BMP-Roundtrip ueber Sidecar; sidecar=True bei nativem PNG - RFC 0005 + Usage-Guide: Sidecar-Fallback dokumentiert (BMP nicht mehr "offen") Kanonische CI: 603 passed, 7 skipped, TOTAL 100%; mkdocs --strict gruen.
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| Security | 5 high |
🟢 Metrics 8 complexity · 0 duplication
Metric Results Complexity 8 Duplication 0
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Was
Vervollständigt die einheitliche Image-API: Formate ohne nativen Metadaten-
Container (z. B. BMP) werden über dieselbe
save/from_file-API abgedeckt — dieMetadaten reisen in einem verlustfreien
<filepath>.meta.json-Sidecar (gleicheNutzlast wie die eingebettete Form),
from_filemerged ihn zurück. So geht Metadatennie verloren, egal welcher Container.
save(filepath, sidecar=None):None= Sidecar nur ohne nativen Träger (Default),True= immer (zusätzlich zur Einbettung),False= nie.write_sidecar()/sidecar_path()/_load_sidecar_metadata().from_filelädt eingebettete und Sidecar-Metadaten.Tests / CI
tests/test_image.py: BMP-Round-Trip über Sidecar;sidecar=Truebei nativem PNG.Kanonische CI: 603 passed, 7 skipped, TOTAL 100 %,
mkdocs build --strictgrün.Docs
RFC 0005 (§3.3/§4/§7) + Usage-Guide um den Sidecar-Fallback ergänzt.