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 |
Text Clipping Sass mixin | 2,593 Kb |
Key Press SVG illustration with CSS animation | 4,242 Kb |
Parallax backgrounds with walk cycle | 2,822 Kb |
Crisp lines at smaller sizes | 2,869 Kb |
Falling Down the Rabbit Hole | 4,578 Kb |
Spinner | 3,385 Kb |
Running on Web Animations API | 4,700 Kb |
Pure CSS Badge Logo | 5,155 Kb |
From walk to run | 2,128 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 |
Resize image | Happyhj | 1,892 Kb |
Formations | Cantelope | 5,731 Kb |
Commuter Line Tokyu 8500 | Pedox | 7,031 Kb |
Login with flip 3d animation | Mariusbalaj | 3,014 Kb |
CSS Grid Test | Ajaykarwal | 2,377 Kb |
VerbalExpressions Converter | Cmalven | 2,607 Kb |
Isometric css island | Xaddict | 2,950 Kb |
Canvas Background Effect | Sonick | 3,513 Kb |
Custom Select Element | Agrayson | 3,616 Kb |
Codero Sitemap | S1m0ne | 28,169 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!