Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-7306

Thumbnails created with a zero (0) file size and thumbnail image does not appear in Share document library

    Details

    • Type: Service Pack Request
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Not a bug
    • Affects Version/s: 3.2 R, 3.2
    • Fix Version/s: 3.3
    • Component/s: Installer, Repository
    • Labels:
      None
    • Environment:
      Windows XP SP3, Community v3.2 and v3.2r
    • ACT Numbers:

      15907

    • Testcase ID:
      Hide

      Tested the fix in community v3.2 using Windows XP SP3.

      Show
      Tested the fix in community v3.2 using Windows XP SP3.

      Description

      Thumbnails are always created with a zero file size. This occurs, for example, in Share when uploading a jpg, when executing a javascript action to generate a thumbnail or uploading a Share profile avatar.

      The following message is generated in the log when DEBUG is set:
      15:03:07,197 DEBUG [org.alfresco.util.exec.RuntimeExec] Execution result:
      os: Windows XP
      command: [C:/devtools/ImageMagick-6.5.7-Q16/imconvert, C:\devtools\apache-tomcat-6.0.18\temp\Alfresco\ImageMagickContentTransformer_source_6794085110837159309.png[0], -thumbnail, 100x100, C:\devtools\apache-tomcat-6.0.18\temp\Alfresco\ImageMagickContentTransformer_target_9019625159893596094.jpg]
      succeeded: true
      exit code: -1072365564
      out:
      err:

      Solution posted by Nicola Prando in the following post:
      http://forums.alfresco.com/en/viewtopic.php?f=36&t=23723&p=83059#p83059

      Solution summary: Add the following entry to imagemagick-transform-context.xml:

      <entry key="SYSTEMROOT">
      <value>C:/WINDOWS</value>
      </entry>

        Attachments

          Issue Links

            Activity

            Hide
            chandu7eee Chandrashekar A (Inactive) added a comment -

            Thats a password protected pdf document., other pdfs are working fine.Thanks..

            here my another issue is .,

            I have uploaded some documents like pdf,jpeg,png,doc,docx,ppt,pptx... etc.., previously thumbnails are not created for these documents. (not set any thing like above)

            after words i added below code in imagemagick-transform-context.xml

            <entry key="SYSTEMROOT">
            <value>C:/WINDOWS</value>
            </entry>

            so its working good for newly uploading documents., but what about previous one., how to re create thumbnails for previous one. one more thing is what about above settings for linux .

            Show
            chandu7eee Chandrashekar A (Inactive) added a comment - Thats a password protected pdf document., other pdfs are working fine.Thanks.. here my another issue is ., I have uploaded some documents like pdf,jpeg,png,doc,docx,ppt,pptx... etc.., previously thumbnails are not created for these documents. (not set any thing like above) after words i added below code in imagemagick-transform-context.xml <entry key="SYSTEMROOT"> <value>C:/WINDOWS</value> </entry> so its working good for newly uploading documents., but what about previous one., how to re create thumbnails for previous one. one more thing is what about above settings for linux .
            Hide
            stevegreenbaum Steve Greenbaum added a comment -

            In my experience, in Share, if you navigate to the Document Library or Repository and open the folder that has the unthumbnailed documents, it will automatically generate the thumbnail.

            Show
            stevegreenbaum Steve Greenbaum added a comment - In my experience, in Share, if you navigate to the Document Library or Repository and open the folder that has the unthumbnailed documents, it will automatically generate the thumbnail.
            Hide
            kkono Kazuyuki Kono added a comment -

            I don't think we need to add entry key for linux.
            I tested on Unix, Preview works correctly on my environment.
            There is a wiki page for Linux configuration.
            <http://wiki.alfresco.com/wiki/Preview_Release_4>

            I just tested on MAC OSX, which is a Unix system, I installed the latest version of Open office 3.2.1 and ImageMagick 6.6.3-1, but I at first unable to show document in thumbnail such as word, excel PowerPoint and .log, even I correctly configured Imagemagick path in Alfresco-global.properties. Anyway, at this point, Thumbnail for PDF, JPG shows correctly, because pdf2swf is working correctly

            This is because MAC OSX already has ImageMagick 6.5.8 as default, even I install another version of ImageMagick on a different path for example "/usr/local/ImageMagick-6.6.3/bin/", "Convert" command only run with default path of the /usr/local/bin. and I did not specify the path in Alfresco.global.properties. I think other Linux OS such as SUSE is the same situation.
            I was able to show thumbnails after the following workaround(*1). As Steve said, it automatically generated unthumbnailed documents in the thumbnail.

            (*1) < STEP for the work around, this is an example of MAX OSX>
            1. Confirm what version ImageMagick. In this case default version shows, even I installed the latest version.
            $ convert -version
            Version: ImageMagick 6.5.8-10 2010-05-31 Q16 http://www.imagemagick.org
            Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
            Features: OpenMP

            2. Rename the original convert command under /usr/local/bin
            $ cd /usr/local/bin
            $ ls
            Magick++-config        Wand-config        conjure            import            stream
            Magick-config        animate            convert            mogrify
            MagickCore-config    compare            display            montage
            MagickWand-config    composite        identify        perl
            $ sudo mv convert imconvert
            $ convert -version
            -bash: /usr/local/bin/convert: No such file or directory
            $ sudo ln -s /usr/local/imagemagick/ImageMagick-6.6.3/bin/convert /usr/local/bin/convert

            3. Add the following System environment
            export MAGICK_HOME="/usr/local/imagemagick/ImageMagick-6.6.3"
            export PATH="$MAGICK_HOME/bin:$PATH"
            export DYLD_LIBRARY_PATH="/usr/local/imagemagick/ImageMagick-6.6.3/lib"

            4. Check the version is now showing the latest version.
            $ cd $MAGICK_HOME
            $ cd bin
            $ convert -version
            Version: ImageMagick 6.6.3-1 2010-07-05 Q16 http://www.imagemagick.org
            Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
            Features: OpenMP OpenCL

            As above.

            Show
            kkono Kazuyuki Kono added a comment - I don't think we need to add entry key for linux. I tested on Unix, Preview works correctly on my environment. There is a wiki page for Linux configuration. < http://wiki.alfresco.com/wiki/Preview_Release_4 > I just tested on MAC OSX, which is a Unix system, I installed the latest version of Open office 3.2.1 and ImageMagick 6.6.3-1, but I at first unable to show document in thumbnail such as word, excel PowerPoint and .log, even I correctly configured Imagemagick path in Alfresco-global.properties. Anyway, at this point, Thumbnail for PDF, JPG shows correctly, because pdf2swf is working correctly This is because MAC OSX already has ImageMagick 6.5.8 as default, even I install another version of ImageMagick on a different path for example "/usr/local/ImageMagick-6.6.3/bin/", "Convert" command only run with default path of the /usr/local/bin. and I did not specify the path in Alfresco.global.properties. I think other Linux OS such as SUSE is the same situation. I was able to show thumbnails after the following workaround(*1). As Steve said, it automatically generated unthumbnailed documents in the thumbnail. (*1) < STEP for the work around, this is an example of MAX OSX> 1. Confirm what version ImageMagick. In this case default version shows, even I installed the latest version. $ convert -version Version: ImageMagick 6.5.8-10 2010-05-31 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC Features: OpenMP 2. Rename the original convert command under /usr/local/bin $ cd /usr/local/bin $ ls Magick++-config        Wand-config        conjure            import            stream Magick-config        animate            convert            mogrify MagickCore-config    compare            display            montage MagickWand-config    composite        identify        perl $ sudo mv convert imconvert $ convert -version -bash: /usr/local/bin/convert: No such file or directory $ sudo ln -s /usr/local/imagemagick/ImageMagick-6.6.3/bin/convert /usr/local/bin/convert 3. Add the following System environment export MAGICK_HOME="/usr/local/imagemagick/ImageMagick-6.6.3" export PATH="$MAGICK_HOME/bin:$PATH" export DYLD_LIBRARY_PATH="/usr/local/imagemagick/ImageMagick-6.6.3/lib" 4. Check the version is now showing the latest version. $ cd $MAGICK_HOME $ cd bin $ convert -version Version: ImageMagick 6.6.3-1 2010-07-05 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC Features: OpenMP OpenCL As above.
            Hide
            kkono Kazuyuki Kono added a comment -

            I have actually added the following entry key in imagemagick-transform-context.xml for my MAC OSX with Alfresco Enterprise 3.3.0.
            I confirmed once I remove the entry key, thumbnail for additionally added contents will not be shown.

            <entry key="ROOT_PATH">
            <value>/usr/bin</value>
            </entry>

            Thus, the Entry key will be required for Unix environment.

            Show
            kkono Kazuyuki Kono added a comment - I have actually added the following entry key in imagemagick-transform-context.xml for my MAC OSX with Alfresco Enterprise 3.3.0. I confirmed once I remove the entry key, thumbnail for additionally added contents will not be shown. <entry key="ROOT_PATH"> <value>/usr/bin</value> </entry> Thus, the Entry key will be required for Unix environment.
            Hide
            kkono Kazuyuki Kono added a comment -

            This is an additional info, I had to add the entry key on version 330 only,
            I tested on version 321, 331. Thumbnail works fine even I don't add the entry key.

            So, the key entry is required only for version 3.3.0 (64) schema 4010.

            Show
            kkono Kazuyuki Kono added a comment - This is an additional info, I had to add the entry key on version 330 only, I tested on version 321, 331. Thumbnail works fine even I don't add the entry key. So, the key entry is required only for version 3.3.0 (64) schema 4010.

              People

              • Assignee:
                closedissues Closed Issues
                Reporter:
                stevegreenbaum Steve Greenbaum
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: