A computer-implemented method for gateway management of three-dimensional medical images with a cloud server providing image processing services, the method comprising: receiving an indication provided by a user specifying which metadata associated with a 3D medical image is to be anonymized; creating an anonymization template (901, 902) comprising a plurality of entries corresponding to the metadata, wherein each entry corresponds to a data item of the 3D medical image, and each entry includes an identifier identifying a corresponding data item, an original value of the data item, and a replacement value to replace the original value; storing the anonymization template in a storage of a local device; receiving at the local device 3D medical image captured by a medical imaging device; in response to determining the received 3D medical image is a new or updated image associated with a collaborative image discussion session performed on a cloud server, automatically anonymizing the 3D medical image based on the created anonymization template, (901, 902) comprising: for each entry of the anonymization template, searching a corresponding identifier in the 3D medical image to locate a data item having a value matching a corresponding original value in the anonymization template; replacing the value of the located data item with a corresponding replacement value in the 3D medical image; and setting an access control privilege by defining a user type allowed to de-anonymize one or more anonymized data items, and automatically uploading the anonymized 3D medical image to the cloud server during the collaborative image discussion session, wherein the cloud server is configured to provide collaborative medical image processing services to a plurality of user types authorized to access the anonymized 3D medical image using a plurality of image processing tools provided by the cloud server, wherein the user type determines whether an associated user is allowed to de-anonymize one or more data items of the anonymized 3D medical image. receiving an indication provided by a user specifying which metadata associated with a 3D medical image is to be anonymized; creating an anonymization template (901, 902) comprising a plurality of entries corresponding to the metadata, wherein each entry corresponds to a data item of the 3D medical image, and each entry includes an identifier identifying a corresponding data item, an original value of the data item, and a replacement value to replace the original value; storing the anonymization template in a storage of a local device; receiving at the local device 3D medical image captured by a medical imaging device; in response to determining the received 3D medical image is a new or updated image associated with a collaborative image discussion session performed on a cloud server, automatically anonymizing the 3D medical image based on the created anonymization template, (901, 902) comprising: for each entry of the anonymization template, searching a corresponding identifier in the 3D medical image to locate a data item having a value matching a corresponding original value in the anonymization template; replacing the value of the located data item with a corresponding replacement value in the 3D medical image; and setting an access control privilege by defining a user type allowed to de-anonymize one or more anonymized data items, and automatically anonymizing the 3D medical image based on the created anonymization template, (901, 902) comprising: for each entry of the anonymization template, searching a corresponding identifier in the 3D medical image to locate a data item having a value matching a corresponding original value in the anonymization template; replacing the value of the located data item with a corresponding replacement value in the 3D medical image; and setting an access control privilege by defining a user type allowed to de-anonymize one or more anonymized data items, and for each entry of the anonymization template, searching a corresponding identifier in the 3D medical image to locate a data item having a value matching a corresponding original value in the anonymization template; replacing the value of the located data item with a corresponding replacement value in the 3D medical image; and setting an access control privilege by defining a user type allowed to de-anonymize one or more anonymized data items, and automatically uploading the anonymized 3D medical image to the cloud server during the collaborative image discussion session, wherein the cloud server is configured to provide collaborative medical image processing services to a plurality of user types authorized to access the anonymized 3D medical image using a plurality of image processing tools provided by the cloud server, wherein the user type determines whether an associated user is allowed to de-anonymize one or more data items of the anonymized 3D medical image.