Tuesday, July 26, 2016

How to select the perfect image format

http://ift.tt/2a3OEW3

[– This is an advertorial post on behalf of Cloudinary –]

JPEGs, PNGs, and GIFs — oh my! Most web developers only learn which format to use through trial, error, and long experience. And almost nobody understands how these formats actually work.

In this article, we’ll take a high-level look at each formats’ compression algorithms, in order to understand how their differing strategies make them more or less appropriate for different kinds of images. Then, we’ll tour a few next-generation image formats (like WebP and JPEG-XR) and see how we can use smart servers to take advantage of these powerful (but not yet universally-supported) formats, today.

Let’s kick things off with a dear old friend…

JPEG

Allow me, for a moment, to spend some time appreciating the venerable, amazing, JPEG. The twenty-five-year-old bag-of-algorithms that is ISO 10918 aka the JPEG standard has stood the test of time.

So, how does it work? And what is it good for?

JPEG compression carves an image up into 8×8-pixel-blocks, and then does something a little bit crazy to them, with a whole lot of math. It converts each block’s pixels—lists of R, G, and B values, mapped to sequential points in space—into a list of coefficients, used in equations which describe the block in terms of waves of energy. In technical terms, the JPEG compression algorithm translates an image’s information from the spatial domain to the frequency domain.

Practically, this means that JPEG is very good at compressing continuous-tone images: images with a tremendous number of colors, and smooth transitions between them. In other words, JPEG assumes that your image is going to look more or less like a photograph.

 

Conversely, the JPEG format is terrible at compressing images with crisp edges or high-energy, noisy textures—it’ll put rings around sharp edges and blur out fine detail.

 

In order to compress these images well, we to employ different compression algorithms. Enter our next format:

GIF

In the early days of the web, if an image wasn’t a JPEG, it was a GIF.

The GIF format uses the LZW compression algorithm, which is far simpler than JPEG’s mathemagic. Essentially, the LZW algorithm scans over your image data and generates very short codes for the parts of it that repeat; LZW shortens repetition. Which means that the GIF format is good at compressing images that have large chunks of identical or repetitive data. Images that only have a few colors, in broad swaths, with sharp transitions between them can be stored efficiently and losslessly as GIFs.

 

And even though it’s a simple format, GIF sports a pair of fancy features: transparency and animation.

 

But… GIF is terrible at compressing things that have even a moderate number of colors; heck, the format has a baked-in, hard, 256-color limit. Converting an image with more than that number of colors into a GIF results in lossy posterization, which looks awful.

 

 

In short, GIF and JPEG have opposite and complementary strengths. They made a killer team in the web’s early days.

But unresolved patent questions surrounding the LZW algorithm inspired a few very smart individuals to take a second crack at designing a lossless image format for the web.

PNG

PNG excels with the same sorts of images that GIF does, and brings a few added benefits:

  • No 256 color limit
  • Alpha channel transparency (so a pixel can be partially-transparent, and not simply all-transparent or fully-opaque)
  • In all but a few edge cases, superior compression

 

This image from Wikipedia shows off PNG’s ability to compress a full-color image with semi-transparent pixels pretty dang well.

How does PNG beat GIF, when it comes to compression? By adding some layers to its compression stack…

First, the PNG algorithm tries to reduce the amount of data it will need to store by using the pixels that it already knows about to predict the ones that it doesn’t. The format features five different prediction strategies, but basically, the PNG assumes that pixels next to each other will be similar. If this assumption proves true, PNG saves data by only storing the difference between its prediction and the actual value; small numbers take up less space than large ones.

Second, PNG cuts out repetition by allowing the image to refer to previous, identical pixel sequences (instead of storing the same data twice) using an algorithm called LZ77. If you squint, PNG’s LZ77 and GIF’s LZW are achieving the same ends—cutting out repetition—but get there via means which are distinct enough to evade patent lawyers. Everybody wins!

And then, finally, having done all of that, PNG uses a process called “Huffman coding” to boil the remaining values down even further by generating the smallest-possible codes for the most common values (incidentally, the JPEG format uses Huffman coding as a last-step as well).

Combining all three of these (lossless) techniques provides huge benefits over GIF’s single strategy. And sophisticated tools can provide even greater compression ratios by altering the original image data lossily before it’s run through this gauntlet, in order to make it more compression-friendly.

Stepping back, all that you need to know is this: PNG will perform worse than JPEG when it comes to photographs, and better than GIF almost always. So, use it for images with crisp edges and broad swaths of solid color or precisely repeated patterns.

The next generation

As of this writing, those three formats—JPEG, GIF, and PNG—are the only image formats with universal support. Which is to say, they’re the only formats that developers can actually use. But new, cutting edge formats are already here—and they’re spectacular.

WebP

WebP is an offshoot of Google’s WebM video format; the core of it’s compression strategy is predictive, which is to say, it takes the simple predictive strategy used by the PNG format to the next level. WebP uses one of up to sixteen different prediction strategies for every (variable-sized) block in the image, and can optionally either losslessly or lossily compress the residual difference between the predicted and actual values. The format’s relative complexity provides it with a lot of flexibility; it’s good for a wide variety of imagery (both graphic, if you choose its lossless settings, and photographic, if you go lossy), with (generally) better compression than either PNG or JPEG.

But, it’s Google’s format and it is only supported in Chrome at the moment.

JPEG-XR

Microsoft’s next-gen-format-of-choice, JPEG-XR layers a bunch of new techniques on top of the basic mechanics of JPEG compression, enabling:

  • Lossless compression
  • More efficient lossy compression
  • Alpha-channel semi-transparency

Like WebP, JPEG-XR is a lot more complex, performant, and less-well-supported than its predecessors. Right now, the format is only supported in Internet Explorer and Edge.

How to use the formats of tomorrow, today

Is there any way for us to use these next-gen formats, right now? There is!

New markup allows developers to supply the same image in multiple formats, and lets the browser decide which one to load out of the bunch. Unfortunately, this markup can get a little complex:

<picture>
<source type="image/webp"
       srcset="sunset.wepb" />
<source type="image/vnd.ms-photo"
       srcset="sunset.jxr" />
<img src="sunset.jpg"
    alt="A colorful sunset" />
</picture>

Fortunately, there’s another way forward. Front-end engineers can shift this complexity to the back-end, employing smart servers that can send different users different resources from the same URL.

Using a service like Cloudinary, developers can deploy dynamic, adaptively-compressed images by adding a few simple characters to their URLs. Stick f_auto onto a Cloudinary URL, and you get adaptability without adding any complexity. The picture markup above boils back down to:

<img src="http://ift.tt/2a3OopQ"
    alt="A colorful sunset" />

How does this work? Turns out, clients tell servers which formats they support when they request image resources from servers. A smart server, then, can send different clients different resources, based on the information contained within their requests.

And that’s not all that a smart server can do–when you tack on a q_auto too, Cloudinary will automatically figure out not only which format will work best for each client, but also which specific compression settings will work well for your particular image, saving you from having to remember anything at all about each formats’ complex internal workings. So! Stop reading, and sign up for a free account today.

 

[– This is an advertorial post on behalf of Cloudinary –]

100 High-Quality Business Flyer Templates – only $17!

Source

Vía Webdesigner Depot http://ift.tt/2ahQMwM

Monday, July 25, 2016

Essential design trends, July 2016

http://ift.tt/2akEv9d

There’s a lot of overlap in the biggest design themes of July. In many of the examples below, you’ll see that multiple trends are used in many of the examples. That’s because many of the trends are simple techniques that can be added to almost any type of design.

This is a showcase of micro-trends. What’s particularly nice about these small-scale trends is that you can use (or remove) them without having to do a full-scale redesign. They can serve as little tweaks to help you freshen up a page for a short time with an on-trend element.

Here’s what’s trending in design this month:

1. Color overlay on imagery

Color overlays are a visually interesting way to draw the eye when the art is less than stellar. It can be a good way to add color and intrigue to a plain photo, stock imagery or add color when the image is lacking that certain spark.

Use of color overlays varies greatly. While bright colors are one of the most popular options, a muted or sepia overlay can change the mood of a project or add just the right vintage feel, such as with the Lyrix website, below.

When it comes to color overlay, solid colors are typically the most popular option. Bright colors are common and many of the same hues that are popular with other design trends such as flat and material design are commonly used. (Here’s that layering of trends mentioned in the intro.)

Finally, when thinking about a color overlay, consider a gradient, duotone or multi-color effect. This technique can work particularly well with an image that’s easily identifiable or with imagery that’s flat on its own, such as the photo for NYC Pride, below. The reason you are drawn into the website design is the bright color overlay, not the image itself.

(Note with NYC Pride’s website, in particular, that another trend is making a comeback—the gradient. More gradients are starting to show up in design projects and we’ll look at this trend in greater detail next month.)

2. Tiny corner logos

For a while logos were one of the most dominant elements in a website design. Designers were using oversized version of brand names and logotypes to create interesting aesthetics.

Now they are taking to opposite approach.

Logos are being used smaller than ever. But that’s not the only commonality when it comes to the way small logos are being used. They also appear in the same location in almost every example of this trend – the top left corner.

The placement is not that surprising. The top left is a common logo placement location in website design and has been for some time due the the idea that users will read the site from top left to right in an F-shaped pattern.

What is surprising is how small the logos actually are in relationship to the rest of the design. In some instances, these logos are designed to symmetrically match the hamburger menu icon. So they are exceptionally small.

The Brave People logo, for example below, is only slightly larger than the menu icon and is designed to look almost like an icon in itself, with white novelty text inside a black box. What’s nice about this technique is that it gives the rest of the images and text on the canvas plenty of room to be showcased. Brave People uses plenty of video snippets and layered boxes of information to draw users through the website design. Having a small logo helps the eyes stay in the right place and move through the content with ease.

Coats uses a similar concept, balancing the tiny logo on side of the screen and the menu icon on the other. The design further carries the concept of the logo in iconography throughout the site so the user always has a visual reminder of what website they are on.

3. “Make you look” images or video

“Made you look!”

That’s what many of the hero images and videos on websites are screaming as you land on them. Images that are odd, unusual or just require a little thought are becoming a popular way to draw users in and keep them on the website for a longer time period.

You want to understand what is happening in the image or whether that’s a dog or wolf (Instynct, below), what an out of place element means (Bullhorn, below) or what is going to happen next as in the video painting for Nachume Miller (below).

So what makes a make-you-look image? It has to be different and interesting. It has to be high quality and contain a visual that you don’t see every day. The visual should make you wonder about something, ask a question or desire to learn more.

The image or video will grab your attention and hold it just a bit longer than a picture of a cheeseburger on the McDonald’s website. It’s that element of surprise or whimsy or wonder that makes it something users can turn away from. When you go back to it, or watch the entirety of a video loop or just can’t get the image out of your head, then you know it will make others look as well. (Go big and bold, or go home!)

Conclusion

It’s fun to see multiple trend converge as many of these websites exemplify. Tiny logos might be one of the elements that most dominant right now. It’s one of those things you might not even notice until you start looking for it, and then you notice this concept being used everywhere.

Plus, it really gives the design some room for other elements by getting the logo out of the way, which is why is works in combination with other trends so very well.
What trends are you loving (or hating) right now? I’d love to see some of the websites that you are fascinated with. Drop me a link on Twitter; I’d love to hear from you.

Lifetime Access to ALL WP & HTML Themes from TeslaThemes – only $59!

Source

Vía Webdesigner Depot http://ift.tt/2a5EOaX

Sunday, July 24, 2016

Popular design news of the week: July 18, 2016 – July 24, 2016

http://ift.tt/2an2HY3

Every week users submit a lot of interesting stuff on our sister site Webdesigner News, highlighting great content from around the web that can be of interest to web designers. 

The best way to keep track of all the great stories and news being posted is simply to check out the Webdesigner News site, however, in case you missed some here’s a quick and useful compilation of the most popular designer news that we curated from the past week.

Note that this is only a very small selection of the links that were posted, so don’t miss out and subscribe to our newsletter and follow the site daily for all the news.

Apple iOS 9.3.3 has a Great Secret Feature

 

The Perfect Design Tool

 

What’s New in JQuery 3.0

 

7 Tips for Designing Consistency

 

