Add basic test for Records.Cover module
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
defmodule MusicLibrary.Records.Cover do
|
||||
@size 600
|
||||
|
||||
def resize(cover_data) do
|
||||
{:ok, thumb} = Vix.Vips.Operation.thumbnail_buffer(cover_data, @size)
|
||||
Vix.Vips.Image.write_to_buffer(thumb, ".jpg")
|
||||
|
||||
Reference in New Issue
Block a user