From: Christopher Coté Date: Sat, 4 Nov 2023 13:22:11 +0000 (-0400) Subject: new pic, update thumbnail creation X-Git-Url: http://git.entropealabs.com/?a=commitdiff_plain;h=cb3c51682efdca2d77099b469d7fc5a08db97340;p=photography.git new pic, update thumbnail creation --- diff --git a/media/database.db-shm b/media/database.db-shm index e4351db9..6f845806 100644 Binary files a/media/database.db-shm and b/media/database.db-shm differ diff --git a/media/database.db-wal b/media/database.db-wal index 5263ed89..d9340147 100644 Binary files a/media/database.db-wal and b/media/database.db-wal differ diff --git a/media/image_metadata.exs b/media/image_metadata.exs index 34a7d10e..120ca9b6 100644 --- a/media/image_metadata.exs +++ b/media/image_metadata.exs @@ -373,7 +373,7 @@ defmodule Images do uf = fn %{original_path: src_path, path: dest_path} = record -> data = File.read!(src_path) {:ok, thumb} = Image.from_binary(data) - {:ok, thumb} = Image.thumbnail(thumb, 400, fit: :cover) + {:ok, thumb} = Image.thumbnail(thumb, 400, crop: :attention, fit: :cover) {:ok, thumb} = Image.write(thumb, :memory, suffix: ".jpg", minimize_file_size: true) thumb_path = Media.Image.thumb_path(record) diff --git a/www/index.html b/www/index.html index 4079d08a..f7b4f81b 100644 --- a/www/index.html +++ b/www/index.html @@ -226,6 +226,22 @@ ƒ 8.0 | 1333" | 35.0mm | ISO100 +
+ + + + + + 2023-11-01 08:00:56 + ƒ 8.0 | 1333" | 35.0mm | ISO100 +
+
@@ -548,20 +564,6 @@ ƒ 2.8 | ∞ | 92.0mm | ISO100
-
- - - - - - 2023-09-30 16:45:56 - ƒ 8.0 | 11000" | 70.0mm | ISO100 -
-