-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a basic crop type for Square image styles that ship with core a…
…nd profiles
- Loading branch information
Brant Wynn
committed
Feb 28, 2017
1 parent
3dcad1c
commit 4b82b71
Showing
6 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
modules/df/df_tools/df_tools_crop/config/install/crop.type.square.yml
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,13 @@ | ||
uuid: 4bc352ab-055b-4fd2-9b7d-9460eaefb279 | ||
langcode: en | ||
status: true | ||
dependencies: { } | ||
label: Square | ||
id: square | ||
description: '' | ||
aspect_ratio: '1:1' | ||
soft_limit_width: null | ||
soft_limit_height: null | ||
hard_limit_width: 50 | ||
hard_limit_height: 50 | ||
|
18 changes: 18 additions & 0 deletions
18
modules/df/df_tools/df_tools_crop/config/rewrite/image.style.browse_content.yml
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,18 @@ | ||
dependencies: | ||
module: | ||
- crop | ||
effects: | ||
f877f421-62b5-4d01-9500-b5b0003263a4: | ||
uuid: f877f421-62b5-4d01-9500-b5b0003263a4 | ||
id: image_scale_and_crop | ||
weight: -9 | ||
data: | ||
width: 345 | ||
height: 345 | ||
ba3ecbd4-5b23-459c-b91e-5b080a7dca23: | ||
uuid: ba3ecbd4-5b23-459c-b91e-5b080a7dca23 | ||
id: crop_crop | ||
weight: -10 | ||
data: | ||
crop_type: square | ||
|
19 changes: 19 additions & 0 deletions
19
modules/df/df_tools/df_tools_crop/config/rewrite/image.style.large.yml
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,19 @@ | ||
dependencies: | ||
module: | ||
- crop | ||
effects: | ||
ddd73aa7-4bd6-4c85-b600-bdf2b1628d1d: | ||
uuid: ddd73aa7-4bd6-4c85-b600-bdf2b1628d1d | ||
id: image_scale | ||
weight: -9 | ||
data: | ||
width: 480 | ||
height: 480 | ||
upscale: false | ||
bbbf5405-d3ef-4618-9c8a-ea64c87035d2: | ||
uuid: bbbf5405-d3ef-4618-9c8a-ea64c87035d2 | ||
id: crop_crop | ||
weight: -10 | ||
data: | ||
crop_type: square | ||
|
19 changes: 19 additions & 0 deletions
19
modules/df/df_tools/df_tools_crop/config/rewrite/image.style.medium.yml
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,19 @@ | ||
dependencies: | ||
module: | ||
- crop | ||
effects: | ||
bddf0d06-42f9-4c75-a700-a33cafa25ea0: | ||
uuid: bddf0d06-42f9-4c75-a700-a33cafa25ea0 | ||
id: image_scale | ||
weight: -9 | ||
data: | ||
width: 350 | ||
height: 350 | ||
upscale: false | ||
94c3cb9c-7d93-4006-b3ad-176ad17bbc47: | ||
uuid: 94c3cb9c-7d93-4006-b3ad-176ad17bbc47 | ||
id: crop_crop | ||
weight: -10 | ||
data: | ||
crop_type: square | ||
|
18 changes: 18 additions & 0 deletions
18
modules/df/df_tools/df_tools_crop/config/rewrite/image.style.thumbnail.yml
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,18 @@ | ||
dependencies: | ||
module: | ||
- crop | ||
effects: | ||
c1815ac9-f69d-48f8-a301-fe87de0c3dd8: | ||
uuid: c1815ac9-f69d-48f8-a301-fe87de0c3dd8 | ||
id: image_scale_and_crop | ||
weight: 2 | ||
data: | ||
width: 100 | ||
height: 100 | ||
65fa2c01-c68c-4802-b689-a3d40b74f621: | ||
uuid: 65fa2c01-c68c-4802-b689-a3d40b74f621 | ||
id: crop_crop | ||
weight: 2 | ||
data: | ||
crop_type: square | ||
|
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,7 @@ | ||
name: DF Tools Core | ||
type: module | ||
description: Provides some basic cropping. | ||
core: 8.x | ||
package: Demo Framework Tools | ||
dependencies: | ||
- image_widget_crop |