diff --git a/source/java/org/alfresco/repo/content/transform/magick/ImageMagickContentTransformer.java b/source/java/org/alfresco/repo/content/transform/magick/ImageMagickContentTransformer.java index 7fb4836ed5..8f815a9af4 100644 --- a/source/java/org/alfresco/repo/content/transform/magick/ImageMagickContentTransformer.java +++ b/source/java/org/alfresco/repo/content/transform/magick/ImageMagickContentTransformer.java @@ -166,7 +166,7 @@ public class ImageMagickContentTransformer extends AbstractImageMagickContentTra } properties.put(KEY_OPTIONS, commandOptions); } - properties.put(VAR_SOURCE, sourceFile.getAbsolutePath()); + properties.put(VAR_SOURCE, sourceFile.getAbsolutePath() + "[0]"); properties.put(VAR_TARGET, targetFile.getAbsolutePath()); // execute the statement diff --git a/source/java/org/alfresco/repo/thumbnail/ThumbnailServiceImpl.java b/source/java/org/alfresco/repo/thumbnail/ThumbnailServiceImpl.java index 725dd9ae32..8e90806702 100644 --- a/source/java/org/alfresco/repo/thumbnail/ThumbnailServiceImpl.java +++ b/source/java/org/alfresco/repo/thumbnail/ThumbnailServiceImpl.java @@ -156,10 +156,10 @@ public class ThumbnailServiceImpl implements ThumbnailService { if (logger.isDebugEnabled() == true) { - logger.debug("Creating thumbnail: There is already a thumbnail with the name '" + thumbnail + "' (node=" + node.toString() + "; contentProperty=" + contentProperty.toString() + "; mimetype=" + mimetype); + logger.debug("Creating thumbnail: There is already a thumbnail with the name '" + thumbnailName + "' (node=" + node.toString() + "; contentProperty=" + contentProperty.toString() + "; mimetype=" + mimetype); } - // We can't continue because there is already an thumnail with the given name for that content property + // We can't continue because there is already an thumbnail with the given name for that content property throw new ThumbnailException(ERR_DUPLICATE_NAME); } @@ -233,7 +233,7 @@ public class ThumbnailServiceImpl implements ThumbnailService } else { - // Do the thumnail transformation + // Do the thumbnail transformation this.contentService.transform(reader, writer, transformationOptions); } @@ -309,7 +309,7 @@ public class ThumbnailServiceImpl implements ThumbnailService } else { - // Do the thumnail transformation + // Do the thumbnail transformation this.contentService.transform(reader, writer, transformationOptions); } } @@ -344,7 +344,7 @@ public class ThumbnailServiceImpl implements ThumbnailService // Check that the node has the thumbnailed aspect applied if (nodeService.hasAspect(node, ContentModel.ASPECT_THUMBNAILED) == true) { - // Get all the thumnails that match the thumbnail name + // Get all the thumbnails that match the thumbnail name List assocs = this.nodeService.getChildAssocs(node, ContentModel.ASSOC_THUMBNAILS, QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, thumbnailName)); for (ChildAssociationRef assoc : assocs) { @@ -384,7 +384,7 @@ public class ThumbnailServiceImpl implements ThumbnailService // Check that the node has the thumbnailed aspect applied if (nodeService.hasAspect(node, ContentModel.ASPECT_THUMBNAILED) == true) { - // Get all the thumnails that match the thumbnail name + // Get all the thumbnails that match the thumbnail name List assocs = this.nodeService.getChildAssocs(node, ContentModel.ASSOC_THUMBNAILS, RegexQNamePattern.MATCH_ALL); for (ChildAssociationRef assoc : assocs) {