Skip to content

Commit

Permalink
Merge pull request YahooArchive#47 from paulcgt/master
Browse files Browse the repository at this point in the history
Changed BW calculation PNG images to be incompressible

Also closes issue YahooArchive#46
  • Loading branch information
bluesmoon committed Feb 2, 2015
2 parents 243e584 + 3323607 commit 8397658
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 @@ -24,14 +24,19 @@ if(BOOMR.plugins.BW) {
// 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 8397658

Please sign in to comment.