require( dirname( __FILE__ ) . '/class-php-ico.php' ); $source = dirname( __FILE__ ) . '/example.gif'; $destination = dirname( __FILE__ ) . '/example.ico'; $ico_lib = new PHP_ICO( $source, array( array( 32, 32 ), array( 64, 64 ) ) ); $ico_lib->save_ico( $destination ); $dirname="ico";