Libraryless. Click here for Pure Java version (5142L/35K).
sS resizeImageOnServer_percent_jpeg(S imageID, double percent) { BufferedImage img1 = loadImage2(imageID); BufferedImage img = resizeImage(img1, iround(img1.getWidth()*percent/100)); S title = getSnippetTitle(imageID) + " [" + img.getWidth() + "*" + img.getHeight() + "]"; ret uploadJPEGToImageServer(title, img); }
Began life as a copy of #1023956
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1024313 |
Snippet name: | resizeImageOnServer_percent_jpeg [creates new JPEG on server, returns URL] |
Eternal ID of this version: | #1024313/3 |
Text MD5: | 1051eddea9315763910604a56c019110 |
Transpilation MD5: | 603594d9dd085ca732bd151d11144a43 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-08-01 21:10:03 |
Source code size: | 328 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 220 / 335 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |