Skip to content

Fix panasonic g9ii lensfun alias#758

Open
mwerneburg wants to merge 1 commit intoCyberTimon:mainfrom
mwerneburg:fix-panasonic-g9ii-lensfun-alias
Open

Fix panasonic g9ii lensfun alias#758
mwerneburg wants to merge 1 commit intoCyberTimon:mainfrom
mwerneburg:fix-panasonic-g9ii-lensfun-alias

Conversation

@mwerneburg
Copy link
Contributor

The Panasonic DC-G9 II reports itself as DC-G9 II in EXIF data (the English marketing name), but the lensfun database only contained the entry DC-G9M2 (the Japanese/internal designation used by Panasonic). With no alias bridging the two, camera body lookup fails entirely and lens correction profiles cannot be applied to images shot with this camera.

This change adds DC-G9 II as an English-language model alias for the existing DC-G9M2 entry, which already has the correct mount (Micro 4/3 System) and crop factor (2). No calibration data has been added or modified.

The fix was verified against a DC-G9 II shooting .rw2 files, rather than just inferred from the EXIF spec.

@mwerneburg mwerneburg requested a review from CyberTimon as a code owner March 1, 2026 01:49
@bmx22c
Copy link

bmx22c commented Mar 1, 2026

Seems like you have a commit that's unrelated to the PR: 20493bd

@mwerneburg mwerneburg force-pushed the fix-panasonic-g9ii-lensfun-alias branch from 58b188f to 5c9166b Compare March 1, 2026 22:14
@mwerneburg
Copy link
Contributor Author

Apologies. Cleaned up — the unrelated commit has been removed, the branch now only contains the lensfun alias change.

@kmilos
Copy link
Contributor

kmilos commented Mar 2, 2026

The Panasonic DC-G9 II reports itself as DC-G9 II in EXIF data

No, it does not. This "prettification" must be occuring somewhere else in RapidRaw (or even dnglab/rawler), and it still should use pristine "DC-G9M2" Exif data to query the Lensfun database. (UI presentation of pretty names should be independent of this.)

Also note that none of the Panasonic models have these pretty aliases in the Lensfun database (see e.g. bottom camera list here), as opposed to e.g. Canon, Pentax, or Sony... Why, I don't know... But if you do suggest something like this upstream, please do it consistently for all models.

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

Successfully merging this pull request may close these issues.

3 participants