Support arbitrary resizing in cover controller

This commit is contained in:
Claudio Ortolina
2024-12-31 11:57:56 +00:00
parent 6a51251d55
commit 97533416f7
5 changed files with 49 additions and 2 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

@@ -43,9 +43,11 @@ defmodule MusicLibrary.RecordsFixtures do
]
# While it would be great to have this random, it's ok to use one single image
@marbles_cover_data_path "#{__DIR__}/marillion-marbles.jpg"
@marbles_thumb_data_path "#{__DIR__}/marillion-marbles-thumb.jpg"
@raven_cover_data_path "#{__DIR__}/steven-wilson-raven.jpg"
def marbles_cover_fixture, do: @marbles_cover_data_path
def marbles_thumb_fixture, do: @marbles_thumb_data_path
def raven_cover_fixture, do: @raven_cover_data_path
def record_fixture(attrs \\ %{}) do