Identify: Press `z` to zoom in on photo sometimes zooms in on

Platform: website

App version number, if a mobile app issue:

Browser, if a website issue: Firefox 142.0

URLs (aka web addresses) of any relevant observations or pages: https://www.inaturalist.org/observations/identify

Screenshots of what you are seeing:

Description of problem:

Unfortunately I can’t consistently replicate it, it just seems to happen randomly. If anyone else is able to find some consistent replication steps, that would be great!

Step 1: When using the Identify modal, press the z key to zoom in on the observation’s photo

Step 2: Instead of zooming to the center of the photo, only the bottom of the photo is displayed.

Does this happen to anyone else? It seems similar to this old bug, but a different part of the photo is being zoomed in on.

I have never had this happen, but use only Chrome in case that is helpful.

1 Like

It just happened to me on this observation: https://www.inaturalist.org/observations/309391270

You can find it here: https://www.inaturalist.org/observations/identify?per_page=100&project_id=bronco-bioblitz-cal-poly-pomona-f25 (you may need to go a few pages forward).

If you look at photo’s metadata, there is an EXIF tag called “Subject area” with the values “[2371, 1429, 747, 749]”.

I’m guessing the ‘z’ feature utilizes those values to zoom into the subject. I’ve not looked at the code.

If that’s the case, that would explain this:

The iPhone 14 vertical photos’ dimensions are originally 3024x4032. But when they get uploaded to iNaturalist, they get resized to 2048 on the long edge.

If the ‘z’ feature uses the Subject Area to immediately focus on the subject, then the issue is that the coordinates are not transformed when the image is uploaded. See this crude analysis in photoshop where the small image is 2048 on the long edge, and the larger one is the original iPhone 14 size. The big square are the coordinates as specified by Subject Area. The smaller square are the coordinates transformed by the ratio of the image dimensions (1.96875).

It’s only a theory. I’ve only looked at this image. I don’t know if any of the above applies to everything.

2 Likes

Thanks for the detailed investigation! Were you using Firefox?

Huh… it stopped happening.

It was occurring when the observation was in Page 1.

Yeah, I’m using Firefox 142.0 and Windows.

1 Like

Oh. I got it.

So it happens if the observation is at the top of the page like this:

Ok I’m convinced is that EXIF tag and then the position of the observation on the page.

I think it’s worse when the observation is towards the bottom of the page. If you’re navigating within the ID modal, it’ll seem random. If you happen to click it when it’s in the middle of the page, it will still happen but it will be less obvious.

I hope that makes sense.

Final answer :)

Final edit:

I think another factor why it’s not so easy to reproduce is that most people don’t use ‘per_page=100’ or more.

Also, if you tile the window on half of the screen (makes the page longer), the zoom effect is worse, the image will go “blank” (it’s somewhere up there within the layer).

1 Like

I just use the standard 30 per page, fwiw.

FWIW, just happened to me with this photo, which does not have a Subject Area field in its metadata, or anything that seems obviously analogous.

I found your example in Identify by looking at RG observations for Parulidae. Your example happened to be at the bottom row. It happens to the adjacent observation too.

If I go to the next page, this also happens to the ones at the bottom:

It happens or is more visible if Large is selected here:

So it’s not the metadata, but rather the height/length of the page.

Yup. At least from here, it happens to any photo when pressing ‘z’ and the observation is near the bottom. It was not because of that metadata tag.

The current laptop I’m using is 1920x1080.