Skip to content

Instantly share code, notes, and snippets.

@ShiSHcat
ShiSHcat / how.md
Created June 1, 2022 19:24
Convert all CGBI pngs in a folder to standard PNGs

save this script as script.js

  1. install node.js
  2. npm i cgbi-to-png
  3. put your files in cgbi_in
  4. run script.js
  5. check your files in cgbi_out

Keybase proof

I hereby claim:

  • I am shishcat on github.
  • I am shishcat8214 (https://keybase.io/shishcat8214) on keybase.
  • I have a public key ASDtcXwj3Q6QmkFE-be9XU-DMSUhWNGpXZMQRiaw3qXU5Ao

To claim this, I am signing this object:

<?php
use Amp\Promise;
use Amp\Success;
use function Amp\call;
function generate($message){
$callable = function($message) {
if(($message["media"]??false)) {
foreach($message["media"]as $k=>$v) {
if(is_array($v)) {
$k2e = $v;