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

10
LINES

< > BotCompany Repo | #1016372 // fixGIFAndReupload

JavaX fragment (include)

1  
sS fixGIFAndReupload(S imageID) {
2  
  File f = loadBinarySnippet(imageID);
3  
  S name = getSnippetTitle(imageID);
4  
  Var<byte[]> var = new Var;
5  
  temp tempSetThreadLocal(loadBufferedImageFixingGIFs_output, var);
6  
  loadBufferedImageFixingGIFs(f);
7  
  byte[] data = var!;
8  
  assertNotNull("Could not fix GIF: " + imageID, data);
9  
  ret infoBoxAndReturn(uploadToImageServer_rawBytes(data, "fixedAnim_" + name));
10  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1016372
Snippet name: fixGIFAndReupload
Eternal ID of this version: #1016372/3
Text MD5: 77466b5a54915a596d0221e98ec18229
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-16 16:36:54
Source code size: 410 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 365 / 398
Version history: 2 change(s)
Referenced in: [show references]