Mechasoft: Blog de Matías J. Magni

…dedicado al Open Source y al delirio del Autor…

  • Matías J. Magni

  • RSS Ubuntu

    • Ubuntu 17.10 releases with GNOME, Kubernetes 1.8 & minimal base images 19/10/2017
      19th October, London, UK: Canonical today announced the release of Ubuntu 17.10 featuring a new GNOME desktop on Wayland, and new versions of KDE, MATE and Budgie to suit a wide range of tastes. On the cloud, 17.10 brings Kubernetes 1.8 for hyper-elastic container operations, and minimal base images for containers. This is the 27th release […]
    • MAAS KVM Pods 18/10/2017
      This is a guest post by Michael Iatrou, cloud solutions architect at Canonical OpenStack is the dominant solution in the IaaS space, fueled by the need for reliable, scalable and interoperable private cloud infrastructure to accommodate cloud native applications. Through OpenStack’s open APIs, tenants can easily deploy elaborate virtual (overlay) networks, i […]
    • Kernel Team Summary – October 18th, 2017 18/10/2017
      Development (Artful / 17.10) https://wiki.ubuntu.com/ArtfulAardvark/ReleaseSchedule Important upcoming dates: Ubuntu 17.10 Release - Oct 19 (~1 days away) We intend to target a 4.13 kernel for the Ubuntu 17.10 release. A 4.13.4 based kernel is available for testing from the artful-proposed pocket of the Ubuntu archive. Stable (Released & Supported) The u […]
    • Top snaps in September: games, GNOME apps and more! 18/10/2017
      October, it’s almost time for a new Ubuntu release! This month’s pick of the top snaps is all about spending relaxing time with your computer: playing games, listening to music and enjoying beautiful GNOME applications! If the term snaps doesn’t ring a bell, they are a new way for developers to package their apps, bringing […]
    • Ubuntu Server Development Summary – 17 Oct 2017 17/10/2017
      Hello Ubuntu Server! The purpose of this communication is to provide a status update and highlights for any interesting subjects from the Ubuntu Server Team. If you would like to reach the server team, you can find us at the #ubuntu-server channel on Freenode. Alternatively, you can sign up and use the Ubuntu Server Team […]
  • RSS LUGMen

    • Se ha producido un error; es probable que la fuente esté fuera de servicio. Vuelve a intentarlo más tarde.
  • Archivos

Archive for 16 mayo 2011

Cambiar el tamaño a una lista de imágenes en Linux

Posted by Matías J. Magni en 16/05/2011

Bueno este artículo está destinado a aquellos desarrolladores web que como yo se encuentran a menudo con el problema de cambiar el tamaño de una lista de imágenes de una sóla vez, ya sea porque un módulo de una galería trabaja con cierto tamaño en las imágenes o para reducir el tráfico en su sitio.

Aquí les dejo el script que cambia el tamaño de las imágenes contenidas en un directorio y las guarda dentro del directorio images-resized:


mkdir images-resized
for file in *.$1
do
convert "$file" -resize $2\! +profile '*' "images-resized/${file%%.$1}.$1"
done

Ejecución del script:

$ ./resize.sh <extension_archivos> <dimension>

Ejemplo de ejecución del script:

$ ./resize.sh jpg 640×480

Anuncios

Posted in Uncategorized | Leave a Comment »