diff --git a/app/serializers/album_serializer.rb b/app/serializers/album_serializer.rb index d931ea23..edc9768e 100644 --- a/app/serializers/album_serializer.rb +++ b/app/serializers/album_serializer.rb @@ -32,21 +32,21 @@ def image100 return nil if object.image.blank? return nil unless object.image.image.variable? - rails_representation_url(object.image.image.variant(resize_to_limit: [100, 100]), **scope) + rails_representation_url(object.image.image.variant(resize_to_cover: [100, 100]), **scope) end def image250 return nil if object.image.blank? return nil unless object.image.image.variable? - rails_representation_url(object.image.image.variant(resize_to_limit: [250, 250]), **scope) + rails_representation_url(object.image.image.variant(resize_to_cover: [250, 250]), **scope) end def image500 return nil if object.image.blank? return nil unless object.image.image.variable? - rails_representation_url(object.image.image.variant(resize_to_limit: [500, 500]), **scope) + rails_representation_url(object.image.image.variant(resize_to_cover: [500, 500]), **scope) end def image_type diff --git a/app/serializers/artist_serializer.rb b/app/serializers/artist_serializer.rb index 785bb736..16fd83e2 100644 --- a/app/serializers/artist_serializer.rb +++ b/app/serializers/artist_serializer.rb @@ -26,21 +26,21 @@ def image100 return nil if object.image.blank? return nil unless object.image.image.variable? - rails_representation_url(object.image.image.variant(resize_to_limit: [100, 100]), **scope) + rails_representation_url(object.image.image.variant(resize_to_cover: [100, 100]), **scope) end def image250 return nil if object.image.blank? return nil unless object.image.image.variable? - rails_representation_url(object.image.image.variant(resize_to_limit: [250, 250]), **scope) + rails_representation_url(object.image.image.variant(resize_to_cover: [250, 250]), **scope) end def image500 return nil if object.image.blank? return nil unless object.image.image.variable? - rails_representation_url(object.image.image.variant(resize_to_limit: [500, 500]), **scope) + rails_representation_url(object.image.image.variant(resize_to_cover: [500, 500]), **scope) end def image_type