h5bp / ant-build-script

Ant build script intended for use with HTML5 Boilerplate. You may find something useful here, but this project is archived.
MIT License
985 stars 204 forks source link

Jpegtran not working? #72

Closed MaartenD closed 11 years ago

MaartenD commented 12 years ago

Hello,

I used the build scirpt on my windows machine and after the build process i didn't see any difference in filesize of my images. When i use the google page speed extension in Firefox my images are optimized. I was hoping if someone could tell me if jpegtran is working or google page speed uses another kind of technology?

Thanks in advance.

Kind regards,

Maarten

roblarsen commented 12 years ago

How much of a difference does the page speed make in your images? I'll start testing this to see if it's working but I'd like to get a sense of what sort of optimizations you're seeing out of the other tool?

MaartenD commented 12 years ago

Hello Rob,

Before running the build script, my image is 104KB, after running the build script the size is still 104KB. After running google pagespeed from within Firebug, the image was 22KB. If you need some more information, let me know. If i can help you with this problem i like to participate.

Kind regards,

Maarten.

roblarsen commented 12 years ago

Thanks, I'll definitely take a look if it's that drastic. Can you send me the image in question? rob@htmlcssjavascript.com

MaartenD commented 12 years ago

Image should be in your inbox.

peterkeating commented 12 years ago

I also found that jpegtran didn't have any effect on the JPGs when using the build script. Instead I used smush.it via a command line tool which was able to compress JPGs. Couple of issues, requires connection to the Internet & can be a little slow.

MaartenD commented 12 years ago

Glad to hear i'm not the only one how has problems with jpegtran. Will take a look at your suggestion. Hope there will be a solution on this issue.

roblarsen commented 11 years ago

Looking at this, this is actually expected behavior form jpegtran. jpegtran doesn't perform lossy operations (like lowering the image quality) so if you have clean images, then there;'s not all that much for jpegtran to do.

As an aside, I did add progressive.jpgs as an option.