This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private BufferedImage readImageWithColorSpacePreservation(byte[] imageData) { | |
try (ImageInputStream inputStream = ImageIO.createImageInputStream(new ByteArrayInputStream(imageData))) { | |
// Get the reader | |
Iterator<ImageReader> readers = ImageIO.getImageReaders(inputStream); | |
if (!readers.hasNext()) { | |
throw new IllegalArgumentException("No reader found"); | |
} | |
ImageReader reader = readers.next(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for filename in *.tsv; do | |
echo $filename | |
tail -n +23 $filename | head -n 1 | sed -e 's/.*(\(.*\)).*/\1/' | sed -e 's/, /\t/g' > fixed/$filename | |
tail -n +24 $filename | head -n -7 >> fixed/$filename | |
done |