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: $barcode->format('gif'); break; case 2: $barcode->format('png'); break; case 3: $barcode->format('jpg'); break; } switch ($INPUT_IMAGE_OUTPUT) { default: case 1: