go-png2ico

command module
v0.0.0-...-e27605f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2021 License: MIT Imports: 8 Imported by: 0

README

go-png2ico

What It Does

  • Create ICO file from PNG files
  • ICO use PNG format for storage
  • Minimum overhead(16byte) per PNG added
  • PNG header check for input files
  • PNG header check for output file to avoid mistake

What It Does Not

  • Change PNG to BMP inside ICO
  • Check file extension
  • Transform PNG

Limitation

  • ICO file always created from scratch
  • No append nor replace within existing ICO file
  • PNG to ICO only, other format/conversion not supported

Binary

https://github.com/J-Siu/go-png2ico/releases

Compile

go get github.com/J-Siu/go-png2ico
cd $GOPATH/src/github.com/J-Siu/go-png2ico
go install

Usage

go-png2ico
go-png2ico MIT License Copyright (c) 2021 John Siu
Support: https://github.com/J-Siu/go-png2ico/issues
Usage: go-png2ico <PNG file> <PNG file> ... <ICO file>
Debug: export _DEBUG=true

Repository

Contributors

Change Log

  • 1.0
    • Initial Commit
  • 1.0.1
    • Fix
      • debug log msg
      • error check
      • png detection
  • 1.0.2
    • Use mod
  • 1.0.3
    • Use github.com/J-Siu/go-helper
  • 1.0.4
    • Use Go 1.16

License

The MIT License

Copyright (c) 2021 John Siu

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL