Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

5
LINES

< > BotCompany Repo | #1027540 // resizeImageOnServer_png [creates new PNG on server, preserves transparency, returns URL]

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (5448L/37K).

sS resizeImageOnServer_png(S imageID, int newW) {
  BufferedImage img = resizeImage(loadImage2(imageID), newW);
  S title = getSnippetTitle(imageID) + " [" + img.getWidth() + "*" + img.getHeight() + "]";
  ret uploadPNGToImageServer(img, title);
}

Author comment

Began life as a copy of #1023956

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1027540
Snippet name: resizeImageOnServer_png [creates new PNG on server, preserves transparency, returns URL]
Eternal ID of this version: #1027540/3
Text MD5: 73272a028038c350bd7a6ee5262b9dc0
Transpilation MD5: 7f4a2421fbb4a9eadc8de4f5a15ac561
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-23 13:41:35
Source code size: 251 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 174 / 260
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)