musselwhizzle / Focus-Points

Plugin for Lightroom to show which focus point was active in the camera when a photo was taken
Apache License 2.0
344 stars 42 forks source link

Canon - Y axis revisited #88

Closed philmoz closed 7 years ago

philmoz commented 7 years ago

The Y co-ordinate for Canon DSLR cameras is now correct (positive towards the top of the image).

However it seems for some (maybe all) Canon P&S cameras the Y co-ordinate goes the other way :( Tested on G12, G1X & G5X raw images.

I've attached a patch that fixes this for the above 3 cameras only.

canon_powershot.txt

musselwhizzle commented 7 years ago
philmoz commented 7 years ago

I can create a pull request, just haven't had time to create a fork.

My patch only works for the three cameras I listed - there is probably a better way to do this, I included it for reference in case it made things clearer.

musselwhizzle commented 7 years ago

ok thanks. i'll take over from here then

philmoz commented 7 years ago

Also applies to JPEG images taken with IXUS 310 HS & SX40 HS cameras. I suspect this applies to all Canon P&S cameras.

Not sure how to deal with this - there are a huge number of P&S camera models from Canon.

musselwhizzle commented 7 years ago

is there anything in the metadata that would give a reliable indication of P&S vs dslr? "Camera Type" == "Compact" maybe?

philmoz commented 7 years ago

"Camera Type" == "Compact" works for all the test images I have tried so far.

musselwhizzle commented 7 years ago

Mind looking at this PR and making sure this is correct: https://github.com/musselwhizzle/Focus-Points/pull/89/files

philmoz commented 7 years ago

Looks good. It is worth converting the type to lower case and comparing to "compact" - just in case?

musselwhizzle commented 7 years ago

sure.

FYI, I dont have any Canon dslr images to test where the focus point isn't center. You've tested this right?

philmoz commented 7 years ago

Yes. All my test images (DSLR, and P&S) work as expected with this fix. I've listed the cameras I've tested in the issue about updating the supported Canon models.

musselwhizzle commented 7 years ago

ok, I think this just about supports every canon camera then... nice job! Merging in a minute