cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to run imagemagick with CreateProcess error=2

Former Member
0 Kudos

I am currently stuck on the Core Trail (> Media Conversion > Creating Stadium Media Files and a Sample MediaContainer > Step 4) where you have to convert the missing medias.

The console gives the following trace:

Using tmp dir 'D:\Hybris_6.3.0\hybris\temp\hybris\convert'.
Using image magick configuration directory 'C:\Program Files\ImageMagick\7.0.5-Q16'.
Using tmp dir 'D:\Hybris_6.3.0\hybris\temp\hybris\convert'.
Failed to convert media to format 'ConversionMediaFormatModel (8796093087795@1)'.
de.hybris.platform.servicelayer.exceptions.ModelNotFoundException: Failed to convert container 'beachStadiumContainer to format stadiumDetailsFormat.
at [...]mediaconversion.conversion.DefaultMediaConversionService.getOrConvert

Caused by: de.hybris.platform.mediaconversion.conversion.MediaConversionException: Failed to run imagemagick.
at [...]mediaconversion.imagemagick.ImageMagickMediaConversionStrategy.convert

Caused by: java.io.IOException: Cannot run program "C:\Program Files\ImageMagick\7.0.5-Q16\convert": CreateProcess error=2, Das System kann die angegebene Datei nicht finden [The system cannot find the specified file]
at java.lang.ProcessBuilder.start

Caused by: java.io.IOException: CreateProcess error=2, Das System kann die angegebene Datei nicht finden [The system cannot find the specified file]
at java.lang.ProcessImpl.create

The folder C:\Program Files\ImageMagick\7.0.5-Q16 itself does not have a convert folder, could this be the root cause? Is this an internal hybris issue caused by changes in ImageMagick?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

The naming convention of files in ImageMagick has been changed (From convert.exe to magick.exe). If you change the file name back to convert.exe, it will work well.

p. s. Dynamic version of ImageMagick does not work properly in Windows 10.

Regards,
Artur

Former Member
0 Kudos

So it is a problem with both. This should be fixed in hybris too or at least edited in the Trail.

Answers (1)

Answers (1)

Former Member
0 Kudos

I got the same error. If your are using windows you might have extracted ImageMagick-7.0.5-3-Q16-x64-dll.exe file. It doesn't have convert.exe file. So Please use ImageMagick-7.0.5-3-Q16-x64-static.exe. This will solve your problem. I hope this helps. Thanks, Vinod