Skip to content

Commit

Permalink
Merge pull request #17 from cpbitmap/new-favicon
Browse files Browse the repository at this point in the history
Add new favicon
  • Loading branch information
ainsleyrutterford authored Dec 22, 2023
2 parents c58262c + eddb2e9 commit d46ffc5
Show file tree
Hide file tree
Showing 19 changed files with 18,436 additions and 28 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<br />
<p align="center">
<image width=75 src="./public/cpbitmap-icon.png" />
</p>

# [cpbitmap.github.io](https://cpbitmap.github.io)

![Website](https://img.shields.io/website?label=Website&url=https%3A%2F%2Fcpbitmap.github.io)
Expand Down Expand Up @@ -35,5 +40,5 @@ The action uses `next build` and `next export` to generate HTML, CSS, and JS fil

## Acknowledgements

- We only know how to convert cpbitmap images due to some clever guessing and trial and error by [Simon Whitehead](https://web.archive.org/web/20130917034207/http://www.codeproject.com/Articles/265333/Reading-Apple-iDevice-CPBitmap-files) in 2011.
- We only know how to convert `.cpbitmap` images due to some clever guessing and trial and error by [Simon Whitehead](https://web.archive.org/web/20130917034207/http://www.codeproject.com/Articles/265333/Reading-Apple-iDevice-CPBitmap-files) in 2011.
- The code used in this tool was originally written by [dr15 in this Stack Overflow answer](https://stackoverflow.com/a/48158807) to run in Node.js, so it has been slightly edited to run in the browser.
2 changes: 1 addition & 1 deletion components/FileInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const FileInput = ({
onClick={() => labelRef.current?.click()}
>
<UploadIcon />
&nbsp;Select cpbitmap file(s)
&nbsp;Select CPBitmap file(s)
</Button>
</label>
</>
Expand Down
2 changes: 1 addition & 1 deletion components/MetaTags/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const MetaTags = ({
<link
rel="mask-icon"
href="favicons/safari-pinned-tab.svg"
color="#5bbad5"
color="#d10000"
/>
<meta name="msapplication-TileColor" content="#2b5797" />
<meta name="theme-color" content="#ffffff" />
Expand Down
4 changes: 2 additions & 2 deletions components/Popover/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ export const Popover = ({
sx={{ fontSize: 2, color: success ? "success.fg" : "danger.fg" }}
>
{success
? " Successfully converted cpbitmap"
: "Could not convert cpbitmap"}
? " Successfully converted CPBitmap"
: "Could not convert CPBitmap"}
</Heading>
<IconButton
aria-label={"Close error window"}
Expand Down
4 changes: 2 additions & 2 deletions pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ class MyDocument extends Document {
{/* This is the default <head> for all pages across the website. */}
<MetaTags
siteUrl="https://cpbitmap.github.io/"
imageUrl="https://cpbitmap.github.io/cpbitmap-social-media-card.png"
imageUrl="https://cpbitmap.github.io/cpbitmap-social-card.png"
title="CPBitmap Converter"
description="A free online cpbitmap conversion tool. Convert cpbitmap files to PNG, JPEG, or TIFF."
description="A free online CPBitmap conversion tool. Convert CPBitmap files to PNG, JPEG, or TIFF."
author="Ainsley Rutterford"
/>
</Head>
Expand Down
37 changes: 21 additions & 16 deletions pages/about.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,21 @@ const About: NextPage = () => {
</Heading>
<Text as="p">
<StyledLink href="/">cpbitmap.github.io</StyledLink> is a free browser
based tool that can convert cpbitmap files to multiple image formats.
based tool that can convert <code>.cpbitmap</code> files to multiple
image formats.
</Text>
<Heading
as="h2"
sx={{
fontSize: 3,
}}
>
What is a cpbitmap file?
What is a CPBitmap file?
</Heading>
<Text as="p">
The cpbitmap file format is a proprietary format created by Apple to
store iOS background images. The most common examples are the{" "}
<code>LockBackground.cpbitmap</code> and{" "}
The <code>.cpbitmap</code> file format is a proprietary format created
by Apple to store iOS background images. The most common examples are
the <code>LockBackground.cpbitmap</code> and{" "}
<code>HomeBackground.cpbitmap</code> files found in iPhone or iPad
backups.
</Text>
Expand All @@ -55,10 +56,10 @@ const About: NextPage = () => {
<Text as="p">
If the output image is corrupt or looks like it has been stretched and
distorted, try selecting another iOS version and exporting again. The
cpbitmap format has changed slightly over the years and may change again
at some point in the future. This tool has been tested for iOS versions
up to iOS 15. If this tool is no longer working with a new version of
iOS, consider opening an issue on{" "}
<code>.cpbitmap</code> format has changed slightly over the years and
may change again at some point in the future. This tool has been tested
for iOS versions up to iOS 15. If this tool is no longer working with a
new version of iOS, consider opening an issue on{" "}
<StyledLink href="https://github.com/cpbitmap/cpbitmap.github.io">
GitHub
</StyledLink>
Expand All @@ -70,11 +71,13 @@ const About: NextPage = () => {
RangeError: The value &quot;...&quot; is invalid for option
&quot;size&quot;
</code>
, the cpbitmap file may be from an encrypted backup. Consider using{" "}
, the <code>.cpbitmap</code> file may be from an encrypted backup.
Consider using{" "}
<StyledLink href="https://www.iphonebackupextractor.com/">
this free tool
</StyledLink>{" "}
to extract the cpbitmap files from the encrypted backup. The cpbitmap
to extract the <code>.cpbitmap</code> files from the encrypted backup.
The <code>.cpbitmap</code>
files are stored in the <code>Home/Library/SpringBoard</code> path of
your device (accessible under &quot;expert mode&quot; in the free tool
linked above).
Expand All @@ -89,19 +92,21 @@ const About: NextPage = () => {
borderBottomStyle: "solid",
}}
>
How do we know how to convert cpbitmap files?
How do we know how to convert CPBitmap files?
</Heading>
<Text as="p">
Apple have never released any documentation about the layout of cpbitmap
files. We only know how to convert cpbitmap images due to some clever
guessing and trial and error by{" "}
Apple have never released any documentation about the layout of{" "}
<code>.cpbitmap</code>
files. We only know how to convert <code>.cpbitmap</code> images due to
some clever guessing and trial and error by{" "}
<StyledLink href="https://web.archive.org/web/20130917034207/http://www.codeproject.com/Articles/265333/Reading-Apple-iDevice-CPBitmap-files">
Simon Whitehead in 2011
</StyledLink>
.
</Text>
<Text as="p" mt={0}>
There are a few scripts that use his description to convert cpbitmap
There are a few scripts that use his description to convert{" "}
<code>.cpbitmap</code>
images to other formats, but there doesn&apos;t seem to be a working
browser based solution. The code used in this tool was originally
written by{" "}
Expand Down
6 changes: 3 additions & 3 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ const Home: NextPage = () => {
)}
{result === "failure" && (
<Popover success={false} onClose={() => setResult(undefined)}>
An error occurred while converting the cpbitmap file. Check your
browser&apos;s developer console to see the error. See the{" "}
<StyledLink href="about">About</StyledLink> page for help.
An error occurred while converting the <code>.cpbitmap</code> file.
Check your browser&apos;s developer console to see the error. See
the <StyledLink href="about">About</StyledLink> page for help.
</Popover>
)}
</div>
Expand Down
Binary file modified public/cpbitmap-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/cpbitmap-social-card.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/cpbitmap-social-media-card.png
Binary file not shown.
Binary file modified public/favicons/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/favicons/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/favicons/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/favicons/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/favicons/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/favicons/favicon.ico
Binary file not shown.
Binary file modified public/favicons/mstile-150x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d46ffc5

Please sign in to comment.