branch develop updated (48f6bcc6 -> 06185bc0)
This is an automated email from the git hooks/post-receive script. New change to branch develop in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git from 48f6bcc6 Mise en cohérence de la version JS avec la version Java new 06185bc0 Ajout d'un TODO : Ne pas générer les preview à chaque appel The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: commit 06185bc0ee88949f4ac4f76b91afb32f2e37c7a2 Author: Arnaud Thimel <thimel@codelutin.com> Date: Tue Jan 2 14:58:50 2018 +0100 Ajout d'un TODO : Ne pas générer les preview à chaque appel Summary of changes: .../org/chorem/pollen/services/service/PollenResourceService.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit 06185bc0ee88949f4ac4f76b91afb32f2e37c7a2 Author: Arnaud Thimel <thimel@codelutin.com> Date: Tue Jan 2 14:58:50 2018 +0100 Ajout d'un TODO : Ne pas générer les preview à chaque appel --- .../org/chorem/pollen/services/service/PollenResourceService.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pollen-services/src/main/java/org/chorem/pollen/services/service/PollenResourceService.java b/pollen-services/src/main/java/org/chorem/pollen/services/service/PollenResourceService.java index 083a5164..d7300986 100644 --- a/pollen-services/src/main/java/org/chorem/pollen/services/service/PollenResourceService.java +++ b/pollen-services/src/main/java/org/chorem/pollen/services/service/PollenResourceService.java @@ -119,8 +119,8 @@ public class PollenResourceService extends PollenServiceSupport implements Polle } int width, height; - Integer previewWidth = null; - Integer previewHeight = null; + Integer previewWidth; + Integer previewHeight; int previewMax = getPollenServiceConfig().getResourcePreviewMax(); @@ -140,6 +140,8 @@ public class PollenResourceService extends PollenServiceSupport implements Polle previewHeight = height; } + // TODO AThimel 02/01/2018 Les preview devraient être stockées plutôt que recalculées à chaque fois + BufferedImage destination = new BufferedImage(previewWidth, previewHeight, source.getType()); Graphics2D g = destination.createGraphics(); g.drawImage(source, (previewWidth - width) / 2, (previewHeight - height) / 2, width, height, null); -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
participants (1)
-
chorem.org scm