$barcode->scale('cm'); break; case 3: $barcode->scale('mm'); break; default: case 4: $barcode->scale('px'); break; } $barcode->dpi($INPUT_IMAGE_RESIZE_DPI); $barcode->resize(); switch ($INPUT_IMAGE_ORIENTATON) { default: case 1: $barcode->orientaton('top'); break; case 2: $barcode->orientaton('right'); break; case 3: $barcode->orientaton('bottom'); break; case 4: $barcode->orientaton('left'); break; } $barcode->quality($INPUT_IMAGE_QUALITY); switch ($INPUT_IMAGE_FORMAT) { default: case 1: