Skip to content

Commit af71d37

Browse files
author
Evgeniy Sidenko
committed
Initial commit
0 parents  commit af71d37

File tree

12 files changed

+1200
-0
lines changed

12 files changed

+1200
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target

README.md

Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
# Aspose.Imaging.HEIC.Adapter for Java
2+
3+
![Openize.HEIC](publish/aspose_adapter_java_heic.svg)
4+
5+
**Aspose.Imaging.HEIC.Adapter for Java** is an extension for [Aspose.Imaging for Java](https://products.aspose.com/imaging/java/) providing support of [Openize.HEIC](https://github.com/openize-com/openize-heic-java/), this allows you to use the functions of both libraries as a single whole and expand export between formats. This adapter supports exporting HEIC to formats Png, Tiff, Pdf, Svg, Jpeg, Gif, Bmp, Emf, Wmf, J2k, Webp, [etc...](https://docs.aspose.com/imaging/java/supported-file-formats/)
6+
7+
## Platform Dependence
8+
9+
Aspose.Imaging.HEIC.Adapter for Java can be used to develop applications on Windows, Linux, macOS. The supported platforms include Java >= 1.8.
10+
11+
## License
12+
The MIT License (MIT)
13+
More details here [LICENSE.txt](publish/LICENSE.txt)
14+
15+
## Getting Started
16+
17+
Are you ready to give Aspose.Imaging.HEIC.Adapter for Java a try?
18+
19+
### **Installing from Maven Repository**
20+
Aspose hosts all Java APIs on [Maven repository](https://releases.aspose.com/java/repo/).
21+
22+
**Specify Maven Repository Configuration**
23+
First you need to specify Aspose Maven Repository configuration / location in your Maven pom.xml as follows:
24+
25+
``` xml
26+
27+
<repositories>
28+
<repository>
29+
<id>AsposeJavaRepo</id>
30+
<name>Aspose Java Repository</name>
31+
<url>https://releases.aspose.com/java/repo/</url>
32+
</repository>
33+
</repositories>
34+
35+
```
36+
37+
**Define Aspose.Imaging for Java API Dependency**
38+
39+
Then define Aspose.Imaging for Java API dependency in your pom.xml as follows:
40+
41+
``` xml
42+
43+
<dependencies>
44+
<dependency>
45+
<groupId>com.aspose</groupId>
46+
<artifactId>aspose-imaging</artifactId>
47+
<version>25.4</version>
48+
 </dependency>
49+
<dependency>
50+
<groupId>openize</groupId>
51+
<artifactId>openize-heic</artifactId>
52+
<version>25.4</version>
53+
</dependency>
54+
<dependency>
55+
<groupId>com.aspose</groupId>
56+
<artifactId>aspose-imaging-heic-adapter</artifactId>
57+
<version>25.4</version>
58+
</dependency>
59+
60+
<!-- if you need a documentation, please add the following dependency. For example it could be useful for IDE. -->
61+
<dependency>
62+
<groupId>com.aspose</groupId>
63+
<artifactId>aspose-imaging</artifactId>
64+
<version>25.4</version>
65+
<classifier>javadoc</classifier>
66+
 </dependency>
67+
<dependency>
68+
<groupId>com.aspose</groupId>
69+
<artifactId>aspose-imaging-heic-adapter</artifactId>
70+
<version>25.4</version>
71+
<classifier>javadoc</classifier>
72+
 </dependency>
73+
</dependencies>
74+
75+
```
76+
77+
After performing above steps, Aspose.Imaging for Java dependency will finally be defined in your Maven Project.
78+
Get more information here:
79+
[Java Image Processing Library or API can be installed through Maven.](https://docs.aspose.com/imaging/java/installation/)
80+
81+
82+
## Product dependencies
83+
This product is dependent on :
84+
- [Aspose.Imaging Java is distributed under Aspose EULA license](https://www.conholdate.app/viewer/view/my6hZebP2Hvz3brV/aspose_end-user-license-agreement_2023-11-20.pdf.pdf);
85+
- [Openize.HEIC is distributed under Openize.HEIC license](https://github.com/openize-heic/Openize.HEIC-for-Java/blob/main/LICENSE);
86+
- [Openize.IsoBmff that is distributed under MIT License](https://github.com/openize-heic/Openize.HEIC-for-Java/blob/main/Openize.IsoBmff/LICENSE).
87+
88+
## Usage example
89+
90+
91+
### Export HEIC to Png
92+
93+
```java
94+
95+
import com.aspose.imaging.heic.adapter.*;
96+
import com.aspose.imaging.imageoptions.*;
97+
98+
// You need this only once
99+
HEICImage.register();
100+
try (Image image = com.aspose.imaging.Image.load("example.heic"))
101+
{
102+
image.save("result.png");
103+
}
104+
```
105+
106+
### Export HEIC to Jpg
107+
108+
```java
109+
import com.aspose.imaging.heic.adapter.*;
110+
import com.aspose.imaging.imageoptions.*;
111+
112+
// You need this only once
113+
HEICImage.register();
114+
try (Image image = com.aspose.imaging.Image.load("example.heic"))
115+
{
116+
image.save("result.jpg", new JpegOptions());
117+
}
118+
```
119+
120+
121+
### Export HEIC to Pdf
122+
123+
```java
124+
import com.aspose.imaging.heic.adapter.*;
125+
import com.aspose.imaging.imageoptions.*;
126+
127+
// You need this only once
128+
HEICImage.register();
129+
try (Image image = com.aspose.imaging.Image.load("example.heic"))
130+
{
131+
image.save("result.pdf", new PdfOptions());
132+
}
133+
```
134+
135+
136+
### Export HEIC to Tiff
137+
138+
```java
139+
import com.aspose.imaging.heic.adapter.*;
140+
import com.aspose.imaging.imageoptions.*;
141+
142+
// You need this only once
143+
HEICImage.register();
144+
try (Image image = com.aspose.imaging.Image.load("example.heic", HEICLoadOptions.create()))
145+
{
146+
image.save("result.tiff", new TiffOptions(TiffExpectedFormat.TiffJpegRgb));
147+
}
148+
```
149+
150+
### Export HEIC to Svg
151+
152+
```java
153+
import com.aspose.imaging.heic.adapter.*;
154+
import com.aspose.imaging.imageoptions.*;
155+
156+
// You need this only once
157+
HEICImage.register();
158+
try (Image image = com.aspose.imaging.Image.load("example.heic", HEICLoadOptions.create()))
159+
{
160+
image.save("result.svg", new SvgOptions());
161+
}
162+
```

pom.xml

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>com.aspose</groupId>
8+
<artifactId>aspose-imaging-heic-adapter</artifactId>
9+
<version>25.4</version>
10+
<name>Aspose.Imaging.HEIC.Adapter for Java</name>
11+
<description>Aspose.Imaging.HEIC.Adapter Combines 2 products Aspose.Imaging and Openize.HEIC, this allows to use the functions of both libraries as a single whole and expand export between formats HEIC format can be exported to all formats supported by Imaging, for example Png, Tiff, Pdf, Svg, Jpeg, Gif, Bmp, Emf, Wmf, J2k, Webp etc.</description>
12+
<url>https://products.aspose.com/imaging/java</url>
13+
14+
<organization>
15+
<name>Aspose Pty Ltd.</name>
16+
<url>https://www.aspose.com/</url>
17+
</organization>
18+
19+
<licenses>
20+
<license>
21+
<name>MIT License</name>
22+
<url>publish/LICENSE.txt</url>
23+
</license>
24+
</licenses>
25+
26+
<properties>
27+
<maven.compiler.source>1.8</maven.compiler.source>
28+
<maven.compiler.target>1.8</maven.compiler.target>
29+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
30+
</properties>
31+
32+
<repositories>
33+
<repository>
34+
<id>aspose-maven-repository</id>
35+
<url>https://repository.aspose.com/repo/</url>
36+
</repository>
37+
</repositories>
38+
39+
<dependencies>
40+
<dependency>
41+
<groupId>org.testng</groupId>
42+
<artifactId>testng</artifactId>
43+
<version>6.8.8</version>
44+
<scope>test</scope>
45+
</dependency>
46+
<dependency>
47+
<groupId>org.jacoco</groupId>
48+
<artifactId>org.jacoco.agent</artifactId>
49+
<version>0.8.12</version>
50+
<classifier>runtime</classifier>
51+
<scope>test</scope>
52+
</dependency>
53+
<dependency>
54+
<groupId>com.aspose</groupId>
55+
<artifactId>aspose-imaging</artifactId>
56+
<version>25.4</version>
57+
</dependency>
58+
<dependency>
59+
<groupId>com.aspose</groupId>
60+
<artifactId>aspose-imaging</artifactId>
61+
<version>25.4</version>
62+
<classifier>javadoc</classifier>
63+
</dependency>
64+
<dependency>
65+
<groupId>openize</groupId>
66+
<artifactId>openize-heic</artifactId>
67+
<version>25.4</version>
68+
</dependency>
69+
</dependencies>
70+
71+
<build>
72+
<plugins>
73+
<plugin>
74+
<groupId>org.apache.maven.plugins</groupId>
75+
<artifactId>maven-surefire-plugin</artifactId>
76+
<version>3.5.2</version>
77+
</plugin>
78+
<plugin>
79+
<groupId>org.jacoco</groupId>
80+
<artifactId>jacoco-maven-plugin</artifactId>
81+
<version>0.8.12</version>
82+
<executions>
83+
<execution>
84+
<phase>process-test-classes</phase>
85+
<goals>
86+
<goal>prepare-agent</goal>
87+
</goals>
88+
</execution>
89+
<execution>
90+
<id>report</id>
91+
<phase>post-integration-test</phase>
92+
<goals>
93+
<goal>report</goal>
94+
</goals>
95+
<configuration>
96+
<formats>
97+
<format>XML</format>
98+
<format>HTML</format>
99+
</formats>
100+
</configuration>
101+
</execution>
102+
</executions>
103+
</plugin>
104+
<plugin>
105+
<groupId>org.apache.maven.plugins</groupId>
106+
<artifactId>maven-jar-plugin</artifactId>
107+
<version>3.4.2</version>
108+
<configuration>
109+
<archive>
110+
<addMavenDescriptor>false</addMavenDescriptor>
111+
<index>true</index>
112+
<manifest>
113+
<addDefaultEntries>true</addDefaultEntries>
114+
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
115+
<addBuildEnvironmentEntries>true</addBuildEnvironmentEntries>
116+
</manifest>
117+
<manifestEntries>
118+
<Copyright>© Aspose 2002-2025. All Rights Reserved.</Copyright>
119+
</manifestEntries>
120+
</archive>
121+
</configuration>
122+
</plugin>
123+
</plugins>
124+
125+
<resources>
126+
<resource>
127+
<directory>publish</directory>
128+
<targetPath>META-INF</targetPath>
129+
<filtering>false</filtering>
130+
<includes>
131+
<include>LICENSE.txt</include>
132+
</includes>
133+
</resource>
134+
</resources>
135+
</build>
136+
</project>

publish/LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2019-2025 Aspose Pty Ltd.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 17 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)