-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
49 changed files
with
1,188 additions
and
436 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
/.vagrant | ||
/.vscode | ||
/docs/build | ||
/env | ||
/fuzz/artifacts | ||
/fuzz/corpus | ||
/fuzz/coverage | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
Rendering | ||
========= | ||
|
||
Aspect Ratio | ||
------------ | ||
|
||
Inscriptions should be rendered with a square aspect ratio. Non-square aspect | ||
ratio inscriptions should not be cropped, and should instead be centered and | ||
resized to fit within their container. | ||
|
||
Maximum Size | ||
------------ | ||
|
||
The `ord` explorer, used by [ordinals.com](https://ordinals.com/), displays | ||
inscription previews with a maximum size of 576 by 576 pixels, making it a | ||
reasonable choice when choosing a maximum display size. | ||
|
||
Image Rendering | ||
--------------- | ||
|
||
The CSS `image-rendering` property controls how images are resampled when | ||
upscaled and downscaled. | ||
|
||
When downscaling image inscriptions, `image-rendering: auto`, should be used. | ||
This is desirable even when downscaling pixel art. | ||
|
||
When upscaling image inscriptions other than AVIF, `image-rendering: pixelated` | ||
should be used. This is desriable when upscaling pixel art, since it preserves | ||
the sharp edges of pixels. It is undesirable when upscaling non-pixel art, but | ||
should still be used for visual compatibility with the `ord` explorer. | ||
|
||
When upscaling AVIF and JPEG XL inscriptions, `image-rendering: auto` should be | ||
used. This allows inscribers to opt-in to non-pixelated upscaling for non-pixel | ||
art inscriptions. Until such time as JPEG XL is widely supported by browsers, | ||
it is not a recommended image format. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.