Handle partial geometries

This commit is contained in:
David Eisinger
2024-02-02 00:55:43 -05:00
parent aeffd21c59
commit 0745f890b1
2 changed files with 13 additions and 9 deletions

View File

@@ -29,10 +29,14 @@ get "/*" do |path|
convert << @decrypted.path
if 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"
convert.monochrome

View File

@@ -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.