When we try to load the image that I attach, it never ends and the process is blocked in the load
I use the latest version of the library in local (aspose-imaging-21.3-jdk16) and the previus one on the server (aspose-imaging-21.2-jdk16)
I have tested it both on the server and locally, staying in the same place.
Image:
IMG20210329113654.jpg (1.7 MB)
Java Code:
public static Path loadImage(Path pathOriginal) {
logger.info("ImagingService.loadImage()::INICIO -> pathOriginal={}", pathOriginal);
long startTime = System.currentTimeMillis();
Image image = null;
try {
final ProgressEventHandler loadHandler = new ProgressEventHandler() {
@Override
public void invoke(ProgressEventHandlerInfo info) {
logger.debug("Load event {} : {}/{}", info.getEventType().toString(), info.getValue(), info.getMaxValue());
}
};
LoadOptions loadOptions = new LoadOptions();
loadOptions.setProgressEventHandler(loadHandler);
image = Image.load(pathOriginal.toString(), loadOptions); //Never Complete
logger.debug(">>Original Size: width={}, heigth={}", image.getWidth(), image.getHeight());
} finally {
if (image != null) {
image.dispose();
}
}
long endTime = System.currentTimeMillis() - startTime;
logger.info("ImagingService.loadImage()::FIN ({} ms)", endTime);
return pathOriginal;
}
Logs:
10:44:28.045 [main] INFO test.services.ImagingService - ImagingService.loadImage()::INICIO -> pathOriginal=D:\documentos\images\IMG20210329113654.jpg
10:44:28.156 [main] DEBUG test.services.ImagingService - Load event Initialization : 1/4
10:44:28.552 [main] DEBUG test.services.ImagingService - Load event PreProcessing : 2/4
10:44:28.565 [main] DEBUG test.services.ImagingService - Load event Processing : 3/4