static File qoify(File imageFile) { if (isQOIFile(imageFile)) ret imageFile; loading "QOIfy" { BufferedImage img = loadImage2(imageFile); File destFile = replaceExtension(imageFile, ".qoi"); File atticFile = newFile(javaxDataDir("QOIfied original pictures"), imageFile.getName()); atticFile = makeFileNameUnique(atticFile); saveQOIVerbose(destFile, img); moveFileVerbose(imageFile, atticFile); print("Conversion done."); ret destFile; } }
Began life as a copy of #1015317
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
| Snippet ID: | #1035935 |
| Snippet name: | qoify - convert image file to QOI |
| Eternal ID of this version: | #1035935/1 |
| Text MD5: | 8ba161af8df2402a7aac716afea3b6f7 |
| Author: | stefan |
| Category: | javax / io |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-08-15 17:18:45 |
| Source code size: | 488 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 353 / 364 |
| Referenced in: | [show references] |