Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-17756

ezie : Image Editor doesn't work on Windows hosting server with Imagemagick installed in path which contains spaces

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Medium Medium
    • Resolution: Unresolved
    • Affects Version/s: 4.3.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Operating System: any windows
      Browser (and version): all browsers

      Description

      Image Editor doesn't work on a windows hosting server if ImageMagick is installed in a folder whose path contains spaces.

      Example :

      • ImageMagick installed in : C:\apps\ImageMagick is OK
      • ImageMagick installed in : C:\Program files\imageMagick\ makes ezie crash

      I get this error message :
      Unexpected error, the message was : Handler class 'ezcImageImagemagickHandler' not found. ImageMagick not installed or not available in PATH variable. in C:\wamp\www\lib\ezc\ImageConversion\src\handlers\imagemagick_base.php on line 445

      And there are traces I made in imagemagick_base.php after

      $imageProcess = proc_open( $this->binary, $descriptors, $pipes );

      :

      stderr = 'C:\Program' n'est pas reconnu en tant que commande interne
      ou externe, un programme ex‚cutable ou un fichier de commandes.

      it seems PHP function proc_open doesn't manage path with spaces.

      Steps to reproduce

      Install ImageMagick in folder whose path contains spaces.

      1. 17756_magick_windows_source_v2.diff
        1 kB
        Chen Xiongjie
      2. 17756_magick_windows_source.diff
        1 kB
        Chen Xiongjie
      3. 17756_magick_windows.diff
        1 kB
        Chen Xiongjie

        Activity

        Hide
        Chen Xiongjie added a comment -
        Show
        Chen Xiongjie added a comment - Related bug of PHP: http://bugs.php.net/bug.php?id=49139
        Hide
        Chen Xiongjie added a comment - - edited

        This is a php bug (see comment above). Maybe we should wait for php fix or zetacomponents fix.

        Attaching the workaround patch (applied in lib/ezc folder).

        17756_magick_windows_source_v2.diff

        Show
        Chen Xiongjie added a comment - - edited This is a php bug (see comment above). Maybe we should wait for php fix or zetacomponents fix. Attaching the workaround patch (applied in lib/ezc folder). 17756_magick_windows_source_v2.diff
        Hide
        Chen Xiongjie added a comment -
        Show
        Chen Xiongjie added a comment - zeta components issue: https://issues.apache.org/jira/browse/ZETACOMP-48
        Hide
        Clément Mateo added a comment -

        Any news on this subject ?

        Show
        Clément Mateo added a comment - Any news on this subject ?

          People

          • Assignee:
            Chen Xiongjie
            Reporter:
            Clément Mateo
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: