Showing posts with label Image Magick. Show all posts
Showing posts with label Image Magick. Show all posts

Thursday, February 28, 2013

Para reducir el tamaño de las imagenes en Linux


Tenia bastante tiempo que no programaba en Python, se siente raro regresar a el pero a la vez bien por que es un amigo bastante familiar y siempre amistoso por que te enseña bien y lo que bien se aprende nunca se olvida. El texto inicial del programa lo explica todo. Licencia GPL, etc. -Vico Surge

It has been quite a long time since I last programmed in Python, feels weird to be honest but it feels good because it's an old friend which I became familiar with and it's always friendly on your return because it teaches you well and what you learn well you never forget. The initial text explains it, it's a program to reduce the size of files by 50%, saving you enough space if you don't mind the lose of 'quality' on your files. GPL Licence, etc. -Vico Surge

import sys, os
z = 0
print "Este programa reduce el tamanyo de las imagenes al 50%, bastante util cuando las imagenes son enormes y nos se ocupa tanta 'calidad'. Se ocupa tener instalado imagemagick en Linux, este programa no funciona en Windows. Q termina el programa cuando pide el nombre del archivo."
x = raw_input("Terminacion (solo el formato del archivo sin punto): ")
while z != 1:
a = raw_input('Nombre del archivo: ')
if a.lower() == "q":
print "Bye!"
exit()
else:
b = "%s.$s" % (a,x)
c = "convert %s -resize 50%% %s" % (b,b)
os.system(c)
print "Archivo %s listo." % b

The Atlantean Thrones and the Valve

I can’t sleep, again. I see them all over me, figures that look like demons, human with horns of all kinds, twisted and spiraling in differ...