Crisp lines at smaller sizes

Developer
Size
2,869 Kb
Views
46,552

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 Previews

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;
}
Crisp lines at smaller sizes - Script Codes
Crisp lines at smaller sizes - Script Codes
Home Page Home
Developer Rachel Nabors
Username rachelnabors
Uploaded June 14, 2022
Rating 3.5
Size 2,869 Kb
Views 46,552
Do you need developer help for Crisp lines at smaller sizes?

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!

Rachel Nabors (rachelnabors) Script Codes
Create amazing art & images with AI!

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!