-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmigration-guide.txt
More file actions
43 lines (26 loc) · 1.18 KB
/
migration-guide.txt
File metadata and controls
43 lines (26 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
* Output Content Type
- if it has a outputContentType already -> move that to the third constructor parameter
- if it has no outputContentType -> use MediaType.JPEG as the third constructor parameter
- if it has a outputContentTypeSame -> remove that outputContentTypeSame (does not exist anymore)
if it has multiple outputContentType and/or outputContentTypeSame, the last one did have effect only.
* Resize
The expression
new MediaImageMagickThumbnail(20, 30)
is replaced by
new MediaImageMagickThumbnail(new IMOperation().resize(20, 30, '>'))
* Density
The expression
new MediaImageMagickThumbnail(20, 30).density(300)
is replaced by
new MediaImageMagickThumbnail(new IMOperation().resize(20, 30, '>').density(300).units("PixelsPerInch"))
* Flattening
The expression
new MediaImageMagickThumbnail(20, 30).flatten("white")
is replaced by
new MediaImageMagickThumbnail(new IMOperation().resize(20, 30, '>').flatten().background("white"))
* Testing
Add a MediaTestableTest
for(final Type<?> type : Main.model.getTypes())
for(final Feature feature : type.getDeclaredFeatures())
if(feature instanceof MediaTestable)
((MediaTestable)feature).test();