diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2025-04-04 03:36:21 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2025-04-04 03:36:21 +0300 |
commit | 6df1ad61158e9c2744786193619b873b3dedcd6b (patch) | |
tree | 4384c09e2346645d5c1f296e5e97bcfc3945478e /scripts/bin2png.sh | |
parent | ce2c37356c674e5893f80786616355b4659b43ad (diff) |
Use correct .ppm extension for PPM images
The reference images used by the test scripts are in PPM format, not
PNM. Use the correct file extension.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'scripts/bin2png.sh')
-rwxr-xr-x | scripts/bin2png.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/bin2png.sh b/scripts/bin2png.sh index d231d19..e7b16ee 100755 --- a/scripts/bin2png.sh +++ b/scripts/bin2png.sh @@ -6,7 +6,7 @@ FILE=${1:-.} convert_image() { local file=$1 - local pnm=${file%bin}pnm + local ppm=${file%bin}ppm local png=${file%bin}png local format=$(echo $file | sed -e 's|.*-\([[:alnum:]]*\)-\([0-9]*x[0-9]*\).*.bin|\1|' | tr '[:lower:]' '[:upper:]') @@ -24,9 +24,9 @@ convert_image() { ;; esac - raw2rgbpnm -f $format -s $size $file $pnm && \ - convert $pnm $png - rm $pnm + raw2rgbpnm -f $format -s $size $file $ppm && \ + convert $ppm $png + rm $ppm } if [ -d $FILE ] ; then |