Skip to content

Commit d407c7f

Browse files
committed
Rebase DB
1 parent 4de059a commit d407c7f

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,27 @@ Remove all `media_files` etc:
6767
Notes
6868
-----
6969

70+
71+
### Preview creation in V3
72+
73+
```
74+
THUMBNAILS = { maximum: nil,
75+
x_large: { width: 1024, height: 768 },
76+
large: { width: 620, height: 500 },
77+
medium: { width: 300, height: 300 },
78+
small_125: { width: 125, height: 125 },
79+
small: { width: 100, height: 100 } }
80+
```
81+
82+
* see `create_previews!` in `datalayer/app/models/media_file.rb`
83+
84+
* effective conversion see `convert` ind `datalayer/lib/file_conversion.rb`,
85+
uses the command `convert` from ImageMagic
86+
87+
88+
89+
90+
7091
### S3 Upload via Browser
7192

7293
TLDR: pre-signed URLs seems likely to work for AWS and other implementations

datalayer

Submodule datalayer updated 63 files

0 commit comments

Comments
 (0)