News for hackers. Stuff that matters.

aerobson

Re:Progressive JPEGs: a new best practice on Sunday December 30, 2012 @11:52AM (#4986258)
It's a best practice because it gives the user as much possible as soon as possible, and because there are file size savings.

When you say

it would be better to have a placeholder there that is the same frame as the final image size, then have the final image appear upon completion

isn't that the quality of progressive jpegs?

Re:Progressive JPEGs: a new best practice on Sunday December 30, 2012 @11:34AM (#4986180)
I never said baseline jpegs display instantly after file download. They render as I describe several times, top to bottom or "chop chop chop." It's progressive jpegs that display instantly after file download IF the browser does not support progressive rendering of progressive jpegs.

The difference between the rendering of the two file types is not subtle.

Re:Progressive JPEGs: a new best practice on Sunday December 30, 2012 @10:35AM (#4985943)
Why do you say Preferably in the HTML? Just curious. I vaguely recall there was a reason.
Re:Progressive JPEGs: a new best practice on Sunday December 30, 2012 @10:31AM (#4985926)
Agreed. But would you say that progressive jpegs don't offer a visual advantage in this case? Imagine if a photo has a caption below it: baseline starts rendering far away from the caption, but with progressive we'll get the caption in the correct place without a big gap between the caption and where the photo is rendering. In the case of baseline, the photo will draw to "meet" the caption.
Re:Progressive JPEGs: a new best practice on Sunday December 30, 2012 @10:26AM (#4985909)
Update: this must have been my imagination. I confirmed that all of the most common browsers will stake out the image area if height and width is set in the css or the img tag.
Re:Progressive JPEGs: a new best practice on Saturday December 29, 2012 @05:43PM (#4983770)
Thanks for the comment. Whatever detail you can add to this conversation is much appreciated. It's a neglected topic, and it's important for us to understand it better.
Re:Progressive JPEGs: a new best practice on Saturday December 29, 2012 @04:08PM (#4983481)
Right?! This is very interesting and I just discovered it by chance. If it were just one browser we could write it off, but it's not. I'll try to find out.
Re:Progressive JPEGs: a new best practice on Saturday December 29, 2012 @04:04PM (#4983460)
This brings up some important points. Yes, we need numbers. Let's get them.

Progressive jpegs do not necessarily need to use more RAM. The FAQ I linked to also says "If the data arrives quickly, a progressive-JPEG decoder can adapt by skipping some display passes." Win!

Also, why do you say "up to 3x" more CPU? Is that an estimate based on how many scans you're guessing a progressive jpeg has? A progressive jpeg can have a variable number of scans -- we used to be able to set that number, which is totally cool!

As for the compression benefits, you say "progressive very rarely achieves a double-digit win after that." We web performance geeks LOVE single-digit wins, so you can't burst our bubble that way.

Yes, Mobile Safari has trouble with images. Period. But Mobile Safari does not progressively render progressive jpegs (I wish it did). So we can make it a best practice without worrying about Mobile Safari. When the web is full of progressive jpegs, Apple will have to deal with them. It's not an evil plan, it's the right thing to do.

When you say it doesn't look that good, are you saying that for yourself personally, or are you saying it for your users? We need to think about what they see. As I say, perceived speed is more important than actual speed, and the thing that excites me most about progress jpegs is not the file size savings, but instead the behavior of the file type in browsers that properly support it.

Re:Progressive JPEGs: a new best practice on Saturday December 29, 2012 @03:50PM (#4983405)
I have observed that even when you set height and width attributes, the area is not always "staked-out." Of course we'd assume that it is. I'll need to get you some browser and version details about this.
What I'm digging about HireArt is that companies using it seem to be more organized. They think more about the position they are hiring for at the start, submit interview questions to HireArt, write better job descriptions… If companies have a clearer idea of what they want, and they can communicate that to applicants, less time will be wasted all around. Here's an article from someone who has used HireArt, and makes this statement better than I: http://bit.ly/Abh6rj