From 07d79216133698141819427fb5b6728f9f7762bb Mon Sep 17 00:00:00 2001 From: jmsche Date: Mon, 18 Dec 2017 12:43:05 +0100 Subject: [PATCH 1/4] Add Leapt ImBundle --- leapt/im-bundle/2.0/config/routes/leapt_im.yaml | 2 ++ leapt/im-bundle/2.0/manifest.json | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 leapt/im-bundle/2.0/config/routes/leapt_im.yaml create mode 100644 leapt/im-bundle/2.0/manifest.json diff --git a/leapt/im-bundle/2.0/config/routes/leapt_im.yaml b/leapt/im-bundle/2.0/config/routes/leapt_im.yaml new file mode 100644 index 00000000..833c244d --- /dev/null +++ b/leapt/im-bundle/2.0/config/routes/leapt_im.yaml @@ -0,0 +1,2 @@ +leapt_im: + resource: '@LeaptImBundle/Resources/config/routing.yml' diff --git a/leapt/im-bundle/2.0/manifest.json b/leapt/im-bundle/2.0/manifest.json new file mode 100644 index 00000000..57be4a3e --- /dev/null +++ b/leapt/im-bundle/2.0/manifest.json @@ -0,0 +1,11 @@ +{ + "bundles": { + "Leapt\\ImBundle\\LeaptImBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "gitignore": [ + "/public/cache/" + ] +} From 33424f7a9f096cf42d2ecfc69f15f3646c995a6d Mon Sep 17 00:00:00 2001 From: jmsche Date: Mon, 18 Dec 2017 13:08:02 +0100 Subject: [PATCH 2/4] Added package config --- leapt/im-bundle/2.0/config/packages/leapt_im.yaml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 leapt/im-bundle/2.0/config/packages/leapt_im.yaml diff --git a/leapt/im-bundle/2.0/config/packages/leapt_im.yaml b/leapt/im-bundle/2.0/config/packages/leapt_im.yaml new file mode 100644 index 00000000..c690144b --- /dev/null +++ b/leapt/im-bundle/2.0/config/packages/leapt_im.yaml @@ -0,0 +1,2 @@ +leapt_im: + cache_path: cache/im From 72b41d33d55a2d83d9f8f9183aba6e44970759ff Mon Sep 17 00:00:00 2001 From: jmsche Date: Mon, 18 Dec 2017 13:29:32 +0100 Subject: [PATCH 3/4] Added example format --- leapt/im-bundle/2.0/config/packages/leapt_im.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/leapt/im-bundle/2.0/config/packages/leapt_im.yaml b/leapt/im-bundle/2.0/config/packages/leapt_im.yaml index c690144b..c499874b 100644 --- a/leapt/im-bundle/2.0/config/packages/leapt_im.yaml +++ b/leapt/im-bundle/2.0/config/packages/leapt_im.yaml @@ -1,2 +1,6 @@ leapt_im: cache_path: cache/im + # You can define reusable formats here + formats: + #my_format: + # thumbnail: 350x350^ From 7d7694cc694751695c8e1a152000132ccd34a65f Mon Sep 17 00:00:00 2001 From: jmsche Date: Sun, 24 Dec 2017 11:30:44 +0100 Subject: [PATCH 4/4] Updated config comments --- leapt/im-bundle/2.0/config/packages/leapt_im.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/leapt/im-bundle/2.0/config/packages/leapt_im.yaml b/leapt/im-bundle/2.0/config/packages/leapt_im.yaml index c499874b..a3b17df2 100644 --- a/leapt/im-bundle/2.0/config/packages/leapt_im.yaml +++ b/leapt/im-bundle/2.0/config/packages/leapt_im.yaml @@ -1,6 +1,7 @@ +# Read the documentation: https://github.com/leapt/im-bundle/blob/master/docs/configuration.rst leapt_im: cache_path: cache/im - # You can define reusable formats here formats: - #my_format: - # thumbnail: 350x350^ + # Resize to fit in 100x100, only if bigger, and remove all crap (meta-data, ...) + medium: + thumbnail: 100x100>