Log in
Location: Home  Community Forums  General  Request: mapscreenshots as *.jpg file for plugins 
Request: mapscreenshots as *.jpg file for plugins
Page: 1 of 1
Post Reply  0 Observer
Request: mapscreenshots as *.jpg file for plugins  
Hey there,

i am currently working on a mX plugin for tm2, the only problem i have at the moment is,
that the map screens are in a format where i first have to download them to the server ,
store them and then at least i can show them in the plugin.

That all takes a lot of time, and is not really good for a plugin.
Also for private home servers, it will cut bandwith for short amount of time
(iam just using the small screens) - all in all it would be a real goodie if at
least the small versions could be stored as jpg somwhere on mania exchange.

thanks for your time
best regards, uBm

Old Age Caravanner
Location: AT
 
Firstly, the larger screenshots are output in whatever format they were uploaded in. :) Secondly, the small screenshots are output in JPG format anyway. :p
Deep fried
Location: AU
 
the problem is , u cant load neither the small nor the big screenshots into a manialink, as they have not the ending jpg.
i asume u load them as blob out of a database ?


example:
quad 1 ->> gives no image on a manialink.
quad 2->> gives an image on a manialink.
(had to remove tagsbecourse u aint have the [c ode] tag

[quad id="1" image="http://tm.mania-exchange.com/tracks/screenshot/normal/1008" posn="36 32.5 2" sizen="8 6"/>
[quad id="2" image="http://covertstrike.org/tm/img/1008.jpg" posn="36 40.5 2" sizen="8 6"/>

so in the first case i have to get the image as string, put it into a locale file and then - i should show it in a manialink, which does not work at the moment at least for me.

so the third option i would have is , to load the imagestring, put it into a remote webserver and then i can show it in a manialink, which of course take to much time for a plugin.
Last edited by ubm,
Old Age Caravanner
Location: AT
 
If you're loading this through the Manialink XML, then you append some dummy text to the URL; ?dummy=.jpg or &dummy=.jpg. You have to 'fool' TM into thinking it's an image. (y)

It's a known bug which I've hassled Nadeo about, but they obviously still haven't fixed it! :s
Deep fried
Location: AU
 
so the url would be

http://tm.mania-exchange.com/tracks/screenshot/normal/1783?.jpg

edit: worked exactly with the link above tank u very much.
for example -- i ll try , thank u for the tipp.
Last edited by ubm,
Old Age Caravanner
Location: AT
Page: 1 of 1 Post Reply
© ManiaExchange (mania-exchange.com, mania.exchange) 2024. • Terms and ConditionsPrivacy Policy Top  •  Report a Problem