commit 0745f890b12b1f312875a781921b149304fd2804
parent aeffd21c59504800b5315494ec37245224fd590e
Author: David Eisinger <[email protected]>
Date: Fri, 2 Feb 2024 00:55:43 -0500
Handle partial geometries
Diffstat:
2 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/bin/dither/dither.rb b/bin/dither/dither.rb
@@ -29,9 +29,13 @@ get "/*" do |path|
convert << @decrypted.path
if geometry
- convert.resize "#{geometry}^"
- convert.gravity "center"
- convert.extent geometry
+ if geometry.start_with?("x") || geometry.end_with?("x")
+ convert.resize geometry
+ else
+ convert.resize "#{geometry}^"
+ convert.gravity "center"
+ convert.extent geometry
+ end
end
convert.ordered_dither "o8x8"
diff --git a/content/journal/dispatch-8-october-2023/index.md b/content/journal/dispatch-8-october-2023/index.md
@@ -38,13 +38,13 @@ It wasn't all perfectly smooth -- Nev had a tough time with jet lag, and driving
[3]: https://www.infoelba.com/discovering-elba/communes-towns/rio-marina/cavo/
[4]: https://ilpomodorino.it/
-{{<dither IMG_4710.jpeg "534x" />}}
-{{<dither IMG_4771.jpeg "534x" />}}
-{{<dither IMG_4781.jpeg "534x" />}}
+{{<dither IMG_4710.jpeg "510x" />}}
+{{<dither IMG_4771.jpeg "510x" />}}
+{{<dither IMG_4781.jpeg "510x" />}}
-{{<dither IMG_4809.jpeg "534x" />}}
-{{<dither IMG_4842.jpeg "534x" />}}
-{{<dither IMG_4886.jpeg "534x" />}}
+{{<dither IMG_4809.jpeg "510x" />}}
+{{<dither IMG_4842.jpeg "510x" />}}
+{{<dither IMG_4886.jpeg "510x" />}}
I downloaded the [Airalo][5] app before I left, which offers cheap international data plans using e-SIM cards. The app works great, no complaints there, but mixed feelings about having a working phone while on vacation -- it was cool to be able to send photos + make video calls, but my company's going through some tough times and I couldn't pull myself away from Slack and email.