Uses 2596K of libraries. Click here for Pure Java version (4305L/29K/111K).
!7 p { BufferedImage img = cast time(f singleImageFromLastWebcam); ImageSurface is = showImage("Will upload in 3! Close window to stop this.", img); sleepSeconds(3); if (!is.isShowing()) { print("Upload cancelled."); ret; } setFrameTitle(is, "Uploading..."); S imageURL = uploadToImageServer(img, "User webcam image"); print("Image uploaded as " + imageURL); setFrameTitle(is, "Posting..."); if (postToStefansChat("[IMAGE] " + imageURL)) setFrameTitle(is, print("Posted image to chat!")); else setFrameTitle(is, print("Could not post image.")); }
Began life as a copy of #1009018
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1009023 |
Snippet name: | Upload PNG webcam image to Stefan's Chat [WORKS, but PNG is too big] |
Eternal ID of this version: | #1009023/7 |
Text MD5: | 3fb5bc55bfb051ab4ec9b14488a1abe8 |
Transpilation MD5: | 4a37477155b24488ddd905ace0ca6e8b |
Author: | stefan |
Category: | javax / desktop / camera |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-06-28 19:44:46 |
Source code size: | 603 bytes / 19 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 494 / 579 |
Version history: | 6 change(s) |
Referenced in: | #1009033 - Upload webcam image to Stefan's Chat [WORKS, uses JPG] |