File: convert_rgb_to_jpeg

package info (click to toggle)
exifprobe 2.0.1%2Bgit20170416.3c2b769-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 2,904 kB
  • sloc: ansic: 34,799; sh: 413; makefile: 82
file content (9 lines) | stat: -rwxr-xr-x 466 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
#!/bin/sh
# Converts the RGB blob extracted from a Canon CR2 file to a displayable JPEG image.
# Extract the section with 'exifgrep Ifd2.Strip filename', then
# 'extract_section @StripOffsets:StripByteCounts'
# Rename the file to have an 'rgb' extension, then run this using the basename of the
# rgb file as argument.
# ...or write a better script to automate the process.

convert -verbose -size 384x256 -depth 8 -gamma 2.2 -density 72x72 $1.rgb'[384x256]' $1.jpg