Libraryless. Click here for Pure Java version (5624L/34K).
static File resizeJPG(File in, File out, int newW) { saveJPG(resizeImage(loadImage2(in), newW), out); ret out; } static File resizeJPG(File in, int newW) { ret resizeJPG(in, replaceExtension(in, "." + newW + ".jpg"), newW); } static File resizeJPG(int newW, File in) { ret resizeJPG(in, newW); }
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: | 555 / 639 |
Version history: | 6 change(s) |
Referenced in: | [show references] |