Issues

Select view

Select search mode

 
50 of 85

Regression: Error converting images toBase64

Fixed

Description

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>

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

1
  • 25 Mar 2025, 08:07 pm

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

Created 25 March 2025 at 19:49
Updated last week
Resolved last week

Activity

Show:

Flag notifications