Issues
- Regression: Error converting images toBase64LDEV-5432Resolved issue: LDEV-5432
- class org.lucee.extension.image.coder.Coder cannot access a member of class org.lucee.extension.image.coder.jai.JAICoder with modifiers ""protected""LDEV-5306
- add ImageGetPoint, to compliment ImageDrawPointLDEV-5286Zac Spitzer
- ImageWrite(noMetaData=true) doesn't strip metadataLDEV-5284
- several image functions throw errors under java 21LDEV-5283Resolved issue: LDEV-5283Zac Spitzer
- Imageshear() throws cannot access class sun.awt.image.BytePackedRasterLDEV-5282
- update image extension commons-ioLDEV-5129Zac Spitzer
- Image extension 1.0.0: does not work with Lucee 5.4LDEV-4643Resolved issue: LDEV-4643Zac Spitzer
- webp codec doesn't work on arm archLDEV-4626Michael Offner
- imageOverlay error with java 17LDEV-4518Resolved issue: LDEV-4518Pothys - MitrahSoft
- imageRotate error with java 17LDEV-4517Resolved issue: LDEV-4517Pothys - MitrahSoft
- Incompatibility - imageAddBorder() didn't throw an error with a negative value of the thickness argumentLDEV-4460Michael Offner
- ArrayIndexOutOfBoundsException in Imageshear() with shear argumentLDEV-4459Michael Offner
- Incorrect error message - ImageSharpen() with gain argumentLDEV-4455Resolved issue: LDEV-4455Michael Offner
- ImageOverlay is missing rule and alpha argumentsLDEV-4453Michael Offner
- imageInfo() throws an NPE with a gif imageLDEV-4388Michael Offner
- imageInfo with image extension v2 is missing metadata (imageNew)LDEV-4361Resolved issue: LDEV-4361Zac Spitzer
- Twelve monkeys codec throws Bogus input colorspace writing out jpgLDEV-4360Michael Offner
- jpeg images locked on windows with java 11LDEV-4354Resolved issue: LDEV-4354Michael Offner
- image extension v2 fails silently errors writing out unsupported image formatsLDEV-4304Resolved issue: LDEV-4304Pothys - MitrahSoft
- Update image extension to v2 for Lucee 5.4LDEV-4293Resolved issue: LDEV-4293Michael Offner
- update Twelve Monkeys to 3.12.0LDEV-4292
- update metadata-extractor in image extension to 2.18.0 due to CVELDEV-4280Resolved issue: LDEV-4280Michael Offner
- when the image extension can't read a file, use tika to report what the mime type isLDEV-4257Resolved issue: LDEV-4257Michael Offner
- locked image files with image extensionLDEV-4226Resolved issue: LDEV-4226Michael Offner
- Rewrite Coder handling of the image extensionLDEV-4197Resolved issue: LDEV-4197Michael Offner
- add broad test set of support for various image formatsLDEV-4179Resolved issue: LDEV-4179Zac Spitzer
- isImageFile with URL makes multiple http requestsLDEV-4177Michael Offner
- Image 1.2.0.2 extension causes admin applications to hangLDEV-4167Resolved issue: LDEV-4167Pothys - MitrahSoft
- java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.JPEGCodecLDEV-4163Pothys - MitrahSoft
- IOException occurs when search for propriate codecs.LDEV-4158Resolved issue: LDEV-4158Zac Spitzer
- OSGI error with Image Extension 1.0.0.44-SNAPSHOT and buildLDEV-4145Resolved issue: LDEV-4145
- imageFormats() returns native java arraysLDEV-4080
- image exif functions no longer returning all valuesLDEV-4079Resolved issue: LDEV-4079Michael Offner
- use twelve monkeys image resizing for imageResize()LDEV-3967
- Calling `toBase64` on a CFML Image (`ImageNew`) is not idempotentLDEV-3964Pothys - MitrahSoft
- use twelve monkeys for image extension, adds webp supportLDEV-3961Resolved issue: LDEV-3961Michael Offner
- locked temp image files - isImageFile()LDEV-3931Resolved issue: LDEV-3931Pothys - MitrahSoft
- Extension - Applications link in server admin times outLDEV-3890Resolved issue: LDEV-3890Pothys - MitrahSoft
- GetWriteableImageFormats() claims pbm support but can't crashes writingLDEV-3874
- cfimage permissions 403 error after writingLDEV-3365Resolved issue: LDEV-3365Pothys - MitrahSoft
- cfimage - All factories fail for the operation "filestore" errorLDEV-3357Resolved issue: LDEV-3357Pothys - MitrahSoft
- disable imageIO disk cache for better performance?LDEV-3327
- Image extension failed with no suitable method foundLDEV-3322Resolved issue: LDEV-3322Pothys - MitrahSoft
- admin list applications hangs, continually trying to load older image extension (despite a newer version already being installed?)LDEV-3277Resolved issue: LDEV-3277Pothys - MitrahSoft
- imageWrite() throws exception about missing com.sun classes on OpenJDK 14LDEV-3200Michael Offner
- Image.paste() with named arguments throws cryptic error messageLDEV-3082Resolved issue: LDEV-3082Michael Offner
- imageCrop doesn't accept argumentCollectionLDEV-3077Michael Offner
- updating the image extension throws errors until Lucee is restartedLDEV-3033Resolved issue: LDEV-3033Michael Offner
- All factories fail for the operation "filestore" writing ARGB images out as JPEGsLDEV-3029Resolved issue: LDEV-3029Pothys - MitrahSoft
Regression: Error converting images toBase64
Description
Environment
We encountered this in a Docker Container, with Java 21, running Lucee lucee-light@6.2.1-SNAPSHOT+77 with the latest image extension: image-extension-2.0.0.29. You can also see it on TryCf.
Attachments
relates to
Details
Assignee
UnassignedUnassignedReporter
Matthew ClementeMatthew ClementePriority
NewLabels
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Sprint
Affects versions
Details
Details
Assignee
Reporter
Priority
Labels
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Sprint
Affects versions
Activity
Zac Spitzer25 March 2025 at 20:31Edited
https://trycf.com/gist/f77920a770c12c23426c4a422d34463b/lucee6?theme=monokai
this however works
test = myImage.getBase64String('png');
as in the built in function to do this
Zac Spitzer25 March 2025 at 20:07Edited
toBase64(myImage.getBufferedImage());
this ends up calling .toString() which returns
BufferedImage@240f3826: type = 13 IndexColorModel: #pixelBits = 8 numComponents = 4 color space = java.awt.color.ICC_ColorSpace@4cb17921 transparency = 2 transIndex = 255 has alpha = true isAlphaPre = false ByteInterleavedRaster: width = 150 height = 55 #numDataElements 1 dataOff[0] = 0
https://trycf.com/gist/069bd752f0f1a3fe94c93833a8903db2/lucee6?theme=monokai
Lucee 5 can convert a buffered image toBase64. Running the same code in Lucee 6 fails.
You can see the bug here: https://trycf.com/gist/19932b6c52383d0720272bff049068eb/lucee6?theme=monokai
<cfscript> myImage = imageNew("http://www.google.com/images/logo_sm.gif"); test = toBase64(myImage.getBufferedImage()); writeoutput('<img class="mx-auto w-64 h-64" src="data:image/png;base64,#test#" />'); </cfscript>