Libraryless. Click here for Pure Java version (5624L/34K).
1 | static File resizeJPG(File in, File out, int newW) { |
2 | saveJPG(resizeImage(loadImage2(in), newW), out); |
3 | ret out; |
4 | } |
5 | |
6 | static File resizeJPG(File in, int newW) { |
7 | ret resizeJPG(in, replaceExtension(in, "." + newW + ".jpg"), newW); |
8 | } |
9 | |
10 | static File resizeJPG(int newW, File in) { |
11 | ret resizeJPG(in, newW); |
12 | } |
Began life as a copy of #1004225
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004890 |
Snippet name: | resizeJPG - resize JPG to new width, by default save as fileName.{newWidth}.jpg in same directory |
Eternal ID of this version: | #1004890/7 |
Text MD5: | cd980e4881628bf6469d22bd8fc891f4 |
Transpilation MD5: | 9441197aad77f86a27b05c7b551e8687 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-05-29 19:51:32 |
Source code size: | 316 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 557 / 641 |
Version history: | 6 change(s) |
Referenced in: | [show references] |