Skip to content

GameJolt trophy API returns PNG erroneously ending in ".jpg" #1515

@markusbkk

Description

@markusbkk

How are you using Game Jolt?

I'm an indie game developer

Please describe the issue you are having

When calling the trophy API and checking for image_url, https://s.gjcdn.net/img/trophy-bronze-1.jpg, https://s.gjcdn.net/img/trophy-silver-1.jpg and https://s.gjcdn.net/img/trophy-gold-1.jpg are all valid jpg images.

However, https://s.gjcdn.net/img/trophy-secret-1.jpg is (despite its file extension) actually a PNG.

There's probably client-side workarounds to this (I'm using Godot and still new to it, so I have yet to find a way to check MIME types from their HttpRequest class) but I just thought I'd let you know and document this in case anybody else is wondering why their secret trophies all lack an icon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions