© oxigenio-dapalavra I tumblr -->
No se porque me engaño tanto, yo se que no va a pasar.

No se porque me engaño tanto, yo se que no va a pasar.

8 notas · #esprar #cosas #pasar #no pasar #sentimientos #porque #enagño #no se #frases #tumblr
  1. nickolas-duarte10 ha reblogueado esto desde thetrueparadiseisthelife
  2. dlovegoodbellamy ha reblogueado esto desde pllisthebestinthefuckingwordl
  3. diirtysecrett ha reblogueado esto desde thetrueparadiseisthelife
  4. ashtonvans ha reblogueado esto desde thetrueparadiseisthelife
  5. rudimenths ha reblogueado esto desde thetrueparadiseisthelife
  6. pllisthebestinthefuckingwordl ha reblogueado esto desde thetrueparadiseisthelife
  7. solojessica ha reblogueado esto desde thetrueparadiseisthelife y ha añadido:
    No pasarán ya lo sé.
  8. 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()