Skip to content

Instantly share code, notes, and snippets.

flopping around

Gonçalo Baltazar goncalomb

flopping around
Block or report user

Report or block goncalomb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
goncalomb / img2ico.php
Last active Aug 28, 2019
Function to create ICO images using the GD library in PHP.
View img2ico.php
// Author: Gonçalo Baltazar <>
// I place this code in the public domain.
* Output an ICO image to either the standard output or a file.
* It takes the same arguments as 'imagepng' from the GD library. Works by
* creating a ICO container with a single PNG image.
* This type of ICO image is supported since Windows Vista and by all major

Keybase proof

I hereby claim:

  • I am goncalomb on github.
  • I am goncalomb ( on keybase.
  • I have a public key whose fingerprint is 371E 4E46 355E 1A01 26F3 2DFB 8332 4011 5C12 E219

To claim this, I am signing this object:

You can’t perform that action at this time.