Extensions vs MIME image types on quads

Talk about ManiaLink development in this forum

Moderator: NADEO

Post Reply
User avatar
LT.Forever
Posts: 126
Joined: 08 Apr 2011, 16:01
Location: Kaunas, Lithuania
Contact:

Extensions vs MIME image types on quads

Post by LT.Forever »

So I've been messing around with manialinks, interface editor and other related tools and noticed one thing that sort of bugs me out:

Right now quads accept images with extensions of .jpg/.png/.tga/.dds. Sure it's a good system for local files but let's say I want to use an online API that takes a REST type uri without an extension (e.g. ".../image/someid/"). It gives back an image/jpeg or image/png yet the image is still not visible in the manialink (or at least I couldn't make it to work).
Is there any way to make it work with MIMEs and not extensions? :roll:
Image
The_Big_Boo
Posts: 1026
Joined: 15 Jun 2010, 15:46

Re: Extensions vs MIME image types on quads

Post by The_Big_Boo »

You can simply add "?.png" or "?.jpg" to your url. It should be ignored by the API and your image will be shown.
OS: Win 7 Pro x64
RAM: 2x4GB Corsair @ 1600MHz
CPU: Intel i5 760 @ 3.6GHz
Mobo: Asus P7P55D-E
GPU: NVidia GTX 760 2GB
HDD: WD Black 1TB
Sound: VIA VT1828S (onboard)
Peripherals: Razer DeathAdder - Razer DeathStalker - Logitech F310
User avatar
LT.Forever
Posts: 126
Joined: 08 Apr 2011, 16:01
Location: Kaunas, Lithuania
Contact:

Re: Extensions vs MIME image types on quads

Post by LT.Forever »

Thanks. A weird workaround but works :1010
Image
Post Reply

Return to “ManiaLink”

Who is online

Users browsing this forum: No registered users and 1 guest