Convert any image to pure CSS. Recreates images using only box-shadows.
See the codeConvert any image to pure CSS.
It has two different outputs, pure css shadow matrix [1] and base64 embedded image [2].
img tag or background-image is needed. This can result in huge outputs, and the use of this output is not recommended for production unless there is no other option.<img> tag using base64, so no need external hosting is needed.pnpm install
pnpm dev
pnpm build writes the static site to out/. Pushing to main deploys it to the
gh-pages branch, which javier.xyz/img2css serves.
1,049 followers · starred Nov 2015
109 followers · starred Oct 2020
42 followers · starred May 2016
144 followers · starred Apr 2017
Convert any image to pure CSS. Recreates images using only box-shadows.
See the codeConvert any image to pure CSS.
It has two different outputs, pure css shadow matrix [1] and base64 embedded image [2].
img tag or background-image is needed. This can result in huge outputs, and the use of this output is not recommended for production unless there is no other option.<img> tag using base64, so no need external hosting is needed.pnpm install
pnpm dev
pnpm build writes the static site to out/. Pushing to main deploys it to the
gh-pages branch, which javier.xyz/img2css serves.
1,049 followers · starred Nov 2015
109 followers · starred Oct 2020
42 followers · starred May 2016
144 followers · starred Apr 2017