Automatizacion y reajustes de fotografias

senhez

Applesan@
Hola amigos/as

Algunas veces tenemos poco tiempo y necesitamos hacer mucho.
Un ejemplo de tarea es reajustar multiples fotografias a un tamaño estandar
predetermninado por nosostros.

Para esta tarea de reajuste de tamaño de imagenes tenemos varios software e incluso Widgets

Realizar esto con mutiples fotografias puede resultar una perdida de tiempo
Gracias a la potencia de Mac OS X Tiger y su automator podemos realizar esta tarea en segundos.

Abra su editor de script en Aplicaciones->AppleScript->Script Editor y escriba:

on open some_items
repeat with this_item in some_items
try
rescale_and_save(this_item)
end try
end repeat
end open


to rescale_and_save(this_item)
tell application "Image Events"
launch
set the target_width to 120
-- open the image file
set this_image to open this_item

set typ to this_image's file type

copy dimensions of this_image to {current_width, current_height}
if current_width is greater than current_height then
scale this_image to size target_width
else
-- figure out new height
-- y2 = (y1 * x2) / x1
set the new_height to (current_height * target_width) / current_width
scale this_image to size new_height
end if

tell application "Finder" to set new_item to enter
(container of this_item as string) & "reajuste." & (name of this_item)
save this_image in new_item as typ

end tell
end rescale_and_save


Desde la barra de tareas guardelo en formato aplicacion en su escritorio con el nombre que usted desee.

Ahora arrastre mutiples fotografias sobre este icono y el script automaticamente ajustara el tamaño y le dara un nuevo nombre reajuste.nombre_original

Un ejemplo se adjunta
 

Adjuntos

  • reajuste.zip
    20,4 KB · Visitas: 55

juker12

Nuev@ Applesan@
Muy practico maestra senhez por lo menos para mi que solo uso iphoto y para el resize me apaño con esto que es lo unico que le falta a iphoto y paso de chorradas de otros softwares

Eso si...el target me lo pongo a 480 que 120 es muy....muy..chico para mi :)
 
Arriba