cancel
Showing results for 
Search instead for 
Did you mean: 

Image upload broken in Linux [Solved]

michaelc
Champ on-the-rise
Champ on-the-rise
This was working and it is working on the windows development server.

the thumbnail upload seems to now be broken, seem to have broken ImageMagick somehow.
  config

### External executable locations ###
ooo.exe=/opt/alfresco-3.3.3/openoffice/program/soffice.bin
img.root=/opt/alfresco-3.3.3/common
img.dyn=${img.root}/lib
img.exe=${img.root}/bin/convert
swf.exe=/opt/alfresco-3.3.3/common/bin/pdf2swf
jodconverter.enabled=true
ooo.enabled=false
jodconverter.officeHome=/opt/alfresco-3.3.3/openoffice/program/soffice.bin
jodconverter.portNumbers=8101

  Log
14:52:20,491 ERROR [org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformerWorker] ImageMagickContentTransformerWorker not available: 03060000 Failed to perform ImageMagick transformation:
Execution result:
   os:         Linux
   command:    [/opt/alfresco-3.3.3/common/bin/convert, /opt/alfresco-3.3.3/tomcat/temp/Alfresco/ImageMagickContentTransformerWorker_init_source_2673172835076743428.gif[0], /opt/alfresco-3.3.3/tomcat/temp/Alfresco/ImageMagickContentTransformerWorker_init_target_2362269677551517977.png]
   succeeded:  false
   exit code:  1
   out:       
   err:        .convert.bin: no decode delegate for this image format `/opt/alfresco-3.3.3/tomcat/temp/Alfresco/ImageMagickContentTransformerWorker_init_source_2673172835076743428.gif' @ constitute.c/ReadImage/526.
.convert.bin: missing an image filename `/opt/alfr
14:52:20,863 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'thirdparty' subsystem, ID: [thirdparty, default] complete

– Snip —
15:03:57,887 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 03060001 Wrapped Exception (with status template): 03060025 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js': 03060024 03060023 Transformer for 'image/png' source mime type and 'image/png' target mime type was not found. Operation can't be performed
org.springframework.extensions.webscripts.WebScriptException: 03060001 Wrapped Exception (with status template): 03060025 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js': 03060024 03060023 Transformer for 'image/png' source mime type and 'image/png' target mime type was not found. Operation can't be performed
       at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:742)
       at org.alfresco.repo.web.scripts.content.StreamContent.execute(StreamContent.java:204)
       at org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:373)
       at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:325)
       at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:424)
       at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:448)
       at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:294)
       at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:333)
       at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:189)
       at
3 REPLIES 3

michaelc
Champ on-the-rise
Champ on-the-rise
No one has any thoughts ?

mikeh
Star Contributor
Star Contributor

michaelc
Champ on-the-rise
Champ on-the-rise
I opened a case on this but got little result.
I did come up with a fix, not positive this is a perfect fix.

  I found that doing the following command would fail.
   /opt/alfresco-3.3-3/common/bin/convert test.jpg test.gif

prior release had me install imageMagic into /usr/bin so I tried
  /usr/bin/convert test.jpg test.gif

this worked.
SO I modified script /opt/alfresco-3.3-3/common/bin/convert
  exec /opt/alfresco-3.3.3/common/bin/.convert.bin "$@"
became
  exec /usr/bin/convert "$@"

it now works.
but I am uncomfortable with this fix as I don't know why it began to fail.