Skip to content

Instantly share code, notes, and snippets.

@ucnv
Created November 21, 2010 07:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ucnv/708531 to your computer and use it in GitHub Desktop.
Save ucnv/708531 to your computer and use it in GitHub Desktop.
require './jpg_encoder' # https://gist.github.com/708485
class XJPG < JPGEncoder
def process_DU *args
@zigzag_o = @zigzag_o || @zigzag
@zigzag = @zigzag_o.shuffle
super *args
end
end
infile = ARGV.shift
outfile = "out.jpg"
XJPG.new.encode(infile).output(outfile)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment