Advertisement
hackloper775

Imagenperl1

Oct 31st, 2012
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.56 KB | None | 0 0
  1. #!/usr/bin/env perl
  2. #
  3. ## Script para ver las dimensiones de una imagen
  4. ## Programación: Ejemplo para Tiempo de Tux
  5. ## Por : demianx864
  6. ## Eres libre de modificar y añadir lo que quieras al script
  7. ## Gracias al modulo Image::Size
  8. ## Para mas información visita y comenta <http://www.itimetux.com>
  9.  
  10. use strict;
  11. use Image::Size;
  12. system("clear");
  13.  
  14. print "Ruta de la imagen :";
  15. my $imagen = <STDIN>;
  16.  
  17. chop($imagen);
  18.  
  19. my ($ancho, $alto) = imgsize($imagen);
  20.  
  21. print "Tu imagen $imagen es de :\n";
  22. print "Ancho: $ancho x Alto: $alto\n";
  23. exit(1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement