Issues
- Image Rotate throws error on odd number or odd size imageLDEV-2228Resolved issue: LDEV-2228Michael Offner
- User defined Application scope, session scope variables not in memory for templatesLDEV-1927
- SQL Comment is disabling further parametersLDEV-1740Michael Offner
- GetHTTPRequestData() can take an argument in ACF; argument causes error in Lucee 5LDEV-1481Resolved issue: LDEV-1481Michael Offner
- java.util.ConcurrentModificationException on structKeyTranslate(FORM)LDEV-1069Resolved issue: LDEV-1069Michael Offner
- 5.0.0.249-SNAPSHOT Breaks Lucee Upon Trying to UpdateLDEV-841Resolved issue: LDEV-841Michael Offner
- cfdocument throws java.lang.NoSuchMethodException when usedLDEV-827Resolved issue: LDEV-827Michael Offner
- Database driver not showing in adminLDEV-813Resolved issue: LDEV-813Michael Offner
- Cannot access Lucee 5 admin panelLDEV-788Resolved issue: LDEV-788Michael Offner
- Transfer ORM fails during init() of transfer.TransferFactoryLDEV-787Resolved issue: LDEV-787Michael Offner
- Hibernate errors on application startupLDEV-786Michael Offner
- Upgrade from 4.5 to 5 via JAR replace has multiple issuesLDEV-734Resolved issue: LDEV-734Michael Offner
- postgres extension fails to installLDEV-732Resolved issue: LDEV-732Michael Offner
- add option to turn off the request timeout entirely for lucee core developmentLDEV-726
- missing name declaration for propertyLDEV-719Resolved issue: LDEV-719Michael Offner
- cfloop condition - lucee.transformer.cfml.evaluator.EvaluatorExceptionLDEV-707Resolved issue: LDEV-707Michael Offner
- NOT YET FIXED! ServletException occurs when mapping is defined with custom CFML resource providerLDEV-700Resolved issue: LDEV-700Michael Offner
- cfpdf addfooter not supportedLDEV-699Resolved issue: LDEV-699Michael Offner
- Make retry settings for email sending configurableLDEV-698Michael Offner
- Requesting Support for StoreSetMetaData() and StoreGetMetaData()LDEV-697Resolved issue: LDEV-697Michael Offner
- cfdump eval throws wrong error when evaluation failedLDEV-696Resolved issue: LDEV-696Michael Offner
- Adapt LDEV-224 for Lucee 5LDEV-658Resolved issue: LDEV-658Former user
- Adapt LDEV-458 for Lucee 5LDEV-657Resolved issue: LDEV-657Former user
- including a non standard cfm file (eg. .txt) throws an errorLDEV-655Resolved issue: LDEV-655Michael Offner
- Improve error for missing tags and functions that have been moved to extensionsLDEV-651Michael Offner
- allow to update lucee by copy a .lco file to the deploy folderLDEV-635Resolved issue: LDEV-635Michael Offner
- <cfmailpart type="html"> causes mail to not be sentLDEV-634Resolved issue: LDEV-634Michael Offner
- Delete installed SSL certs within the UILDEV-632
- Sending an email fails silently with 5.0.0.98LDEV-627Resolved issue: LDEV-627Michael Offner
- Lucee does not flush when fld/tld changeLDEV-626Resolved issue: LDEV-626Michael Offner
- JAR files class not found exception for custom functionsLDEV-625Resolved issue: LDEV-625Michael Offner
- support for Pack200 with bundled bundlesLDEV-623Resolved issue: LDEV-623Michael Offner
- Could not initialize class javax.media.jai.JAILDEV-609Resolved issue: LDEV-609Michael Offner
- Could not initialize class org.jfree.chart.JFreeChartLDEV-607Resolved issue: LDEV-607Michael Offner
- Support "grey" as color nameLDEV-564Resolved issue: LDEV-564Michael Offner
- allow to use bundles with createObjectLDEV-561Resolved issue: LDEV-561Michael Offner
- Add support to access local static scope using self::LDEV-560
- disable Lucee dialectLDEV-559Resolved issue: LDEV-559Michael Offner
- extension takes a minute to install after startupLDEV-558Resolved issue: LDEV-558Michael Offner
- Stack overflow creating object instance while in the static constructorLDEV-554Resolved issue: LDEV-554Michael Offner
- cfdbinfo generates error retrieving columns on mysqlLDEV-553Resolved issue: LDEV-553Michael Offner
- Update dependencies to more recent versions where possibleLDEV-520Michael Offner
- Extract the query name for executeQuery() from the assignmentLDEV-500
- The key [WHEELS] does not exist, only the following keys are available: [applicationname].LDEV-415Resolved issue: LDEV-415Michael Offner
- Lucee dialect missing rand* functionsLDEV-377Resolved issue: LDEV-377
- Compilation glitch with []LDEV-367Resolved issue: LDEV-367Michael Offner
- <:dump eval=...> breaksLDEV-358Resolved issue: LDEV-358Michael Offner
- application.mappings and cfimportLDEV-355Resolved issue: LDEV-355Michael Offner
- Sending an email fails silentlyLDEV-343Resolved issue: LDEV-343Michael Offner
- Latest WAR doesn't seem to work in at least some situationsLDEV-335Resolved issue: LDEV-335Michael Offner
Image Rotate throws error on odd number or odd size image
Description
Environment
This also effects the latest version of Lucee
Version Lucee 5.2.9.31
Version Name Velvet
Release date Sep 17, 2018
ColdFusion® compatibility version 2016.0.03.300357
OS Windows Server 2016 (10.0) 64bit
Servlet Container Apache Tomcat/8.5.28
Java 1.8.0_191 (Oracle Corporation) 64bit
Architecture 64bit
Attachments
Details
Assignee
Michael OffnerMichael OffnerReporter
Barbara RenowdenBarbara RenowdenPriority
CriticalLabels
Fix versions
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
NoneAffects versions
Details
Details
Assignee
Reporter
Priority
Labels
Fix versions
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
Michael Offner14 August 2019 at 06:26
Michael Offner14 August 2019 at 06:22
Pothys - MitrahSoft23 April 2019 at 13:53
I've checked it confirmed the issue happened on lucee. ACF returns as expected. Also I tried with your sample code, Got a error that was differ from you. that is
lucee.runtime.exp.NativeException: 1944
at com.sun.media.jai.opimage.AffineNearestOpImage.intLoop(AffineNearestOpImage.java:921)
at com.sun.media.jai.opimage.AffineNearestOpImage.computeRect(AffineNearestOpImage.java:279)
at com.sun.media.jai.opimage.AffineOpImage.computeTile(AffineOpImage.java:626)
KabutoTX12 April 2019 at 02:44
Playing some more. Did notice one of my images was getting a 1 pixel black border @ 90 angle. It is caused by the centering x and y. I just 0F them and problem went away on my JPG. For my PNG I had to remove the Border Hints for (alpha != null) section. You can keep the KEY_REPLACE_INDEX_COLOR_MODEL hint but JAI automatically TRUEs it by default.
BTW ACF 2018 threw an error on my PNG using bicubic or bilinear @145 angle where my code works fine.
KabutoTX11 April 2019 at 18:43
FYI. Taking the KEY_BORDER_EXTENDER hint off stops the error.
This issue originally started on a forum post. https://dev.lucee.org/t/image-rotate/5374/4
We thought we had this resolved but I was informed that there were still issues with the image rotate functionality. I was provide with a couple of images that were acting up when we tried to rotate right (i.e. 90 degrees) despite the fact that I had the fix in place. I spent some time trying to figure out why some images worked fine and some didn’t, trying .png files instead of .jpg and then larger files rather than smaller but it all seemed rather random. Finally I noticed that the images that were throwing the exception had one thing in common, the dimensions that were not even.
To test my hunch I went to the Lucee documentation on image rotate since they had code that you could run. I modified the code on that page to create an image that is 100x99 rather than 100x100 and then ran it with rotation angles of 270 (rotate left) and 90 (rotate right) and sure enough the rotate right throws the exception. I’ve provided the link and screen shots of each below.
I also tried this:
<cfscript> img=imageNew("",100,87,"RGB","0fb9b1"); imageRotate(img, "90"); cfimage(action="writeToBrowser",source=img); </cfscript>
When this happens it throws an error;
Error:
java.lang.ArrayIndexOutOfBoundsException You can try this yourself here.
https://docs.lucee.org/reference/functions/imagerotate.html
My issue is that some of our users may not upload a perfectly dimensioned image. And it seems that only Odd numbers have the issue. If you change to an even number the image rotates fine.