getCanvasSizeFromPreset = (preset, ppiTarget, orientation) => {
let {dimensions, units, ppi} = getDimensionsFromPreset(preset, "px", ppiTarget);
let result = dimensions;
const highest = Math.max(result[0], result[1]);
const lowest = Math.min(result[0], result[1]);
const isLandscape = orientation === 'landscape';
const w = isLandscape ? highest : lowest;
const h = isLandscape ? lowest : highest;
return getCanvasSize(w, h, units, ppiTarget);
}