Skip to content

Commit

Permalink
Added a basic crop type for Square image styles that ship with core a…
Browse files Browse the repository at this point in the history
…nd profiles
  • Loading branch information
Brant Wynn committed Feb 28, 2017
1 parent 3dcad1c commit 4b82b71
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 0 deletions.
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

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

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

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

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

7 changes: 7 additions & 0 deletions modules/df/df_tools/df_tools_crop/df_tools_crop.info.yml
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

0 comments on commit 4b82b71

Please sign in to comment.