Status/Resolution/Reason: To Fix//BugVerified
Reporter/Name(from Bugbase): Jason L. / ()
Created: 10/01/2019
Components: CFIMAGE
Versions: 2016
Failure Type: Non Functioning
Found In Build/Fixed In Build: 2016,0,12,315717 /
Priority/Frequency: Normal / All users will encounter
Locale/System: English / Win 2008 Server R2
Vote Count: 0
Problem Description:
cfimage can no longer read mismatch file extension/mimetype after installing hotfix 12 for CF 2016
Steps to Reproduce:
<cfscript>
//this will work.... mimetype is png and file extension is png
cfimage(source = "actually-a-png.png", name = "mySrcImagePNG", action = "READ");
writeOutput(mySrcImagePNG.width);
//this will not work, mimetype png file extension is jpg, this worked prior to cf 2016 hotfix 12.
cfimage(source = "actually-a-png.jpg", name = "mySrcImageJPG", action = "READ");
writeOutput(mySrcImageJPG.width);
</cfscript>
Actual Result:
Message
An exception occurred while trying to read the image.
Diagnostics
An exception occurred while trying to read the image. coldfusion.image.ImageReader$ImageReadingException: An exception occurred while trying to read the image.
Expected Result: cfimage would read in the image file
Any Workarounds: none
Attachments:
Comments: