Skip to content

Commit

Permalink
Changed BW calculation PNG images to be incompressible
Browse files Browse the repository at this point in the history
Web servers and other devices may be configured to compress images
before delivering them to client browsers. This commit replaces the
original images used in bandwidth calculations with ones that cannot be
compressed (much). The bw.js plugin has been updated to reflect the new
image file sizes.
  • Loading branch information
paulcgt committed Feb 2, 2015
1 parent 7b2dab5 commit 4bed2a6
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 7 deletions.
Binary file modified images/image-0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/image-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/image-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/image-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/image-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/image-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/image-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 12 additions & 7 deletions plugins/bw.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,19 @@ BOOMR.plugins = BOOMR.plugins || {};
// bytes respectively
// See https://spreadsheets.google.com/ccc?key=0AplxPyCzmQi6dDRBN2JEd190N1hhV1N5cHQtUVdBMUE&hl=en_GB
// for a spreadsheet with the details
//
// The images were generated with ImageMagic, using random uncompressed data.
// As input data (image-3.bin) I used the original images that were encrypted using AES256.
// The IM command used was : convert -size 618x618 -depth 8 gray:image-3.bin image-3.png
// Vary the image dimensions to change the filesize. The image dimensions are more or less the square of the desired filesize.
images=[
{ name: "image-0.png", size: 11483, timeout: 1400 },
{ name: "image-1.png", size: 40658, timeout: 1200 },
{ name: "image-2.png", size: 164897, timeout: 1300 },
{ name: "image-3.png", size: 381756, timeout: 1500 },
{ name: "image-4.png", size: 1234664, timeout: 1200 },
{ name: "image-5.png", size: 4509613, timeout: 1200 },
{ name: "image-6.png", size: 9084559, timeout: 1200 }
{ name: "image-0.png", size: 11773, timeout: 1400 },
{ name: "image-1.png", size: 40836, timeout: 1200 },
{ name: "image-2.png", size: 165544, timeout: 1300 },
{ name: "image-3.png", size: 382946, timeout: 1500 },
{ name: "image-4.png", size: 1236278, timeout: 1200 },
{ name: "image-5.png", size: 4511798, timeout: 1200 },
{ name: "image-6.png", size: 9092136, timeout: 1200 }
];

images.end = images.length;
Expand Down

0 comments on commit 4bed2a6

Please sign in to comment.