Skip to content

ultra-weird bug : some images don't show up on mobile devices (works fine on desktop computer) #1004

Open
@gordielachance

Description

@gordielachance

Hello,

I'm adding raster images to my map (like in this example); that works fine on my desktop computer.

But I noticed that the images won't show up on mobile devices (tested on an Android smartphone and on my Ipad with Firefox).
I've spent hours trying to find out what was causing this.

I finally found out (by accident) that my code was OK, and that it seems that this has maybe something to do with the file itself or the server:

  • this image shows up on my desktop computer and on my Ipad:
    https://www.tribunaldesprejuges.org/wordpress/wp-content/uploads/2020/04/AND1_OPA75-300x212.png

  • this image shows up on my desktop computer but does not on my Ipad:
    https://tdpdatas.cargoculte.be/wordpress/wp-content/uploads/2020/04/AND1_OPA75-300x212.png

This is the same image file (I compared them with a diff checker).

I was thinking that there might be a cross-origin problem; but the map is hosted on the same server than the image that doesn't show up. Besides, it works fine on my desktop computer.

What could cause this ?
I would really appreciate a feedback since I'm stuck as hell...
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions