Zeta Components
  1. Zeta Components
  2. ZETACOMP-55

Imagick composite with empty string parameter in watermark doesn't work

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Component/s: ImageConversion
    • Labels:
      None
    • Environment:
      imagick 6.5.6-1 on mac 10.6.6
      php 5.3.0

      Description

      I got this error:

      Unexpected error, the message was : Transformation failed. 'File '/Users/xc/Dev/ezp45_flow/var/ezflow_site/cache/public/ezie/14/352-2/..3-test-image.jpg1eTvxT1g4ovJ' could not be processed. The command '/opt/local/bin/convert -composite '' -geometry '101x64+10+10' '/Users/xc/Dev/ezp45_flow/var/ezflow_site/cache/public/ezie/14/352-2/..3-test-image.jpg1eTvxT1g4ovJ' /Users/xc/Dev/ezp45_flow/extension/ezie/design/standard/images/watermarks/elephpant.png 'JPG:/Users/xc/Dev/ezp45_flow/var/ezflow_site/cache/public/ezie/14/352-2/..3-test-image.jpg1eTvxT1g4ovJ'' resulted in an error (1): 'convert: no decode delegate for this image format `/var/tmp/magick-j6kVPUKA' @ constitute.c/ReadImage/503.'. Output: '''. in /Users/xc/Dev/ezp45_flow/lib/ezc/ImageConversion/src/transformation.php on line 317

      I changed

      $this->addFilterOption(
      $this->getActiveReference(),
      '-composite',
      '' );

      to
      $this->addFilterOption(
      $this->getActiveReference(),
      '-composite' );
      it does work. Because in definition of addFilterOption it should use null instead of empty string for no parameter.
      protected function addFilterOption( $reference, $name, $parameter = null )

      I'm not sure if you have tested this case because it seems an obvious issue. Or it's because of imagick version issue?

      Possible related issue: http://issues.ez.no/IssueView.php?Id=17193&activeItem=4

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Chen Xiongjie
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development