-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d45ff5c
commit a1b315d
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
...tions-sont-automatiquement-redimensionnees-quand-elles-sont-uploadees/readme.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# EVA-288 : Les illustrations des questions sont automatiquement redimensionnées quand elles sont uploadées | ||
|
||
[Lien du ticket](https://captive-team.atlassian.net/browse/EVA-288) | ||
|
||
## Étapes | ||
- Installer la gem image_processing | ||
- Installer Vips sur le projet | ||
- Dans le model QuestionGlisserDeposer: | ||
on va rajouter le resize de la zone depot: | ||
`has_one_attached :zone_depot, resize_to_limit: [1008, 566], preprocessed: true` | ||
- Dans le model Question; | ||
`has_one_attached :illustration, resize_to_limit: [1008, 566], preprocessed: true` |