Skip to content

Commit 049b6b5

Browse files
committed
Fix Image.minimize_metadata/1 again
1 parent 30f6a61 commit 049b6b5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/image.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6366,8 +6366,9 @@ defmodule Image do
63666366
with {:ok, exif} <- exif(image),
63676367
{:ok, image} <- remove_metadata(image) do
63686368
Vimage.mutate(image, fn mut_img ->
6369-
if exif[:copyright], Exif.put_metadata(mut_img, :copyright, exif[:copyright])
6369+
if exif[:copyright], do: Exif.put_metadata(mut_img, :copyright, exif[:copyright])
63706370
if exif[:artist], do: Exif.put_metadata(mut_img, :artist, exif[:artist])
6371+
:ok
63716372
end)
63726373
end
63736374
end

0 commit comments

Comments
 (0)