text: // retrieve aspect ratio if in transformation else create aspect ratio values
  exports.getAspectRatio = (transformations, originalAspectRatio) => {
    const arTransform = transformations.find(t => t.startsWith('ar_'));
    if (!arTransform) {
      return originalAspectRatio;
    }
  
    const newAspectRatio = arTransform.replace('ar_', '');
    if (newAspectRatio.indexOf(':') === -1) {
      return Number(newAspectRatio);
    }
  
    const [w, h] = newAspectRatio.split(':').map(Number);
  
    return w / h;
  };
  