mirror of
https://gitlab.com/tavo-wasd/blog.git
synced 2025-06-07 06:43:28 -06:00
listo jiji
This commit is contained in:
parent
52e8f2e382
commit
047765c822
8 changed files with 154 additions and 17 deletions
50
content/blog/2023-11-03-auto-edit-raw.md
Normal file
50
content/blog/2023-11-03-auto-edit-raw.md
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
---
|
||||||
|
title: "Usando darktable-cli para minimizar el tiempo invertido editando fotos"
|
||||||
|
date: 2023-11-03
|
||||||
|
---
|
||||||
|
|
||||||
|
En general, intento usar herramientas que me ayuden a agilizar
|
||||||
|
el proceso de editar fotografías porque en muchas ocasiones se
|
||||||
|
puede durar hasta semanas editando sesiones de fotos.
|
||||||
|
|
||||||
|
Entonces
|
||||||
|
busqué una manera fácil de aplicar ajustes a múltiples fotografías
|
||||||
|
crudas rápidamente y de preferencia en la CLI.
|
||||||
|
Claro que para resultados más complejos o artísticos se requiere
|
||||||
|
editar cada foto por separado, pero para sesiones de eventos o con
|
||||||
|
condiciones replicables, es muy conveniente usar LUTs o copiar
|
||||||
|
el historial de ajustes entre fotos.
|
||||||
|
|
||||||
|
En este caso, me descargué un pack de LUTs y creé estilos que
|
||||||
|
aplicaban esos LUTs y un par de ajustes base. Luego busqué en
|
||||||
|
el manual de Darktable cómo aplicar estos estilos utilizando
|
||||||
|
la CLI. Al final logré aplicar las opciones que necesitaba en
|
||||||
|
este script:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
#!/bin/sh
|
||||||
|
FOLDER="$1"
|
||||||
|
STYLE="$2" # moody_bw, teal
|
||||||
|
|
||||||
|
# Configs
|
||||||
|
EXTENSION="jpg"
|
||||||
|
LONG_EDGE=1920
|
||||||
|
QUALITY=89
|
||||||
|
|
||||||
|
darktable-cli \
|
||||||
|
--import "$FOLDER" \
|
||||||
|
--width "$LONG_EDGE" \
|
||||||
|
--height "$LONG_EDGE" \
|
||||||
|
--out-ext ".$EXTENSION" \
|
||||||
|
--style "$STYLE" \
|
||||||
|
"${FOLDER%%/}/darktable_export/IMG.jpg" \
|
||||||
|
--core --conf plugins/imageio/format/jpeg/quality=$QUALITY \
|
||||||
|
```
|
||||||
|
|
||||||
|
Básicamente limita la resolución de las imágenes, les aplica
|
||||||
|
el estilo que ya está guardado o configurado, y las exporta con
|
||||||
|
la calidad especificada. Obviamente para usarlo de necesita el
|
||||||
|
programa `darktable`, y crear un estilo. El nombre de ese estilo
|
||||||
|
es el segundo argumento.
|
||||||
|
|
||||||
|
Hay un par de ejemplos en la [sección de fotos](https://fotos.tavo.one/fotos/).
|
|
@ -1,3 +1,5 @@
|
||||||
---
|
---
|
||||||
title: Blog Posts
|
title: Blog Posts
|
||||||
---
|
---
|
||||||
|
|
||||||
|
Ideas, cosas útiles que voy haciendo o me voy encontrando.
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
---
|
|
||||||
title: "Example Post"
|
|
||||||
date: 2023-10-23
|
|
||||||
draft: yes
|
|
||||||
---
|
|
||||||
|
|
||||||
Test as this is an example post!
|
|
73
content/proyectos/lawfulgood/2023-11-03-trama.md
Normal file
73
content/proyectos/lawfulgood/2023-11-03-trama.md
Normal file
|
@ -0,0 +1,73 @@
|
||||||
|
---
|
||||||
|
title: "Trama"
|
||||||
|
date: 2023-11-03
|
||||||
|
---
|
||||||
|
|
||||||
|
# Plot
|
||||||
|
- En inglés porque creo que es mejor empezarlo
|
||||||
|
así y luego traducirlo a otros idiomas.
|
||||||
|
|
||||||
|
## Exposition
|
||||||
|
|
||||||
|
MAINCHARACTER is a regular law-abiding citizen living
|
||||||
|
in a dystopian future, where crime is at an all time
|
||||||
|
high. Governments control people through propaganda,
|
||||||
|
threats, power demonstration and market manipulation.
|
||||||
|
The proletariat while being the largest class, are also
|
||||||
|
the poorest and last in political relevance.
|
||||||
|
|
||||||
|
At the very beginning, MAINCHARACTER is boarding the
|
||||||
|
train to a marine attraction where he/she was supposed
|
||||||
|
to meet his/her "TENDR" match. However, after arriving
|
||||||
|
a few seconds late and watching the train leave, then
|
||||||
|
getting an unappealing text from the match, decides
|
||||||
|
to [go anyway]/[go back home].
|
||||||
|
|
||||||
|
Before taking an old-school taxi again, calls the new
|
||||||
|
rocket fueled taxi service. Then, learns one can also
|
||||||
|
visit other planets or regions within those that one
|
||||||
|
can't normally visit with public transport services.
|
||||||
|
In the middle of booking a trip, corrupt police arrests
|
||||||
|
the taxi driver for illegally transporting people from
|
||||||
|
the cities to areas "unprotected" by the government.
|
||||||
|
MAINCHARACTER [tells on]/[saves] the taxi driver, which
|
||||||
|
causes him to be [arrested]/[set free], and MAINCHARACTER
|
||||||
|
to be offered a [police academy]/[street fights] pamphlet.
|
||||||
|
|
||||||
|
## Rising action
|
||||||
|
|
||||||
|
ENEMY helps MAINCHARACTER reach a high position in
|
||||||
|
the state (police, politics, cybersecurity, health).
|
||||||
|
But could also make MAINCHARACTER to join an unlawful
|
||||||
|
group (drug trafficking, fraud, cybercrime). ENEMY is
|
||||||
|
also a law-abiding citizen, but one who would never
|
||||||
|
conspire against the state. Eventually, both views
|
||||||
|
oppose at some degree. This indirectly triggers an
|
||||||
|
event that could potentially destroy the earth.
|
||||||
|
|
||||||
|
In the middle of visiting other planets, MAINCHARACTER
|
||||||
|
watches a live stream where earth is subject to a
|
||||||
|
nuclear war and the surface becomes hell in minutes.
|
||||||
|
As FRIEND who was suspect of being the VILLAIN tries
|
||||||
|
to escape, MAINCHARACTER watches him die, and the true
|
||||||
|
VILLAIN, ENEMY is revelaed. ENEMY thinks she is doing
|
||||||
|
this "sacrifices" for the greater good, MAINCHARACTER
|
||||||
|
also watches as "the elite" argue in a table game as
|
||||||
|
if they didn't just commit genocide. Just when MAINCHARACTER
|
||||||
|
realizes he/she has a gun and could terminate one or many
|
||||||
|
corrupt leaders, he/she is mugged and the great leaders
|
||||||
|
pay the bar security to get everyone out since they can't
|
||||||
|
concentrate.
|
||||||
|
|
||||||
|
## Climax
|
||||||
|
|
||||||
|
TBD
|
||||||
|
|
||||||
|
## Falling action
|
||||||
|
|
||||||
|
TBD
|
||||||
|
|
||||||
|
## Resolution
|
||||||
|
|
||||||
|
TBD
|
||||||
|
|
10
content/proyectos/lawfulgood/_index.md
Normal file
10
content/proyectos/lawfulgood/_index.md
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
---
|
||||||
|
title: "Lawful good (game)"
|
||||||
|
date: 2023-11-03
|
||||||
|
---
|
||||||
|
|
||||||
|
No tengo mucho más que el título, una trama básica y algunos personajes.
|
||||||
|
De momento no tengo mucho qué publicar aquí pero seguramente vaya subiendo
|
||||||
|
el progreso poco a poco. A corto plazo tal vez una sinopsis medio definida
|
||||||
|
no estaría mal. En general me gustaría que fuera un juego técnicamente sencillo,
|
||||||
|
pero con bastante contenido.
|
|
@ -1,10 +0,0 @@
|
||||||
---
|
|
||||||
title: "Primer juego en C++ 😎"
|
|
||||||
date:
|
|
||||||
draft: yes
|
|
||||||
---
|
|
||||||
|
|
||||||
Este
|
|
||||||
```
|
|
||||||
Lawful Good
|
|
||||||
```
|
|
|
@ -1,3 +1,7 @@
|
||||||
---
|
---
|
||||||
title: Snippets
|
title: Snippets
|
||||||
---
|
---
|
||||||
|
|
||||||
|
Aquí guardo trozos de código como plantillas,
|
||||||
|
comandos con usos puntuales o trozos de código
|
||||||
|
para cuando necesito instalar o configurar algo.
|
||||||
|
|
15
content/snippets/fondo-imagick.md
Normal file
15
content/snippets/fondo-imagick.md
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
---
|
||||||
|
title: "Quitar fondo de una imagen con imagemagick"
|
||||||
|
date: 2023-11-03
|
||||||
|
---
|
||||||
|
|
||||||
|
El color de fondo a eliminar puede estar dado como código hexadecimal,
|
||||||
|
que seguramente sea lo más útil, pero si es una imagen con fondo blanco
|
||||||
|
basta con escribir `white`.
|
||||||
|
El `fuzz` indica la dureza? creo? Hay que variarlo dependiendo de la imagen
|
||||||
|
para obtener un buen resultado pero creo que en la mayoría de casos 10%
|
||||||
|
está bien.
|
||||||
|
|
||||||
|
```shell
|
||||||
|
convert -transparent "#ffffff" -fuzz 10% imagen.png imagen-sin-fondo.png
|
||||||
|
```
|
Loading…
Reference in a new issue