mirror of
https://github.com/TomHodson/tomhodson.github.com.git
synced 2025-06-26 10:01:18 +02:00
add test page
This commit is contained in:
parent
3c1aa70615
commit
9e04dbae3a
@ -14,7 +14,9 @@
|
||||
<!-- Theme tags -->
|
||||
<meta name="theme-color" content="#fcfcfc">
|
||||
<link rel="icon" type="image/x-icon" href="/favicon.ico">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/assets/images/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" href="/favicon/android-chrome-512x512.png" media="(prefers-color-scheme: light)">
|
||||
<link rel="icon" type="image/png" href="/favicon/android-chrome-512x512.png" media="(prefers-color-scheme: dark)">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
|
||||
|
||||
<!-- Description tags -->
|
||||
{% if page.excerpt %}
|
||||
|
@ -3,6 +3,7 @@ title:
|
||||
layout: post
|
||||
excerpt: A one sentence summary.
|
||||
draft: true
|
||||
redirect_from: /template/
|
||||
|
||||
# Just a helper for the path if the page has lots of images.
|
||||
images: /assets/images/2024
|
||||
@ -361,4 +362,12 @@ function animate() {
|
||||
orbitControls.update();
|
||||
renderer.render(scene, camera);
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
|
||||
<figure class="multiple">
|
||||
<img src="/assets/images/alpha_test/original.jpg" class = "no-dim">
|
||||
<img src="/assets/images/alpha_test/white_subtracted.png" class = "no-dim">
|
||||
<img src="/assets/images/alpha_test/white_subtracted.png" class = "no-dim" style="filter: brightness(2);">
|
||||
<img src="/assets/images/alpha_test/ai_subtracted.png">
|
||||
<figcaption> Here are some images, (top left) original, (top right) white subtracted and replaced with alpha, (bottom left) same but brightened, (bottom right) ai background removal tool (loses shadow) </figcaption>
|
||||
</figure>
|
@ -387,9 +387,14 @@ img.invertable {
|
||||
--theme-bg-color: #222;
|
||||
--theme-subtle-outline: oklch(50% 0 50);
|
||||
}
|
||||
img:not(.invertable) {
|
||||
|
||||
// Two main image classes are "invertable" i.e look good inverted
|
||||
// and "no-dim" i.e don't get dimmed in night mode
|
||||
// All other images get dimmed in night mode
|
||||
img:not(.invertable):not(.no-dim) {
|
||||
opacity: 0.75;
|
||||
}
|
||||
|
||||
svg.invertable,
|
||||
img.invertable {
|
||||
opacity: 1;
|
||||
|
BIN
apple-touch-icon.png
Normal file
BIN
apple-touch-icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.7 KiB |
BIN
assets/images/alpha_test/ai_subtracted.png
Normal file
BIN
assets/images/alpha_test/ai_subtracted.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 155 KiB |
BIN
assets/images/alpha_test/original.jpg
Normal file
BIN
assets/images/alpha_test/original.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 155 KiB |
BIN
assets/images/alpha_test/white_subtracted.png
Normal file
BIN
assets/images/alpha_test/white_subtracted.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 664 KiB |
Loading…
x
Reference in New Issue
Block a user