ID:2384986
 
(See the best response by Lummox JR.)
Code:
            var/icon/I = icon(usr.icon)
I.Crop(1,1,32,48)
usr.icon = I


            var/icon/i = icon(M.icon)
i.Scale(bigme * i.Width(),bigme * i.Height())
M.icon = i


world << "<IMG SRC='[usr.icon]' ICONSTATE="[usr.icon_state]" ICONDIR=SOUTH>"


Problem description:

After using the Crop() or Scale() proc like above, the player's icon is no longer able to be displayed using the above html.

The above HTML DOES work with the icons before being manipulated by either of the procs.

Is the syntax incorrect with how im using these? or is there another way to display it?
After doing a little more digging, it seems like the X.icon var stops returning a file name after using these procs... which I guess makes sense but is there a way to give these icons a name after manipulating them so they can be referenced like that?
Best response
Using \ref[usr.icon] ought to do it. That's what you should always be using here, not relying on the name.