cancel
Showing results for 
Search instead for 
Did you mean: 

cloudmediaconversion and addOn Medias

shardegger01
Discoverer
0 Kudos
576

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,

can it be that you use a temp folder in your code?

That is not an option in the cloud...


Regards,
Kai

shardegger01
Discoverer
0 Kudos

Hello Kai

Thank you for your answer. Can you elaborate a bit more what you mean with temp folder?

I've not written any custom code for this, simply set up the configuration in the backoffice according to https://help.sap.com/docs/SAP_COMMERCE_CLOUD_PUBLIC_CLOUD/403d43bf9c564f5a985913d1fbfbf8d7/8b3669cc8...

The media themselves are assigned to a custom folder. I think I possibly need to set up a specific Cloud Media Storage Strategy (Configuring Media Storage Strategies | SAP Help Portal) but the documentation doesn't seem to specify how it needs to be configured.

Best

Stefan