cancel
Showing results for 
Search instead for 
Did you mean: 

cloudmediaconversion and addOn Medias

shardegger01
Discoverer
0 Kudos

Hello there

We've set up a cloud environment and activated the cloudmediaconversion and set up ConversionMediaFormat to generate pictureformats that also add a watermark to the image. This is done using the example on the following page:
Conversion Media Formats - Sample Data | SAP Help Portal

Using the setup works locally (with the regular mediaconversion extension) and imagemagick is generating the image as expected. In the cloud environment it does not seem to work. I've tried both our adjusted conversion setting, as well as the default one from the example ("{addOn#1} -compose bumpmap -gravity center -composite").
The exception we get is:

A problem occurred during conversion of commands {addOn#1} -compose bumpmap -gravity center -composite with error Error running process for commands </usr/local/bin/convert jpg:/tmp/src8814467874846-gfConversionMediaFormat1 {addOn#1} -compose bumpmap -gravity center -composite /tmp/target8814467874846-gfConversionMediaFormat1>, finished with code: 1
Std out: 
Err out: convert: unable to open image '{addOn#1}': No such file or directory @ error/blob.c/OpenBlob/3533.
convert: no decode delegate for this image format `' @ error/constitute.c/ReadImage/738.
To me it looks like the referenced addOn media is not resolved in the cloud environments and the command is executed with the placeholder value instaed of it being replaced with the file path.
Is there anything that has to be configured in terms of Media Storage for this to work?
View Entire Topic
kai_unewisse3
Active Contributor
0 Kudos

Hi Stefan,

then you have no issue with a temp folder.

Did you follow the setup for the cloud?

  • manifest file: The image feature flag is set to true.
  • The cloudmediaconversion extension is listed in the extension section.

See https://help.sap.com/docs/SAP_COMMERCE_CLOUD_PUBLIC_CLOUD/403d43bf9c564f5a985913d1fbfbf8d7/fba094343...

Kai

shardegger01
Discoverer
0 Kudos

Yes the manifst file is configured as documented. The "enableImageProcessingService" is set to true and the cloudmediaconversion extension is active.

The "normal" conversion of media (e.g. resizing) does work, but when trying to do a conversion including a secondary addOn image (in our case, adding a watermark) it fails.