Created
September 1, 2020 12:10
-
-
Save trycf/af55c50bcb9d4cdf7ea1afb2c87aaeaa to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
dump(server.lucee.version); | |
w = 250; | |
h = 250; | |
image= ImageNew(source="", width=w, height=h, imageType="rgb", canvascolor='red'); | |
transparentBorder = ImageNew(source="", width=w, height=h, imageType="argb"); | |
ImagePaste(image1=transparentBorder, image2=image, x=5, y=5);dump(transparentBorder); | |
image action="writetobrowser" source="#transparentBorder#" format="png"; | |
try { | |
// throws All factories fail for the operation "filestore" | |
image action="writetobrowser" | |
source="#transparentBorder#" | |
format="jpeg"; | |
} catch (e){ | |
dump(cfcatch); | |
} | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment