https://github.com/icemap/anime4ktool
Anime4K Java Build Tools
https://github.com/icemap/anime4ktool
Last synced: 10 months ago
JSON representation
Anime4K Java Build Tools
- Host: GitHub
- URL: https://github.com/icemap/anime4ktool
- Owner: Icemap
- Created: 2019-10-09T02:40:39.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-09T05:52:09.000Z (over 6 years ago)
- Last Synced: 2025-01-12T11:49:43.118Z (over 1 year ago)
- Language: Java
- Size: 1.21 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Anime4KTool
[](https://travis-ci.com/Icemap/Anime4KTool)
Anime4K Java implementation, upscale your png or gif picture
### Unit Test
- Run with "mvn test"
- Or you can run some test case only
- Test Case In src/test/java/com/github/icemap folder
### Result

### Usage
- PNG
~~~[java]
ConvertPic convertPic = new ConvertPic(20);
String testResPath = this.getClass().getResource("/").getPath();
BufferedImage img = ImageIO.read(new File(testResPath + "gintama.jpg"));
img = convertPic.picTo4K(img);
ImageIO.write(img, "png", new File(testResPath + "gintama-2x.png"));
~~~
- GIF
~~~[java]
ConvertGif convertGif = new ConvertGif(20);
String testResPath = this.getClass().getResource("/").getPath();
convertGif.gifTo4K(new FileInputStream(new File(testResPath + "sakura.gif")), testResPath + "sakura-2x.gif");
~~~
- You can see usage in unit case, too.