foundeo
isImageFile( url )
is several times slower than cfhttp + isImageFile( tempFile ) : https://luceeserver.atlassian.net/browse/LDEV-4177 so much so that it appears to request the url multiple timesfoundeo
The thing I noticed in the Image constructor was a call to checkOrientation() that was added in version 1.2.0.2 of the image extension:
https://github.com/lucee/extension-image/commit/b95a747617b33539b058e484f328c1f8ca94bc75#diff-2aeb88618768ab27ae1a96e1a2fe9711e32e5823dc53e4186490e87c6f084deaR201
The checkOrientation() function checks to see if the orientation is “NORMAL” and if not it calls changeOrientation(), which as you might guess will rotate the image:
https://github.com/lucee/extension-image/blob/5988b96110b43bc008d89c5a357007914b00e48b/source/java/src/org/lucee/extension/image/Image.java#L1224-L1246
bdw429s
08/31/2022, 4:08 PMbdw429s
08/31/2022, 4:08 PMbdw429s
08/31/2022, 4:09 PMHEAD
request to do exists checksbdw429s
08/31/2022, 4:10 PMzackster
08/31/2022, 4:10 PMfoundeo
zackster
08/31/2022, 4:11 PMfoundeo
foundeo
foundeo
zackster
08/31/2022, 4:24 PMzackster
08/31/2022, 4:24 PM