cancel
Showing results for 
Search instead for 
Did you mean: 

convert image action does not take any options

jsauer
Champ in-the-making
Champ in-the-making
Hi,
just set up alfresco 3.0c on Centos5.2 using full bundle install with mysql as database.
besides swftools still missing everything runs without any errors in the log.

ImageMagick version 6-2-8 is up an running too.

If I want to run an image convert action on an image to resize and change orientation as given in EXIF nothing happens but the image is being copied. ImageMagick must be working somehow, because if I do a transformation from JPG to PNG it works!

What I do:
  • On a JPG image click on details

  • Run Action

  • Transform and copy image to a specific space

  • Set Values…

  • Required Format: JPG

  • Otions: -auto-orient -resize 1024x1024

  • Destination: converted images

  • OK

  • Finish
=>> Image gets copied but not rotated and not resized

If I change Required Format to PNG the conversion to PNG will take place but no rotate and no resize

If I run
convert org.jpg -auto-orient -resize 1024x1024 new.jpg
on commandline it works without problems.

Any ideas?
I can not see anything in alfresco.log
Any other log to look at?

Thanks in advance
Joerg
6 REPLIES 6

lotharm
Champ on-the-rise
Champ on-the-rise
Hi,

I would suggest to enable debug logging for org.alfresco.util.exec in log4j.properties to see the actual command executed by the OS.

jsauer
Champ in-the-making
Champ in-the-making
Hi,
thanks for the response. Activated loggin and
21:55:10,938 DEBUG [org.alfresco.util.exec.RuntimeExec] Execution result:
   os:         Linux
   command:    convert /opt/Alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformer_source_3101662635154708545.jpg  /opt/Alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformer_target_4975277974653078577.jpg
   succeeded:  true
   exit code:  0
   out:
   err:
As you can see the Options are not used at all!
Where do they go?
How can I figure that out?

Any ideas?
Thanks
Joerg

lotharm
Champ on-the-rise
Champ on-the-rise
I found https://issues.alfresco.com/jira/browse/ETHREEOH-899 so its already fixed for 3d.

As a workaround (instead of backporting), it would be possible to configure an extra action with the correct options set.

lothar

deepbluefish
Champ in-the-making
Champ in-the-making
-resize 50% or -resize 100x200 not having any effect in Content Explorer

Im having the same problem, but I'm using 3d, Im going to try reinstalling on a fresh server environment, and see if I can see what happens, but I dont think https://issues.alfresco.com/jira/browse/ALFCOM-1998 has either been fixed or the fix released in the latest community cut.

mikeh
Star Contributor
Star Contributor
Both those JIRA entries indicate the fixes are in Labs 3 Final (and have been confirmed by QA). Which version are you running?

Mike

deepbluefish
Champ in-the-making
Champ in-the-making
Ok I found the problem I pulled a fresh version from labs download, and reinstalled that version worked fine, I understood the version I had in a virtual machine was 3d, but its working now so this issue is definitely fixed.  Sorry to waste anyones time, the vm from the Surf course needs to be patched with the latest I think.