10-14-2016 11:05 AM
Hello I am new in Alfresco, and my english is not so well.
I am trying to do a thumbnail with Alfresco, includding an image in png as watermak, And i have this error
org.alfresco.service.cmr.repository.ContentIOException - 09140079 Failed to perform ImageMagick transformation: Execution result: os: Linux command: /opt/alfresco-4.2.e_maquina10/common/bin/convert /opt/alfresco-4.2.e_maquina10/tomcat/temp/Alfresco/ImageMagickContentTransformerWorker_source_4398995002839736426.jpg[0] xc:black -gravity South -font Times-Bold -pointsize 227 -draw "fill black text 2,20 '' fill white text 1,19 ''" -composite \( /opt/alfresco-4.2.e_maquina10/fich-watermark/watermark.png -resize 1280x1280 \) -gravity northeast -geometry +20 -composite -auto-orient -resize 5120x3407 /opt/alfresco-4.2.e_maquina10/tomcat/temp/Alfresco/ImageMagickContentTransformerWorker_target_6936148879572183894.jpg succeeded: false exit code: 1 out: err: .convert.bin: unable to open image `\(': No such file or directory @ error/blob.c/OpenBlob/2643. .convert.bin: no decode delegate for this image format `\(' @ error/constitute.c/ReadImage/552. .convert.bin: unable to open image `\)': No such file or
But, when i put this command on the console
/opt/alfresco-4.2.e_maquina10/common/bin/convert /opt/alfresco-4.2.e_maquina10/tomcat/temp/Alfresco/ImageMagickContentTransformerWorker_source_4398995002839736426.jpg[0] xc:black -gravity South -font Times-Bold -pointsize 227 -draw "fill black text 2,20 '' fill white text 1,19 ''" -composite \( /opt/alfresco-4.2.e_maquina10/fich-watermark/watermark.png -resize 1280x1280 \) -gravity northeast -geometry +20 -composite -auto-orient -resize 5120x3407 /opt/alfresco-4.2.e_maquina10/tomcat/temp/Alfresco/ImageMagickContentTransformerWorker_target_6936148879572183894.jpg
ImageMagick make the trasformation well. I think the error coud be the \( special charcater, but i do not know othe way to put the " \( /opt/alfresco-4.2.e_maquina10/fich-watermark/watermark.png -resize 1280x1280 \)" and resize the image and then make the trasformation.
My code is there, Thanks so much for the help, and i do not know if my questions are well redacted, i am new in this.
10-18-2016 09:56 AM
You can use -geometry parameter to resize and position watermark,for example
-geometry 48x48+20+20 means resize it to 48* 48 an position it at 20,20
10-15-2016 09:56 AM
You don't need to write it like this ??-composite \( /opt/alfresco-4.2.e_maquina10/fich-watermark/watermark.png -resize 1280x1280 \)
you can just write it without using /( to resize watermark like this
-composite /opt/alfresco-4.2.e_maquina10/fich-watermark/watermark.png -geometry 1280x1280+20+0
10-18-2016 09:42 AM
Thanks for the answer but if i do not use as command this "/(" the image do not resize.
This line resize the watermark image before put it into the big image,
/opt/alfresco-4.2.e_maquina10/common/bin/convert /opt/alfresco-4.2.e_maquina10/tomcat/temp/Alfresco/ImageMagickContentTransformerWorker_source_7274332350384151971.jpg[0] xc:black -gravity South -font Times-Bold -pointsize 153 -draw "fill black text 2,20 '' fill white text 1,19 ''" -composite \( /opt/alfresco-4.2.e_maquina10/fich-watermark/watermark.png -resize 864x864 \) -gravity northeast -geometry +20 -composite -auto-orient -resize 3456x2304 /opt/alfresco-4.2.e_maquina10/tomcat/temp/Alfresco/ImageMagickContentTransformerWorker_target_1436740142286228731.jpg
but if i erase it "/(" like this:
/opt/alfresco-4.2.e_maquina10/common/bin/convert /opt/alfresco-4.2.e_maquina10/tomcat/temp/Alfresco/ImageMagickContentTransformerWorker_source_7274332350384151971.jpg[0] xc:black -gravity South -font Times-Bold -pointsize 153 -draw "fill black text 2,20 '' fill white text 1,19 ''" -composite /opt/alfresco-4.2.e_maquina10/fich-watermark/watermark.png -resize 864x864 -gravity northeast -geometry +20 -composite -auto-orient -resize 3456x2304 /opt/alfresco-4.2.e_maquina10/tomcat/temp/Alfresco/ImageMagickContentTransformerWorker_target_1436740142286228731.jpg
the image do not resize.
I use the -composite /opt/alfresco-4.2.e_maquina10/fich-watermark/watermark.png -resize 864x864+20+0 too.
10-18-2016 09:56 AM
You can use -geometry parameter to resize and position watermark,for example
-geometry 48x48+20+20 means resize it to 48* 48 an position it at 20,20
10-18-2016 10:10 AM
Thanks so much!!!!!!!!!!!!!!!!!!!, my bad, i do not read well.
10-18-2016 10:51 AM
GoodLuck
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.