This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

popup image resolution

0

I've got popups on Umap with image links to Flickr. All of the photos on Flickr have the same resolution. Some of the images show up great in the Umap popups and some show up pretty blurry. Anybody know why and how I can clean them up?

asked 04 May '22, 05:59

AkitaJim's gravatar image

AkitaJim
5113
accept rate: 0%

edited 04 May '22, 07:28

scai's gravatar image

scai ♦
33.3k21309459

1

Can you share a link to the umap where this happens?

(04 May '22, 07:09) TZorn
1

Great idea! http://umap.openstreetmap.fr/en/map/rindojim_739383#15/39.4096/140.1129 It seems that the "vertical" shots are really clear and the "horizontal" ones are not. But it's not clear which are which by just looking at the map.

(04 May '22, 08:18) AkitaJim

One Answer:

3

It appears that the photos in horizontal orientation are linked to the "h" size images while the vertical photos are linked to "c" or "z" size images. Some examples:

horizontal:
https://live.staticflickr.com/65535/52027916780_0f56affd81_h.jpg https://live.staticflickr.com/65535/51982755773_afd3bb814b_h.jpg

vertical:
https://live.staticflickr.com/65535/51983244240_8f61869f0a_z.jpg
https://live.staticflickr.com/65535/51982758638_9cb43bbcc7_c.jpg https://live.staticflickr.com/65535/51981683532_7fe1ce0f92_z.jpg

While their originals may all have the same resolution you seem to have linked to various lower resolution copies. In flickr you can click on the download button and then "View all sizes" to see the different options.

answered 04 May '22, 08:47

TZorn's gravatar image

TZorn
12.3k764225
accept rate: 15%

2

Thanks! I tried linking to a couple different sizes and it seems the "z" size comes out clearest. Now I just have to re-link all my pics...

(05 May '22, 00:43) AkitaJim

Source code available on GitHub .