40 CSS Libraries, Frameworks and Tools from 2016

 

Draft U.S. Web Design Standards

 

This App Magically Turns B&W Photos into Color Ones

 

UI Kits Suck*

 

The Mind Blowing Amount of Mobile Activity

 

Using Animation to Enhance UX

 

New Google Ranking Study Shows Links are Incredibly Important

 

20 Common UX Mistakes in Ecommerce Websites

 

Google’s New App Might Be Better than Museums

 

Everything You Know About App Design is Wrong

 

40 Super Sleek Fonts for Clean Web Design

 

The Good, the Bad, and the Really Ugly of Pokemon Go

 

New Images Hint at a Dark Mode Hidden Within MacOS Sierra

 

A Psychological Approach to Designing Interfaces

 

Faroe Islands Fit Cameras to Sheep to Create Google Street View

 

Minority Report: Training Computers to Find Future Criminals

 

Glovo: Anything You Want, Delivered in Minutes.

 

Canva: Now Create Beautiful Designs on your iPhone

 

Fashion Brand Zara Steals la Artist’s Designs

 

Site Design: Suddencoffee.com

 

There’s More to Life than Being a F***ing Entrepreneur

 

Want more? No problem! Keep track of top design news from around the web with Webdesigner News.

Massive Discounts on Stock Photos – 84% off!

Source

Vía Webdesigner Depot http://ift.tt/2a9mprx

Saturday, July 23, 2016

Comics of the week #349

http://ift.tt/29UEabw

Every week we feature a set of comics created exclusively for WDD.

The content revolves around web design, blogging and funny situations that we encounter in our daily lives as designers.

These great cartoons are created by Jerry King, an award-winning cartoonist who’s one of the most published, prolific and versatile cartoonists in the world today.

So for a few moments, take a break from your daily routine, have a laugh and enjoy these funny cartoons.

Feel free to leave your comments and suggestions below as well as any related stories of your own…

Navigate safely

Oops…

 

Beyond reality TV

Can you relate to these situations? Please share your funny stories and comments below…

eBook: The Creative’s Guide to Freelancing by Jake Jorgovan – $12!

Source

Vía Webdesigner Depot http://ift.tt/2anxJSt

Wednesday, July 20, 2016

Be a better designer by designing less

http://ift.tt/29UkLbt

Designer’s block haunts you. If you’re a designer you’ve experienced it at one point or another — that feeling you’re stuck in a rut and it feels like you’ll be there forever. Even when you escape designer’s block you have other problems waiting for you. You can’t seem to create the design you want. You end up creating the same designs you always do. The images are different, but the layout, the output feels the same.

It’s not uncommon for designers to feel unoriginal or, like a fraud. It feels like everyone else is doing a better job than you, or just plain better. You look around and you see all of the beautiful and amazing things other designers create. Then you look at your work.

Work is frustrating when you don’t have a system… your system.

It’s common for designers to rely on inspiration sources. For many, that process is never really fleshed out. They find something that inspires them, then they work incredibly hard to create something original. Most struggle.

Read articles on designer’s block and they’ll share tips like: Go get a big cup of coffee, use more color, or try something new. Others suggest networking, staying positive or finding time for inspiration.

These tips, while helpful, don’t address the source of the problem. See, greatness isn’t innate. It’s engineered. Greatness comes from structure. Elite athletes, A-list movie stars, soldiers, you name it. Their success is engineered.

Okay, what does that have to do with designing?

Everything.

  • Soldiers study military strategy, endure operant conditioning, practice hand to hand combat, etc.
  • Doctors practice surgeries and memorize books; they study the body, pathology, processes, etc.
  • Athletes eat a high protein diet, practice their moves and lift weights.
  • Actors practice their lines, study linguistics to copy accents, master psychology, etc.

Can you see the theme? All-star professionals follow a system.

I’m not talking about a system or process you use to design something. This isn’t a process you use to do the work (most designers have that already). No, I’m talking about a system you use to improve yourself to enhance your wisdom, knowledge, understanding and creativity.

Most designers don’t have that kind of system. But every designer needs it. When designer’s block hits we try to force our way through. Conventional wisdom says “just keep designing”.

