Skip to main content

Search and Top Navigation

#7855 closed feature (fixed)

Opened November 09, 2011 12:43PM UTC

Closed September 01, 2016 01:47PM UTC

reduce file size of images in themes

Reported by: chrisraven Owned by:
Priority: minor Milestone: 1.12.0
Component: ui.css-framework Version:
Keywords: Cc:
Blocked by: Blocking:
Description

I tried to reduce file size of images from themes provided with jQuery UI, and it looks like it is possible to save some KBs. I tried http://www.punypng.com/ and http://www.smushit.com/ysmush.it/ online compressors (there are others), both gives some size reduction. According to the sites, this is lossless reduction and everything should works fine after it, even in IE6.

My results are:

base theme:

punypng - 2.9 KB reduction

ysmush.it - 952 B reduction

black-tie theme:

punypng - 3.7 KB reduction

ysmush.it - 1.26 KB reduction

I believe, that every theme can be downsized.

If there are no side efects (I didn't find any), then maybe it should be good to save those couple KBs.

Best regards

ChrisRaven

Attachments (0)
Change History (7)

Changed November 09, 2011 01:07PM UTC by scottgonzalez comment:1

component: [meta] ui.devCSS Framework

Changed November 09, 2011 01:55PM UTC by rdworth comment:2

Good idea but we need to have our bases covered

1. This would have to well tested to ensure the images remain PNG/8

2. These images get passed through ThemeRoller+ImageMagick before they end up in a theme. There's a chance they end up large(r) again after that. As ThemeRoller is being re-written, makes more sense to focus such optimization efforts on the new version, not existing.

3. To make a change like this, we'll need a full end-to-end test with all the theme images (post ThemeRoller) ensuring pixel perfect color rendering of all images (this can be done with an rgba image diff of before and after images) as well as a visual test in IE6 of before and after

Changed June 26, 2012 01:22AM UTC by scottgonzalez comment:3

type: enhancementfeature

Changed October 11, 2012 02:40PM UTC by scottgonzalez comment:4

milestone: 1.9.01.10.0

Changed November 04, 2012 05:19PM UTC by jzaefferer comment:5

status: newopen

New ThemeRoller is still using old ThemeRoller to generate images, so that pipeline didn't change at all. Its still unclear if or when we can get rid of that by switching to the image-free CSS framework that jQuery Mobile uses.

Does ThemeRoller actually use the images from the base theme? If not, we could just optimize those and leave the ThemeRoller output as-is.

Will ask Rafael to take a look when he's back.

Changed January 25, 2013 09:23PM UTC by tj.vantoll comment:6

milestone: 1.10.0none

Changed September 01, 2016 01:47PM UTC by scottgonzalez comment:7

milestone: none1.12.0
resolution: → fixed
status: openclosed