Crisp lines at smaller sizes
How do I make an crisp lines at smaller sizes?
A layering technique comickers have been using for years: Put linework on a high dpi layer above lower dpi colors--but now in your browser. Could be handy where file sizes are big, alpha channels are mandatory, and extra HTTP requests are ok.. What is a crisp lines at smaller sizes? How do you make a crisp lines at smaller sizes? This script and codes were developed by Rachel Nabors on 14 June 2022, Tuesday.
Crisp lines at smaller sizes - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Crisp lines at smaller sizes</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ /* The magic */
img.colored { background-image: url(http://stash.rachelnabors.com/codepen/crispylines/color-test_colors.png?1); background-size: 100% 100%;
}
/* Purely presentational, but I encourage you to play with the background colors and pattern! */
body { background: url(http://stash.rachelnabors.com/codepen/crispylines/bg_washi.png); color: #7c1948; text-align: center;
}
figure { display: inline-block; margin: 2em 1em 1em; vertical-align: top;
}
figure img { background-color: #ca97aa; border-radius: 200px / 357px;
}
p { margin: 1em auto; width: 800px; text-align: left;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <figure> <img src="http://stash.rachelnabors.com/codepen/crispylines/color-test_whole.png" class="whole"/> <figcaption><strong>Original: 142kb</strong></figcaption></figure>
<figure> <img src="http://stash.rachelnabors.com/codepen/crispylines/color-test_lines.png" class="colored"/> <figcaption> <strong>Layered: 93kb...</strong><br /> lines: 50kb<br/> colors: 43kb<br/> <strong>1 extra http request = 49kb savings</strong> </figcaption>
</figure>
<p>Above is a demonstration of a color management technique that comickers have been using to keep pre-press file sizes small for years. Because the human eye (and printers) are more sensitive to high-contrast values, line work is put on a high-dpi layer and colors are generally done at half as many dots per inch on a layer below. I've replicated the technique here by separating the colors from the lines, halving their width and height, and putting them as a background behind the linework image.</p>
<p>Please compare the file size and appearance differences. In some circumstances, this technique might be useful.</p>
<p>This is what the two separate images look like before stacking them:</p>
<img src="http://stash.rachelnabors.com/codepen/crispylines/color-test_colors.png" />
<img src="http://stash.rachelnabors.com/codepen/crispylines/color-test_lines.png" />
<!-- An unfulfilled project manager with a temper and anxiety problems. Often referred to as "The Pitbull" when she's not in the room. -->
</body>
</html>
Crisp lines at smaller sizes - Script Codes CSS Codes
/* The magic */
img.colored { background-image: url(http://stash.rachelnabors.com/codepen/crispylines/color-test_colors.png?1); background-size: 100% 100%;
}
/* Purely presentational, but I encourage you to play with the background colors and pattern! */
body { background: url(http://stash.rachelnabors.com/codepen/crispylines/bg_washi.png); color: #7c1948; text-align: center;
}
figure { display: inline-block; margin: 2em 1em 1em; vertical-align: top;
}
figure img { background-color: #ca97aa; border-radius: 200px / 357px;
}
p { margin: 1em auto; width: 800px; text-align: left;
}
Developer | Rachel Nabors |
Username | rachelnabors |
Uploaded | June 14, 2022 |
Rating | 3.5 |
Size | 2,869 Kb |
Views | 46,552 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Geek Badge | 3,199 Kb |
Falling Down the Rabbit Hole | 4,578 Kb |
From walk to run | 2,128 Kb |
Tuna in the Window | 2,441 Kb |
Rolling a Ball with CSS Transitions | 2,694 Kb |
Text Clipping Sass mixin | 2,593 Kb |
Yarn Loader | 3,198 Kb |
Parallax backgrounds with walk cycle | 2,822 Kb |
Walkcycle with music loop | 2,398 Kb |
Down the Hipster Rabbit Hole | 3,004 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
LBCA - Mail canvas | Emnbdx | 3,856 Kb |
Beveled corners using CSS border attribute | DawsonMediaD | 2,136 Kb |
CSS Flip Animation | Bbodine1 | 2,525 Kb |
Caputre Cam with JS | KimmoCommit | 2,795 Kb |
Flat iOS 7 Safari Icon | Rss | 3,332 Kb |
Force Counter | Kenlauguico | 2,732 Kb |
Content Changer | Cliffpyles | 4,538 Kb |
Slider css only | Armandobau | 2,161 Kb |
Sample Profile Screen | OurDailyBread | 5,375 Kb |
Parallax-ish Sliding Content | Jdsteinbach | 2,748 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!