Skip to content

cpbitmap/cpbitmap.github.io

Repository files navigation


Website typescript license

A free browser based tool that can convert .cpbitmap files to multiple image formats.

Usage

Simply navigate to https://cpbitmap.github.io, select your .cpbitmap files from your file browser, choose the output file format and iOS version, and click convert! For troubleshooting, have a look at https://cpbitmap.github.io/about.

Development

First, clone the repo and install any dependencies:

git clone git@github.com:cpbitmap/cpbitmap.github.io.git
npm ci

All npm dependencies should now be installed. A development server can now be run using:

npm run dev

Navigate to http://localhost:3000 with a browser to see a local version of the site.

Deployment

The site should automatically be deployed to https://cpbitmap.github.io by a GitHub action (.github/workflows/deploy.yml) that is triggered when any code is pushed to the main branch.

The action uses next build and next export to generate HTML, CSS, and JS files which can be served statically. Once these files are generated, the github-pages-deploy-action is used to push the generated files to the gh-pages branch which is used by GitHub pages to serve the files.

Acknowledgements

  • We only know how to convert .cpbitmap images due to some clever guessing and trial and error by Simon Whitehead in 2011.
  • The code used in this tool was originally written by dr15 in this Stack Overflow answer to run in Node.js, so it has been slightly edited to run in the browser.