Browse our Products
Aspose.Imaging for JAVA 24.4 - Release notes
Competitive features:
- Add options of modifying Dicom tags to the public API
Key | Summary | Category |
---|---|---|
IMAGINGJAVA-8686 | Add options of modifying Dicom tags to the public API | Feature |
IMAGINGJAVA-8701 | DJVU to PDF: First page is blank | Enhancement |
IMAGINGJAVA-8700 | Fix PS (EPS) file export | Enhancement |
IMAGINGJAVA-8691 | EMF to PDF conversion: text doesn’t wrap | Enhancement |
IMAGINGJAVA-8688 | Cannot convert the CDR image to DXF format | Enhancement |
IMAGINGJAVA-8687 | Support PNG loading with unexpected EOF & PNG loader optimization | Enhancement |
IMAGINGJAVA-8668 | EPS -> SVG: NotImplementedException The method or operation is not implemented | Enhancement |
IMAGINGJAVA-8618 | ArgumentNullException while exporting a loaded PNG with 64 bpp into PNG with 32 bpp | Enhancement |
Public API changes:
Added APIs:
Please see corresponding cumulative API changes for Aspose.Imaging for .NET 24.4 version
Removed APIs:
Please see corresponding cumulative API changes for Aspose.Imaging for .NET 24.4 version
Usage Examples:
IMAGINGJAVA-8702 Crashing Java 21 with EXCEPTION_ACCESS_VIOLATION
import com.aspose.imaging.Image;
import com.aspose.imaging.fileformats.tiff.TiffImage;
public class ImageLoadTiff {
public static void main(String[] args) {
String inputTiff = "aio_converted.tif";
try {
System.out.println("get page count file " + inputTiff);
try(TiffImage tiff = (TiffImage) Image.load(inputTiff)) {
int pageCount = tiff.getFrames().length;
System.out.println("pageCount = " + pageCount);
}
} catch (Exception ex) {
ex.printStackTrace();
}
}
}
IMAGINGJAVA-8701 DJVU to PDF: First page is blank
try (DjvuImage image = (DjvuImage)Image.load("Sample1.djvu"))
{
image.save("Sample1.pdf", new PdfOptions());
}
IMAGINGJAVA-8700 Fix PS (EPS) file export
try (Image image = Image.load("input.ps"))
{
image.save("output.png");
}
IMAGINGJAVA-8691 EMF to PDF conversion: text doesn’t wrap
try (EmfImage emfImage = (EmfImage) Image.load("50123_pg1.emf"))
{
// The original canvas is too large, resize to A4, 72 DPI
emfImage.resizeCanvas(new Rectangle(0, 0, 595, 842));
emfImage.save("50123_pg1.pdf");
}
IMAGINGJAVA-8688 Cannot convert the CDR image to DXF format
try (Image image = Image.load("Laser Cut Christmas Gift New Year Night Lamp CDR File.cdr"))
{
image.save("result.dxf", new DxfOptions()
{{
setVectorRasterizationOptions(new VectorRasterizationOptions()
{{
setPositioning(PositioningTypes.Relative);
}});
});
}
The error has been fixed, but the resulting image is not entirely correct.
This CDR versions (12) is not fully supported and no further development is planned.
More details: https://docs.aspose.com/imaging/net/supported-file-formats/
IMAGINGJAVA-8687 Support PNG loading with unexpected EOF & PNG loader optimization
try (Image image = Image.load("input.png"))
{
image.save("output.png");
}
IMAGINGJAVA-8686 Add options of modifying Dicom tags to the public API
try (DicomImage image = (DicomImage)Image.load("ttfm.dcm"))
{
image.getFileInfo().updateTagAt(33, "Test Patient"); // "Patient's Name"
image.getFileInfo().addTag("Angular View Vector", 234);
image.getFileInfo().removeTagAt(29); // "Station Name"
image.save("output.dcm");
}
IMAGINGJAVA-8668 EPS -> SVG: NotImplementedException The method or operation is not implemented
try (Image image = Image.load("input.eps"))
{
image.save("output.png");
}
IMAGINGJAVA-8618 ArgumentNullException while exporting a loaded PNG with 64 bpp into PNG with 32 bpp
try (Image image = Image.load("input.eps"))
{
image.save("output.png");
}