Sempre alla ricerca di un modo rapido per fare delle thumbnail carine… a forza di leggere e scavare:

$ mogrify -path ../th -format gif -size 200x200 -auto-orient
      -thumbnail '75x75>' -background transparent -gravity center
      -extent 75x75 '*.jpg'

La riga definisce il path (in funzione delle img originali, auto-orienta l’immagine, ne crea un thumbnail con il lato più lungo di 75px, sbatte il risultato in un quadrato di 75×75 pixel centrando l’oggetto e ci mette un background di colore trasparente. ^_^

Una buona lettura è stata questa qua: Creating Thumbnails and Framing



1 Comment to “Thumbnails”


  1. SIMOTRONE WEB PAGE » Blog Archive » xargs (3) — 5 January 2010 @ 7:29 am

    [...] effetti un comando come quello che segue sarebbe stato anche più rapido (vedi vecchio post sui thumbnail). find . -maxdepth 1 -iname "*.jpg"| xargs mogrify -path th/ -thumbnail 120×120 [...]



Write a comment


You need tologin.

    
SIMOTRONE WEB PAGE is based on WordPress platform, RSS tech , RSS comments design by Gx3.