Converting an image to jpg on server

Description

I reviewed Trouble converting png to jpg
But It seems to be occurring still or again.The below works, but if the file being written is a jpg, then it writes, but as a 0kb file. The image does not upload.
I can change my cfdocuments to use png, but was hoping to not have to do that .
Also, tried using convert and will create teh jpg, but still as 0kb.
Windows server 2016 Lucee 5.3.5.92

<cffunction name="submitSignature" access="remote" returntype="boolean">
<cfargument name="signature" type="string" required="yes">
<cfargument name="planned_shipment_skey" type="string" required="yes">
<cfset image = imageReadBase64(arguments.signature)>
<cfset destination = expandPath('../../../Attachments/signatures/') >

<!--- <cfimage
action="convert"
destination="#destination##planned_shipment_skey#.jpg"
source="#image#"
overwrite="yes"
quality="0"
>--->
<cfimage
action="write"
destination="#destination##planned_shipment_skey#.png"
source="#image#"
overwrite="yes"
quality="0"
>

<cfreturn true />

</cffunction>
<cfdump var=#imageInfo(image)#>

Environment

Windows Server 2016

Assignee

Michael Offner

Reporter

Trevor Wright

Priority

New

Labels

Fix versions

None

Affects versions

Configure