Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trycf/af55c50bcb9d4cdf7ea1afb2c87aaeaa to your computer and use it in GitHub Desktop.
Save trycf/af55c50bcb9d4cdf7ea1afb2c87aaeaa to your computer and use it in GitHub Desktop.
TryCF Gist
<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