Jump to content

Talk:Reading/Web/Projects/Barack Obama in under 15 seconds on 2G

Add topic
From mediawiki.org
Latest comment: 8 years ago by Nemo bis in topic Images

Images

[edit]

In your example test, 60 % of the weight is from images. If I see correctly in your googleweblight screenshots, they also compress images in an aggressive lossy way. It's rather trivial with jpegoptim or similar to reduce the size by 60 % or so:

$ wget -E -H -k -K -p -nd -nH https://en.wikipedia.org/wiki/Barack_Obama
$ jpegoptim -m 50 -s *jpg
jpegoptim: skipping special file: 50
170px-Barack_Obama_at_Cairo_University_cropped.jpg 170x282 24bit N JFIF  [OK] 21744 --> 9589 bytes (55.90%), optimized.
170px-Barack_Obama_playing_basketball_with_members_of_Congress_and_Cabinet_secretaries_2.jpg 170x255 24bit N JFIF  [OK] 16691 --> 7755 bytes (53.54%), optimized.
170px-BarackObamaportrait.jpg 170x213 24bit N ICC JFIF  [OK] 11233 --> 3889 bytes (65.38%), optimized.
170px-Official_portrait_of_Barack_Obama.jpg 170x231 24bit N ICC JFIF  [OK] 11867 --> 5623 bytes (52.62%), optimized.
220px-Ann_Dunham_with_father_and_children.jpg 220x146 24bit N JFIF  [OK] 15718 --> 8107 bytes (48.42%), optimized.
220px-Barack_Obama_addresses_joint_session_of_Congress_2009-02-24.jpg 220x129 24bit N JFIF  [OK] 11008 --> 5262 bytes (52.20%), optimized.
220px-Barack_Obama_hangout.jpg 220x124 24bit N JFIF  [OK] 6930 --> 3941 bytes (43.13%), optimized.
220px-Barack_Obama_visiting_victims_of_2012_Aurora_shooting.jpg 220x147 24bit N ICC JFIF  [OK] 16693 --> 6295 bytes (62.29%), optimized.
220px-Barack_Obama_welcomes_Shimon_Peres_in_the_Oval_Office.jpg 220x147 24bit N JFIF  [OK] 8797 --> 5126 bytes (41.73%), optimized.
220px-David_Cameron_and_Barack_Obama_at_the_G20_Summit_in_Toronto.jpg 220x147 24bit N JFIF  [OK] 13478 --> 5916 bytes (56.11%), optimized.
220px-Flickr_Obama_Springfield_01.jpg 220x115 24bit N JFIF  [OK] 12154 --> 5662 bytes (53.41%), optimized.
220px-G8_leaders_watching_football.jpg 220x144 24bit N ICC JFIF  [OK] 17014 --> 6508 bytes (61.75%), optimized.
220px-Lugar-Obama.jpg 220x164 24bit N JFIF  [OK] 14555 --> 6992 bytes (51.96%), optimized.
220px-Obama_and_Biden_await_updates_on_bin_Laden.jpg 220x147 24bit N ICC JFIF  [OK] 14831 --> 6761 bytes (54.41%), optimized.
220px-Obama_cabinet_meeting_2009-11.jpg 220x147 24bit N JFIF  [OK] 12790 --> 6019 bytes (52.94%), optimized.
220px-Obamamiltondavis1.jpg 220x202 24bit N JFIF  [OK] 15266 --> 7358 bytes (51.80%), optimized.
220px-Obama,_Peña_y_Harper._IX_Cumbre_de_Líderes_de_América_del_Norte.jpg 220x147 24bit N JFIF  [OK] 16829 --> 7392 bytes (56.08%), optimized.
220px-Obamas_at_church_on_Inauguration_Day_2013.jpg 220x146 24bit N ICC JFIF  [OK] 14287 --> 5312 bytes (62.82%), optimized.
220px-Obama_signs_health_care-20100323.jpg 220x147 24bit N JFIF  [OK] 12405 --> 5852 bytes (52.83%), optimized.
220px-Obama-venice-la.jpg 220x147 24bit N ICC JFIF  [OK] 16247 --> 6276 bytes (61.37%), optimized.
220px-P112912PS-0444_-_President_Barack_Obama_and_Mitt_Romney_in_the_Oval_Office_-_crop.jpg 220x175 24bit N ICC JFIF  [OK] 15725 --> 5968 bytes (62.05%), optimized.
220px-President_Barack_Obama.jpg 220x275 24bit N ICC JFIF  [OK] 24165 --> 9641 bytes (60.10%), optimized.
220px-President_George_W._Bush_and_Barack_Obama_meet_in_Oval_Office.jpg 220x197 24bit N JFIF  [OK] 20223 --> 9211 bytes (54.45%), optimized.
220px--President_Obama_on_Death_of_Osama_bin_Laden.ogv.jpg 220x124 24bit N JFIF  [OK] 6303 --> 3697 bytes (41.35%), optimized.
220px-seek=63-20090124_WeeklyAddress.ogv.jpg 220x124 24bit N JFIF  [OK] 8370 --> 4991 bytes (40.37%), optimized.
220px-US_President_Barack_Obama_taking_his_Oath_of_Office_-_2009Jan20.jpg 220x157 24bit N ICC JFIF  [OK] 14840 --> 6713 bytes (54.76%), optimized.
250px-Obama_family_portrait_in_the_Green_Room.jpg 250x167 24bit N JFIF  [OK] 12693 --> 7111 bytes (43.98%), optimized.
300px-PPACA_Premium_Chart.jpg 300x232 24bit N JFIF  [OK] 14590 --> 9860 bytes (32.42%), optimized.
70px-President_Barack_Obama,_2012_portrait_crop.jpg 70x91 24bit N ICC JFIF  [OK] 6083 --> 1754 bytes (71.17%), optimized.
90px-President_Barack_Obama,_2012_portrait_crop.jpg 90x117 24bit N ICC JFIF  [OK] 6833 --> 2246 bytes (67.13%), optimized.

Doing that + lossy conversion of PNG thumbnails for slower connections could instantly ~halve their data usage. Nemo 08:46, 9 December 2015 (UTC)Reply