ID:157299
 
I have tried before and failed, whenever i put an icon in
src << output([icon],[output]) it will say icon.dmi instead of showing the icon.
"\icon[icon]"
In response to Leur
does \icon still work because im not getting any success from it
GrimmJore wrote:
I have tried before and failed, whenever i put an icon in
src << output([icon],[output]) it will say icon.dmi instead of showing the icon.

To the best of my knowledge, \icon will return a 32x32 (or 16x16, I can't remember which) image, instead of keeping the full size.

You can accomplish the result with:

mob
verb
test2()
var/icon/I = new('icon.dmi', "omg")
world << "<img src='\ref[fcopy_rsc(I)]'>"


Replacing world << "" with the necessary output() call.
In response to Tiberath
pretty sure it is 16x16 if i remember correctly. it still isn't doing anything though. even the code you sent which was a method i tried. i did try your code specifically though also.

note this worked when i used byond before. i've been around a long time.

i did use it on windows before

is this a linux incompatibility? images can be cached and viewed in the browser window and pop_ups.