But the answer is actually the opposite. You become a better designer by designing less.

Whaaat?! Why should I design less?

Because you’re creatively malnourished. If you’re struggling with designers block it’s a sign you’re not getting what you need.

Let’s play pretend for a moment:

Imagine that you’re asked to run a marathon. You’re given a sponsor, professional grade equipment, the best trainers, etc. If you win the race your sponsor promises to give you 300,000 dollars, tax free. Sounds doable right?

Just one catch… you’re not allowed to eat food or drink water for 2 days before the race.

Still doable? For most of us the answer is no.

Designers are running a marathon without “food”. Almost immediately I hear “I use Behance or CSS zen garden, I’m not ‘malnourished’!” If I walk into the grocery store, put the food in my basket, and stare at it, am I full? Of course not! Because I have to eat the food. If I want to be satisfied, I have to make that food a part of me.

It’s no different for you.

As a designer you’re expected to create beauty, order, harmony, and direction. You’re expected to make purpose visual. If you don’t have what you need that becomes difficult. Because you can’t give what you don’t have. If you don’t have anything there’s nothing to give. If you don’t have enough, it shows in your work.

Well fed designers have lots to give

What if you’re malnourished? How do you become a well fed designer? Is there a way to ensure you have everything you need to create amazing and wonderful things?

You bet. Here’s how.

Create a list of places to eat.

If you’re experienced you already have a list of places to go when you need ideas, creativity or knowledge. Here’s a short list for those who are starting out.

Use this list, or build your own. Subscribe to or follow the publishers on your list. If possible, make your selection specific. Spend time looking around on these sites. It’s common for designers to feel guilty when they’re browsing instead of working. Ignore this feeling.

As you’re browsing take note of your (productive) thoughts and feelings.

  • What stands out to you?
  • What do you like?
  • Can you explain why you like it? Think about your answer.

Save anything and everything you find appealing. Add it to your favorites, save it with delicious or pocket. Come back to these later. Choose the items you want to steal

Am I encouraging you to steal someone’s work illegally? No. Am I asking you to share or post someone’s work illegally? Again no. Here’s what I’m suggesting: you copy their work privately, to learn.

Why?

Because everything is a remix. Kirby Ferguson, a New York filmmaker, created the series everything is a remix, where he shows that all “original” material builds off of or remixes material that came before it.

As people, everything we create is based on and influenced by other peoples work. He discovered that noteworthy creators used a simple formula to create amazing things. They copy, transform, and combine.

This is how you deal with designer starvation. All of our beloved movies, our favorite stories, even our technological advances, are remixes of other people’s work. And they all use this formula.

Transform what you’ve stolen

Add your personal touch, your flourishes. Add details to the items you’ve copied. Change them, turn them into something else.

When you transform a design you internalize it. You gain a deep and intuitive understanding of the pieces you’ve copied. You learn how to work with various styles, how to compensate for mistakes and differences, how to flow with someone else’s style.

As a designer, this is how you eat. Eat until you’re full… Then, combine your changes with something else. Combine your transformations; merge them together and you create something completely new. Do it successfully and you’ve absorbed the details and nuances of those you learned from.

Copy, transform, combine.

This system makes designer malnourishment a thing of the past. As you use this system to learn and grow you’ll find that ideas are everywhere. Use this system consistently and your skill grows by leaps and bounds.

You’ll become the amazing designer you want to be, simply by following a system. Ignore the system and your skill begins to fade. The amount of time it takes to lose a skill is proportional to the amount of time it took for you to acquire it. The more consistent you are with your system, the deeper your developmental roots.

At some point though, you have to design something

It’s true. You have to build or create something if you want to get better. But the quality of your designs depends on whether you’ve eaten. The more you eat the better you’ll perform. But only if you use what you’ve eaten. Eating alone won’t get you the results you’re looking for. You have to use what you’ve taken in.

Creative starvation creates designer’s block. If you’re a designer you’ve experienced it at one point or another. This time it’s different. You understand the cause, you won’t be stuck in a rut forever. You have a system.

The Icon54 Collection of 2,100 Perfect Icons in 49 Unique Categories – only $19!

Source

Vía Webdesigner Depot http://ift.tt/2a9BloL