Skip to content

Commit 551ac51

Browse files
author
Evgeniy Sidenko
committed
Updated upto Aspose.Imaging 22.8
1 parent 9362c99 commit 551ac51

File tree

4 files changed

+29
-3
lines changed

4 files changed

+29
-3
lines changed

Examples/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.aspose</groupId>
55
<artifactId>imaging-java-examples</artifactId>
6-
<version>22.7</version>
6+
<version>22.8</version>
77
<packaging>jar</packaging>
88
<properties>
99
<maven.compiler.source>1.8</maven.compiler.source>
@@ -15,14 +15,14 @@
1515
<dependency>
1616
<groupId>com.aspose</groupId>
1717
<artifactId>aspose-imaging</artifactId>
18-
<version>22.7</version>
18+
<version>22.8</version>
1919
<classifier>jdk16</classifier>
2020
<type>jar</type>
2121
</dependency>
2222
<dependency>
2323
<groupId>com.aspose</groupId>
2424
<artifactId>aspose-imaging</artifactId>
25-
<version>22.7</version>
25+
<version>22.8</version>
2626
<classifier>javadoc</classifier>
2727
<type>jar</type>
2828
</dependency>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package com.aspose.imaging.examples.ModifyingImages.jpeg;
2+
3+
import com.aspose.imaging.Image;
4+
import com.aspose.imaging.examples.Logger;
5+
import com.aspose.imaging.examples.Utils;
6+
import com.aspose.imaging.fileformats.jpeg.JpegImage;
7+
8+
public class JpegSavedQualityEstimation
9+
{
10+
public static void main(String[] args)
11+
{
12+
Logger.startExample();
13+
14+
// The path to the documents' directory.
15+
String dataDir = Utils.getSharedDataDir() + "/jpeg/";
16+
try (JpegImage image = (JpegImage) Image.load(dataDir + "test.jpg"))
17+
{
18+
boolean isNotDefaultQuality = image.getJpegOptions().getQuality() != 75;
19+
Logger.printf("isNotDefaultQuality = %b\n", isNotDefaultQuality);
20+
}
21+
22+
Logger.endExample();
23+
}
24+
}

Examples/src/main/java/com/aspose/imaging/examples/RunExamples.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import com.aspose.imaging.examples.ModifyingImages.gif.CreateGifUsingAddPage;
3333
import com.aspose.imaging.examples.ModifyingImages.gif.SupportGifFrameDurationAndNumberOfCycles;
3434
import com.aspose.imaging.examples.ModifyingImages.gif.SupportOfFullFrameGif;
35+
import com.aspose.imaging.examples.ModifyingImages.jpeg.JpegSavedQualityEstimation;
3536
import com.aspose.imaging.examples.ModifyingImages.jpeg.ReadAllEXIFTags;
3637
import com.aspose.imaging.examples.ModifyingImages.jpeg.ReadAndModifyJpegEXIFTags;
3738
import com.aspose.imaging.examples.ModifyingImages.jpeg.ReadSpecificEXIFTagsInformation;
@@ -112,6 +113,7 @@ public static void main(String[] args) throws IOException, InterruptedException,
112113
//// =====================================================
113114

114115
Logger.println("Running modifying and converting images tests:");
116+
JpegSavedQualityEstimation.main(args);
115117
UnifyExtractionOfRasterImagesEmbeddedInVectorFormats.main(args);
116118
ApsToPsd.main(args);
117119
PixelPerfectTextAlignment.main(args);
66.1 KB
Loading

0 commit comments

Comments
 (0)