Skip to content
Snippets Groups Projects
Unverified Commit d0ba7704 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Change max. thumbnail dimensions to 640x360px (360p) (#19619)

parent 03d96185
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,7 @@ class MediaAttachment < ApplicationRecord
}.freeze,
small: {
pixels: 160_000, # 400x400px
pixels: 230_400, # 640x360px
file_geometry_parser: FastGeometryParser,
blurhash: BLURHASH_OPTIONS,
}.freeze,
......
......@@ -157,9 +157,9 @@ RSpec.describe MediaAttachment, type: :model do
expect(media.file.meta["original"]["width"]).to eq 600
expect(media.file.meta["original"]["height"]).to eq 400
expect(media.file.meta["original"]["aspect"]).to eq 1.5
expect(media.file.meta["small"]["width"]).to eq 490
expect(media.file.meta["small"]["height"]).to eq 327
expect(media.file.meta["small"]["aspect"]).to eq 490.0 / 327
expect(media.file.meta["small"]["width"]).to eq 588
expect(media.file.meta["small"]["height"]).to eq 392
expect(media.file.meta["small"]["aspect"]).to eq 1.5
end
it 'gives the file a random name' do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment