© oxigenio-dapalavra I tumblr -->

19 notas · #siluetas #los simpsons #the simpsons #director #profesor #nerd #viernes #semana #dias #lol
  1. justlikefearless ha reblogueado esto desde thetrueparadiseisthelife
  2. gemorgi ha reblogueado esto desde thetrueparadiseisthelife y ha añadido:
    :3
  3. y-el-leon-se-enamoro-de-la-oveja ha reblogueado esto desde thetrueparadiseisthelife
  4. gcookies ha reblogueado esto desde thetrueparadiseisthelife
  5. una-sonrisa-esconde-tristesa ha reblogueado esto desde thetrueparadiseisthelife
  6. brigther-than-sunshine ha reblogueado esto desde colordehada
  7. therevengeofsurfqueen ha reblogueado esto desde colordehada
  8. colordehada ha reblogueado esto desde thetrueparadiseisthelife
  9. anitadevoto ha reblogueado esto desde thetrueparadiseisthelife
  10. nowhere-man-please-listen ha reblogueado esto desde bullacris123
  11. bullacris123 ha reblogueado esto desde thetrueparadiseisthelife
  12. raculfright13lives ha reblogueado esto desde thetrueparadiseisthelife
  13. fuckthefeelings1 ha reblogueado esto desde thetrueparadiseisthelife
  14. thetrueparadiseisthelife ha publicado esto

. contador de visitas para blogger
[code] #!/usr/bin/env python # encoding: utf-8 """ protect_image.py Created by Jacob Sunol (www.jasuca.com) Licenced under MIT Licence (http://opensource.org/licenses/mit-license.php) Test image from wWikimedia.org - http://commons.wikimedia.org/wiki/File:Turbinella_pyrum_01.jpg """ import sys import os import Image import random def split_y(size_y, divisions): """ Split into x divisions a y size """ inc = size_y / divisions return [inc*(x+1) for x in range(divisions)] def generate_boxes(size_x, size_y, divisions=4): """ Generate n boxes full x size """ y_splited = split_y(size_y, divisions) boxes = [] y_top = 0 for y_bottom in y_splited: boxes.append((0,y_top, size_x, y_bottom)) y_top = y_bottom return boxes def main(): """ Constants """ divisions = 5 infile = 'test_in.png' outfile = 'test_out.png' htmloutfile = outfile + '.html' format_file = 'PNG' #Open the image im = Image.open(infile) size_x, size_y = im.size #Generate the boxes for the image boxes = generate_boxes(size_x, size_y, divisions) #Crop the image regions = [] for box in boxes: region = im.crop(box) regions.append(region) #Shuffle the boxes croped random.shuffle(boxes) #Create a new image im_new = Image.new(im.mode, im.size) #Paste the croped parts for x in range(len(boxes)): box = boxes[x] region = regions[x] #print box, region im_new.paste(region, box) #Save the new image im_new.save(outfile, format_file, quality=100) #Generate the new HTML file f = open(htmloutfile,'w') f.write('') for box in boxes: f.write("
"%(outfile, box[0], box[1], size_x, size_y/divisions )) f.write(' ') f.close() pass if __name__ == '__main__': main()