Well that’s certainly what I would hope and expect.
Perhaps you could help me assess what I’m missing; see if you can grab this . . . https://en.wikipedia.org/favicon.ico
. . .
and make it an image with ImageNew()
All I see is that Lucee can’t find the format for image/vnd.microsoft.icon
Yea Wiki uses image/vnd.microsoft.icon. Not even Microsoft does. Try adding:
cfcontent(type=“image/x-icon”, file=testImg);
after filewrite and see if that works?
The cfcontent certainly lets me display the file, so that mime-type works!
But I need to do some processing on it. And I can’t figure out how to get that data to imageNew()
Every favicon.ico that I go to seems to be image/vnd.microsoft.icon. It looks to me that folks servers are just set to use the IANA standard even tho it’s not really right.
I also wonder if every *.ico seems to be vnd.microsoft.icon because something is up with mime-typing on my system; but I’ve futzed with all sorts of mime-type maps and the system seems to keep saying either that it can’t load the file or it can’t find the format for image/vnd.microsoft.icon.