프로젝트
GitHub에서 보기
javierbyte/img2css
소개
모든 이미지를 순수 CSS로 변환합니다. box-shadow만 사용해 이미지를 재현합니다.
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- +10
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalimg2css
Convert any image to pure CSS.
- To use it go to https://javier.xyz/img2css
- Looking for a programmatic way to do this? See https://github.com/javierbyte/canvas-image-utils
- I also made a per-pixel animation experiment, see https://github.com/javierbyte/morphin
How does it work?
It has two different outputs, pure css shadow matrix [1] and base64 embedded image [2].
- Pure CSS: This output was created by resizing and setting each pixel as a box-shadow of a single pixel div, so no
imgtag orbackground-imageis needed. This can result in huge outputs, and the use of this output is not recommended for production unless there is no other option. - Base64: The entire image file is embedded inside the
<img>tag using base64, so no need external hosting is needed.
Development
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.
관련 프로젝트 살펴보기
불러오는 중…
